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-mx27ads.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-mx27ads.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx27ads.c | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index f1ee335ad241..9c77da98a10e 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <asm/mach/time.h> | 28 | #include <asm/mach/time.h> |
29 | #include <asm/mach/map.h> | 29 | #include <asm/mach/map.h> |
30 | #include <mach/gpio.h> | 30 | #include <mach/gpio.h> |
31 | #include <mach/imx-uart.h> | ||
32 | #include <mach/iomux-mx27.h> | 31 | #include <mach/iomux-mx27.h> |
33 | #include <mach/mxc_nand.h> | 32 | #include <mach/mxc_nand.h> |
34 | #include <mach/imxfb.h> | 33 | #include <mach/imxfb.h> |
@@ -289,20 +288,8 @@ static struct platform_device *platform_devices[] __initdata = { | |||
289 | &mxc_w1_master_device, | 288 | &mxc_w1_master_device, |
290 | }; | 289 | }; |
291 | 290 | ||
292 | static struct imxuart_platform_data uart_pdata[] = { | 291 | static const struct imxuart_platform_data uart_pdata __initconst = { |
293 | { | 292 | .flags = IMXUART_HAVE_RTSCTS, |
294 | .flags = IMXUART_HAVE_RTSCTS, | ||
295 | }, { | ||
296 | .flags = IMXUART_HAVE_RTSCTS, | ||
297 | }, { | ||
298 | .flags = IMXUART_HAVE_RTSCTS, | ||
299 | }, { | ||
300 | .flags = IMXUART_HAVE_RTSCTS, | ||
301 | }, { | ||
302 | .flags = IMXUART_HAVE_RTSCTS, | ||
303 | }, { | ||
304 | .flags = IMXUART_HAVE_RTSCTS, | ||
305 | }, | ||
306 | }; | 293 | }; |
307 | 294 | ||
308 | static void __init mx27ads_board_init(void) | 295 | static void __init mx27ads_board_init(void) |
@@ -310,12 +297,12 @@ static void __init mx27ads_board_init(void) | |||
310 | mxc_gpio_setup_multiple_pins(mx27ads_pins, ARRAY_SIZE(mx27ads_pins), | 297 | mxc_gpio_setup_multiple_pins(mx27ads_pins, ARRAY_SIZE(mx27ads_pins), |
311 | "mx27ads"); | 298 | "mx27ads"); |
312 | 299 | ||
313 | mxc_register_device(&imx2x_uart_device0, &uart_pdata[0]); | 300 | imx27_add_imx_uart0(&uart_pdata); |
314 | mxc_register_device(&imx2x_uart_device1, &uart_pdata[1]); | 301 | imx27_add_imx_uart1(&uart_pdata); |
315 | mxc_register_device(&imx2x_uart_device2, &uart_pdata[2]); | 302 | imx27_add_imx_uart2(&uart_pdata); |
316 | mxc_register_device(&imx2x_uart_device3, &uart_pdata[3]); | 303 | imx27_add_imx_uart3(&uart_pdata); |
317 | mxc_register_device(&imx2x_uart_device4, &uart_pdata[4]); | 304 | imx27_add_imx_uart4(&uart_pdata); |
318 | mxc_register_device(&imx2x_uart_device5, &uart_pdata[5]); | 305 | imx27_add_imx_uart5(&uart_pdata); |
319 | imx27_add_mxc_nand(&mx27ads_nand_board_info); | 306 | imx27_add_mxc_nand(&mx27ads_nand_board_info); |
320 | 307 | ||
321 | /* only the i2c master 1 is used on this CPU card */ | 308 | /* only the i2c master 1 is used on this CPU card */ |