diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-23 05:46:16 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:58 -0400 |
commit | 16cf5c41514fd94ff1e8b6be091e4b4732688fa6 (patch) | |
tree | b6c14199c6bac7a174c22a3d05eb48689a81df47 /arch/arm/mach-mx3/mx31lilly-db.c | |
parent | d5dac4a69fe571ec12d999174e0425f2641325d4 (diff) |
ARM: imx: dynamically register imx-uart devices (imx31)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31lilly-db.c')
-rw-r--r-- | arch/arm/mach-mx3/mx31lilly-db.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mx3/mx31lilly-db.c b/arch/arm/mach-mx3/mx31lilly-db.c index 2e50951d7319..827fd3c80201 100644 --- a/arch/arm/mach-mx3/mx31lilly-db.c +++ b/arch/arm/mach-mx3/mx31lilly-db.c | |||
@@ -32,13 +32,13 @@ | |||
32 | 32 | ||
33 | #include <mach/hardware.h> | 33 | #include <mach/hardware.h> |
34 | #include <mach/common.h> | 34 | #include <mach/common.h> |
35 | #include <mach/imx-uart.h> | ||
36 | #include <mach/iomux-mx3.h> | 35 | #include <mach/iomux-mx3.h> |
37 | #include <mach/board-mx31lilly.h> | 36 | #include <mach/board-mx31lilly.h> |
38 | #include <mach/mmc.h> | 37 | #include <mach/mmc.h> |
39 | #include <mach/mx3fb.h> | 38 | #include <mach/mx3fb.h> |
40 | #include <mach/ipu.h> | 39 | #include <mach/ipu.h> |
41 | 40 | ||
41 | #include "devices-imx31.h" | ||
42 | #include "devices.h" | 42 | #include "devices.h" |
43 | 43 | ||
44 | /* | 44 | /* |
@@ -92,7 +92,7 @@ static unsigned int lilly_db_board_pins[] __initdata = { | |||
92 | }; | 92 | }; |
93 | 93 | ||
94 | /* UART */ | 94 | /* UART */ |
95 | static struct imxuart_platform_data uart_pdata __initdata = { | 95 | static const struct imxuart_platform_data uart_pdata __initconst = { |
96 | .flags = IMXUART_HAVE_RTSCTS, | 96 | .flags = IMXUART_HAVE_RTSCTS, |
97 | }; | 97 | }; |
98 | 98 | ||
@@ -213,9 +213,9 @@ void __init mx31lilly_db_init(void) | |||
213 | mxc_iomux_setup_multiple_pins(lilly_db_board_pins, | 213 | mxc_iomux_setup_multiple_pins(lilly_db_board_pins, |
214 | ARRAY_SIZE(lilly_db_board_pins), | 214 | ARRAY_SIZE(lilly_db_board_pins), |
215 | "development board pins"); | 215 | "development board pins"); |
216 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 216 | imx31_add_imx_uart0(&uart_pdata); |
217 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | 217 | imx31_add_imx_uart1(&uart_pdata); |
218 | mxc_register_device(&mxc_uart_device2, &uart_pdata); | 218 | imx31_add_imx_uart2(&uart_pdata); |
219 | mxc_register_device(&mxcsdhc_device0, &mmc_pdata); | 219 | mxc_register_device(&mxcsdhc_device0, &mmc_pdata); |
220 | mx31lilly_init_fb(); | 220 | mx31lilly_init_fb(); |
221 | } | 221 | } |