]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] MX3: add NAND support
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 11 Nov 2008 14:15:39 +0000 (15:15 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 16 Dec 2008 13:58:02 +0000 (14:58 +0100)
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx3/devices.c
arch/arm/mach-mx3/devices.h
drivers/mtd/nand/Kconfig

index 12b3e3c00460b00745756b47d376db2a85dcb329..3e61ff4646fe49a5265dcafd90bc593f7727e248 100644 (file)
@@ -160,3 +160,22 @@ struct platform_device mxc_w1_master_device = {
        .num_resources = ARRAY_SIZE(mxc_w1_master_resources),
        .resource = mxc_w1_master_resources,
 };
+
+static struct resource mxc_nand_resources[] = {
+       {
+               .start  = NFC_BASE_ADDR,
+               .end    = NFC_BASE_ADDR + 0xfff,
+               .flags  = IORESOURCE_MEM
+       }, {
+               .start  = MXC_INT_NANDFC,
+               .end    = MXC_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 cb1459c7c960d2c4ce5c151c5565f2cc8e116b76..9949ef4e0694dfec46d1361b20691b0a90fb04a8 100644 (file)
@@ -5,3 +5,4 @@ extern struct platform_device mxc_uart_device2;
 extern struct platform_device mxc_uart_device3;
 extern struct platform_device mxc_uart_device4;
 extern struct platform_device mxc_w1_master_device;
+extern struct platform_device mxc_nand_device;
index 1c2e9450d663ca9e7c2c3fd8a8a5a8b98b26755c..f8ae0400c49c0bf16d312ded2d0958e5d1b26501 100644 (file)
@@ -408,7 +408,7 @@ config MTD_NAND_FSL_UPM
 
 config MTD_NAND_MXC
        tristate "MXC NAND support"
-       depends on ARCH_MX2
+       depends on ARCH_MX2 || ARCH_MX3
        help
          This enables the driver for the NAND flash controller on the
          MXC processors.