diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-23 03:36:01 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:57 -0400 |
commit | d5dac4a69fe571ec12d999174e0425f2641325d4 (patch) | |
tree | 05d979412730c14e02c1d4e974d32907cf0f537d /arch/arm/mach-imx/mach-cpuimx27.c | |
parent | 7cc3c84666db63995d44b44276d304c6f0c92630 (diff) |
ARM: imx: dynamically register imx-uart devices (imx27)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-cpuimx27.c')
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx27.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index 06dcd23f51f7..09cc0c5c2513 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include <mach/common.h> | 36 | #include <mach/common.h> |
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/iomux-mx27.h> | 38 | #include <mach/iomux-mx27.h> |
39 | #include <mach/imx-uart.h> | ||
40 | #include <mach/mxc_nand.h> | 39 | #include <mach/mxc_nand.h> |
41 | 40 | ||
42 | #include "devices-imx27.h" | 41 | #include "devices-imx27.h" |
@@ -111,12 +110,8 @@ static struct platform_device eukrea_cpuimx27_nor_mtd_device = { | |||
111 | .resource = &eukrea_cpuimx27_flash_resource, | 110 | .resource = &eukrea_cpuimx27_flash_resource, |
112 | }; | 111 | }; |
113 | 112 | ||
114 | static struct imxuart_platform_data uart_pdata[] = { | 113 | static const struct imxuart_platform_data uart_pdata __initconst = { |
115 | { | 114 | .flags = IMXUART_HAVE_RTSCTS, |
116 | .flags = IMXUART_HAVE_RTSCTS, | ||
117 | }, { | ||
118 | .flags = IMXUART_HAVE_RTSCTS, | ||
119 | }, | ||
120 | }; | 115 | }; |
121 | 116 | ||
122 | static const struct mxc_nand_platform_data | 117 | static const struct mxc_nand_platform_data |
@@ -188,7 +183,7 @@ static void __init eukrea_cpuimx27_init(void) | |||
188 | mxc_gpio_setup_multiple_pins(eukrea_cpuimx27_pins, | 183 | mxc_gpio_setup_multiple_pins(eukrea_cpuimx27_pins, |
189 | ARRAY_SIZE(eukrea_cpuimx27_pins), "CPUIMX27"); | 184 | ARRAY_SIZE(eukrea_cpuimx27_pins), "CPUIMX27"); |
190 | 185 | ||
191 | mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]); | 186 | imx27_add_imx_uart0(&uart_pdata); |
192 | 187 | ||
193 | imx27_add_mxc_nand(&cpuimx27_nand_board_info); | 188 | imx27_add_mxc_nand(&cpuimx27_nand_board_info); |
194 | 189 | ||
@@ -203,7 +198,7 @@ static void __init eukrea_cpuimx27_init(void) | |||
203 | /* SDHC2 can be used for Wifi */ | 198 | /* SDHC2 can be used for Wifi */ |
204 | mxc_register_device(&mxc_sdhc_device1, NULL); | 199 | mxc_register_device(&mxc_sdhc_device1, NULL); |
205 | /* in which case UART4 is also used for Bluetooth */ | 200 | /* in which case UART4 is also used for Bluetooth */ |
206 | mxc_register_device(&imx2x_uart_device3, &uart_pdata[1]); | 201 | imx27_add_imx_uart3(&uart_pdata); |
207 | #endif | 202 | #endif |
208 | 203 | ||
209 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) | 204 | #if defined(CONFIG_SERIAL_8250) || defined(CONFIG_SERIAL_8250_MODULE) |