diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-08-23 05:25:52 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-01 03:33:02 -0400 |
commit | 00b57bf9786ca701508333112c8917d1e0860129 (patch) | |
tree | e38e028c40d92da2ffad8154bc6d9352d2672eb3 /arch/arm/plat-mxc/include/mach/devices-common.h | |
parent | 40e2eda92178f58fd7da2866d3f346dcd2baafed (diff) |
ARM: imx: reorganize nand registration to use a struct
Addiontionally make the interrupt #defines match the base address
defines MX.._NFC_BASE_ADDR.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/devices-common.h')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/devices-common.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/arm/plat-mxc/include/mach/devices-common.h b/arch/arm/plat-mxc/include/mach/devices-common.h index 32b8f3674cc9..371336ee9d7f 100644 --- a/arch/arm/plat-mxc/include/mach/devices-common.h +++ b/arch/arm/plat-mxc/include/mach/devices-common.h | |||
@@ -70,10 +70,14 @@ struct platform_device *__init imx_add_imx_uart_1irq( | |||
70 | const struct imxuart_platform_data *pdata); | 70 | const struct imxuart_platform_data *pdata); |
71 | 71 | ||
72 | #include <mach/mxc_nand.h> | 72 | #include <mach/mxc_nand.h> |
73 | struct platform_device *__init imx_add_mxc_nand_v1(resource_size_t iobase, | 73 | struct imx_mxc_nand_data { |
74 | int irq, const struct mxc_nand_platform_data *pdata); | 74 | resource_size_t iobase; |
75 | struct platform_device *__init imx_add_mxc_nand_v21(resource_size_t iobase, | 75 | resource_size_t iosize; |
76 | int irq, const struct mxc_nand_platform_data *pdata); | 76 | resource_size_t irq; |
77 | }; | ||
78 | struct platform_device *__init imx_add_mxc_nand( | ||
79 | const struct imx_mxc_nand_data *data, | ||
80 | const struct mxc_nand_platform_data *pdata); | ||
77 | 81 | ||
78 | #include <mach/spi.h> | 82 | #include <mach/spi.h> |
79 | struct imx_spi_imx_data { | 83 | struct imx_spi_imx_data { |