diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-11-11 15:15:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-12-16 14:58:02 +0100 |
commit | cb96cf1ad641334ca605cdf25841ac020d6ae01c (patch) | |
tree | f9bd4514942ba4147b1e2b009d9220a3d71d040d /arch/arm/mach-mx3/devices.c | |
parent | 01f71a371969c753add171991d8f5ecce3b368d4 (diff) | |
download | blackbird-op-linux-cb96cf1ad641334ca605cdf25841ac020d6ae01c.tar.gz blackbird-op-linux-cb96cf1ad641334ca605cdf25841ac020d6ae01c.zip |
[ARM] MX3: add NAND support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index 12b3e3c00460..3e61ff4646fe 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c @@ -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, +}; |