Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
3287abbd
Commit
3287abbd
authored
Nov 23, 2008
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pcm037: add NAND support
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
cb96cf1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
arch/arm/mach-mx3/pcm037.c
arch/arm/mach-mx3/pcm037.c
+8
-0
No files found.
arch/arm/mach-mx3/pcm037.c
View file @
3287abbd
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include <mach/imx-uart.h>
#include <mach/imx-uart.h>
#include <mach/iomux-mx3.h>
#include <mach/iomux-mx3.h>
#include <mach/board-pcm037.h>
#include <mach/board-pcm037.h>
#include <mach/mxc_nand.h>
#include "devices.h"
#include "devices.h"
...
@@ -111,6 +112,11 @@ static struct platform_device pcm037_sram_device = {
...
@@ -111,6 +112,11 @@ static struct platform_device pcm037_sram_device = {
.
resource
=
&
pcm038_sram_resource
,
.
resource
=
&
pcm038_sram_resource
,
};
};
static
struct
mxc_nand_platform_data
pcm037_nand_board_info
=
{
.
width
=
1
,
.
hw_ecc
=
1
,
};
static
struct
platform_device
*
devices
[]
__initdata
=
{
static
struct
platform_device
*
devices
[]
__initdata
=
{
&
pcm037_flash
,
&
pcm037_flash
,
&
pcm037_eth
,
&
pcm037_eth
,
...
@@ -143,6 +149,8 @@ static void __init mxc_board_init(void)
...
@@ -143,6 +149,8 @@ static void __init mxc_board_init(void)
mxc_iomux_mode
(
IOMUX_MODE
(
MX31_PIN_GPIO3_1
,
IOMUX_CONFIG_GPIO
));
mxc_iomux_mode
(
IOMUX_MODE
(
MX31_PIN_GPIO3_1
,
IOMUX_CONFIG_GPIO
));
if
(
!
gpio_request
(
MX31_PIN_GPIO3_1
,
"pcm037-eth"
))
if
(
!
gpio_request
(
MX31_PIN_GPIO3_1
,
"pcm037-eth"
))
gpio_direction_input
(
MX31_PIN_GPIO3_1
);
gpio_direction_input
(
MX31_PIN_GPIO3_1
);
mxc_register_device
(
&
mxc_nand_device
,
&
pcm037_nand_board_info
);
}
}
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment