[ARM] MX3: add NAND support
[deliverable/linux.git] / arch / arm / mach-mx3 / devices.c
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,
+};
This page took 0.027 seconds and 5 git commands to generate.