aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2010-08-18 12:22:59 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-09-27 06:52:56 -0400
commit81aa17207b3c50f32be31a1be949e98c660da5f1 (patch)
tree535f69ae693297d16bad1f5e74a1a73f1f05bce6 /arch
parentd17e1c1ac3a1e4befecb34c20dc8cb901aa72aba (diff)
ARM: mx3/mx35_3ds: add NAND flash
The mx35_3ds comes with 2 GiByte NAND flash. This adds the corresponding platform device. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx3/Kconfig1
-rw-r--r--arch/arm/mach-mx3/mach-mx35_3ds.c8
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/Kconfig b/arch/arm/mach-mx3/Kconfig
index 85beece802aa..2ae10885635a 100644
--- a/arch/arm/mach-mx3/Kconfig
+++ b/arch/arm/mach-mx3/Kconfig
@@ -140,6 +140,7 @@ config MACH_MX35_3DS
140 bool "Support MX35PDK platform" 140 bool "Support MX35PDK platform"
141 select ARCH_MX35 141 select ARCH_MX35
142 select IMX_HAVE_PLATFORM_IMX_UART 142 select IMX_HAVE_PLATFORM_IMX_UART
143 select IMX_HAVE_PLATFORM_MXC_NAND
143 default n 144 default n
144 help 145 help
145 Include support for MX35PDK platform. This includes specific 146 Include support for MX35PDK platform. This includes specific
diff --git a/arch/arm/mach-mx3/mach-mx35_3ds.c b/arch/arm/mach-mx3/mach-mx35_3ds.c
index 73149b8fe92c..b3629e735606 100644
--- a/arch/arm/mach-mx3/mach-mx35_3ds.c
+++ b/arch/arm/mach-mx3/mach-mx35_3ds.c
@@ -66,6 +66,12 @@ static struct platform_device mx35pdk_flash = {
66 .num_resources = 1, 66 .num_resources = 1,
67}; 67};
68 68
69static const struct mxc_nand_platform_data mx35pdk_nand_board_info __initconst = {
70 .width = 1,
71 .hw_ecc = 1,
72 .flash_bbt = 1,
73};
74
69static struct platform_device *devices[] __initdata = { 75static struct platform_device *devices[] __initdata = {
70 &mxc_fec_device, 76 &mxc_fec_device,
71 &mx35pdk_flash, 77 &mx35pdk_flash,
@@ -119,6 +125,8 @@ static void __init mxc_board_init(void)
119 imx35_add_imx_uart0(&uart_pdata); 125 imx35_add_imx_uart0(&uart_pdata);
120 126
121 mxc_register_device(&mxc_otg_udc_device, &usb_pdata); 127 mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
128
129 imx35_add_mxc_nand(&mx35pdk_nand_board_info);
122} 130}
123 131
124static void __init mx35pdk_timer_init(void) 132static void __init mx35pdk_timer_init(void)