Commit 81aa1720 authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Uwe Kleine-König

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: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
parent d17e1c1a
...@@ -140,6 +140,7 @@ config MACH_MX35_3DS ...@@ -140,6 +140,7 @@ config MACH_MX35_3DS
bool "Support MX35PDK platform" bool "Support MX35PDK platform"
select ARCH_MX35 select ARCH_MX35
select IMX_HAVE_PLATFORM_IMX_UART select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_MXC_NAND
default n default n
help help
Include support for MX35PDK platform. This includes specific Include support for MX35PDK platform. This includes specific
......
...@@ -66,6 +66,12 @@ static struct platform_device mx35pdk_flash = { ...@@ -66,6 +66,12 @@ static struct platform_device mx35pdk_flash = {
.num_resources = 1, .num_resources = 1,
}; };
static const struct mxc_nand_platform_data mx35pdk_nand_board_info __initconst = {
.width = 1,
.hw_ecc = 1,
.flash_bbt = 1,
};
static struct platform_device *devices[] __initdata = { static struct platform_device *devices[] __initdata = {
&mxc_fec_device, &mxc_fec_device,
&mx35pdk_flash, &mx35pdk_flash,
...@@ -119,6 +125,8 @@ static void __init mxc_board_init(void) ...@@ -119,6 +125,8 @@ static void __init mxc_board_init(void)
imx35_add_imx_uart0(&uart_pdata); imx35_add_imx_uart0(&uart_pdata);
mxc_register_device(&mxc_otg_udc_device, &usb_pdata); mxc_register_device(&mxc_otg_udc_device, &usb_pdata);
imx35_add_mxc_nand(&mx35pdk_nand_board_info);
} }
static void __init mx35pdk_timer_init(void) static void __init mx35pdk_timer_init(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment