pcm043: Add NAND support
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 12 Nov 2009 10:30:26 +0000 (11:30 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Sat, 14 Nov 2009 09:30:19 +0000 (10:30 +0100)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx3/pcm043.c

index e18a224671faca6ebe0dfb179ed4c1b3d0316a9f..e3aa829be586cbbaef8b9154e8c712e1dabef3a6 100644 (file)
@@ -43,6 +43,7 @@
 #include <mach/iomux-mx35.h>
 #include <mach/ipu.h>
 #include <mach/mx3fb.h>
+#include <mach/mxc_nand.h>
 
 #include "devices.h"
 
@@ -206,6 +207,11 @@ static struct pad_desc pcm043_pads[] = {
        MX35_PAD_ATA_CS0__GPIO2_6,
 };
 
+static struct mxc_nand_platform_data pcm037_nand_board_info = {
+       .width = 1,
+       .hw_ecc = 1,
+};
+
 /*
  * Board specific initialization.
  */
@@ -216,6 +222,7 @@ static void __init mxc_board_init(void)
        platform_add_devices(devices, ARRAY_SIZE(devices));
 
        mxc_register_device(&mxc_uart_device0, &uart_pdata);
+       mxc_register_device(&mxc_nand_device, &pcm037_nand_board_info);
 
        mxc_register_device(&mxc_uart_device1, &uart_pdata);