Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
01f71a37
Commit
01f71a37
authored
Sep 09, 2008
by
Sascha Hauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pcm038: Add NAND support
Signed-off-by:
Sascha Hauer
<
s.hauer@pengutronix.de
>
parent
02870978
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
arch/arm/mach-mx2/pcm038.c
arch/arm/mach-mx2/pcm038.c
+8
-0
No files found.
arch/arm/mach-mx2/pcm038.c
View file @
01f71a37
...
...
@@ -28,6 +28,7 @@
#include <asm/mach/time.h>
#include <mach/imx-uart.h>
#include <mach/board-pcm038.h>
#include <mach/mxc_nand.h>
#include "devices.h"
...
...
@@ -187,6 +188,11 @@ static void gpio_fec_inactive(void)
ARRAY_SIZE
(
mxc_fec_pins
));
}
static
struct
mxc_nand_platform_data
pcm038_nand_board_info
=
{
.
width
=
1
,
.
hw_ecc
=
1
,
};
static
struct
platform_device
*
platform_devices
[]
__initdata
=
{
&
pcm038_nor_mtd_device
,
&
mxc_w1_master_device
,
...
...
@@ -210,7 +216,9 @@ static void __init pcm038_init(void)
mxc_register_device
(
&
mxc_uart_device0
,
&
uart_pdata
[
0
]);
mxc_register_device
(
&
mxc_uart_device1
,
&
uart_pdata
[
1
]);
mxc_register_device
(
&
mxc_uart_device2
,
&
uart_pdata
[
2
]);
mxc_gpio_mode
(
PE16_AF_RTCK
);
/* OWIRE */
mxc_register_device
(
&
mxc_nand_device
,
&
pcm038_nand_board_info
);
platform_add_devices
(
platform_devices
,
ARRAY_SIZE
(
platform_devices
));
...
...
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