]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] MX27: Add NAND resources
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 9 Sep 2008 09:30:58 +0000 (11:30 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 16 Dec 2008 13:57:58 +0000 (14:57 +0100)
This patch adds the platform device and resources for NAND
on mx27 boards.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx2/devices.c
arch/arm/mach-mx2/devices.h

index 092e09baeefa1490fada92c6a3f6b8a01b52a772..0bad865277431f8497f0d3994f38f1162cc84512 100644 (file)
@@ -205,6 +205,25 @@ struct platform_device mxc_w1_master_device = {
        .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,
+};
+
 /* GPIO port description */
 static struct mxc_gpio_port imx_gpio_ports[] = {
        [0] = {
index 5683c45743255a885242bf4fcc0b51c1f8106b83..1e8cb577a64262752afca2ea9f6c38b176119ea0 100644 (file)
@@ -13,3 +13,4 @@ extern struct platform_device mxc_uart_device3;
 extern struct platform_device mxc_uart_device4;
 extern struct platform_device mxc_uart_device5;
 extern struct platform_device mxc_w1_master_device;
+extern struct platform_device mxc_nand_device;