mx25: add NAND support
authorBaruch Siach <baruch@tkos.co.il>
Thu, 14 Jan 2010 09:24:14 +0000 (11:24 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 14 Jan 2010 10:15:02 +0000 (11:15 +0100)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx25/devices.c
arch/arm/mach-mx25/devices.h
arch/arm/plat-mxc/include/mach/mx25.h

index 9fdeea1c083b893dfb8b26f392c8e11d2b0047e6..dd4069725ef5afcdcdd292354c7270be79659cb2 100644 (file)
@@ -438,3 +438,23 @@ struct platform_device mx25_fec_device = {
        .num_resources  = ARRAY_SIZE(mx25_fec_resources),
        .resource       = mx25_fec_resources,
 };
+
+static struct resource mxc_nand_resources[] = {
+       {
+               .start  = MX25_NFC_BASE_ADDR,
+               .end    = MX25_NFC_BASE_ADDR + 0x1fff,
+               .flags  = IORESOURCE_MEM,
+       },
+       {
+               .start  = MX25_INT_NANDFC,
+               .end    = MX25_INT_NANDFC,
+               .flags  = IORESOURCE_IRQ,
+       },
+};
+
+struct platform_device mxc_nand_device = {
+       .name           = "mxc_nand",
+       .id             = 0,
+       .num_resources  = ARRAY_SIZE(mxc_nand_resources),
+       .resource       = mxc_nand_resources,
+};
index fe5420fcd11fbc6e44b027653d71cf3b65e08c42..8f5530062b4355521c6d441772cde086e8cae6b6 100644 (file)
@@ -18,3 +18,4 @@ extern struct platform_device mxc_i2c_device0;
 extern struct platform_device mxc_i2c_device1;
 extern struct platform_device mxc_i2c_device2;
 extern struct platform_device mx25_fec_device;
+extern struct platform_device mxc_nand_device;
index 18eb44c15eaaf036c8a72e161ba5bae915f31f26..021d208e86bc0ef1436d1b9b4cfc6c414195edd7 100644 (file)
@@ -31,7 +31,9 @@
 #define UART2_BASE_ADDR                        0x43f94000
 
 #define MX25_FEC_BASE_ADDR             0x50038000
+#define MX25_NFC_BASE_ADDR             0xbb000000
 
 #define MX25_INT_FEC   57
+#define MX25_INT_NANDFC        33
 
 #endif /* ifndef __MACH_MX25_H__ */