diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-08-11 16:23:06 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-01 03:32:55 -0400 |
commit | 04b73b1571c26d491c62c42cb06b96bf482fa7a2 (patch) | |
tree | 1854fdcae02f4bb0b38af0e8630c826a705f615f /arch/arm/mach-mx5/board-mx51_babbage.c | |
parent | 2b82e64d787f9d1a5d304da137c2b1bdbe3b2d9d (diff) |
ARM: mx51: dynamically register imx-uart devices
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/mach-mx5/board-mx51_babbage.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index 3f3075d7768f..7c0b6618a164 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -21,7 +21,6 @@ | |||
21 | 21 | ||
22 | #include <mach/common.h> | 22 | #include <mach/common.h> |
23 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
24 | #include <mach/imx-uart.h> | ||
25 | #include <mach/iomux-mx51.h> | 24 | #include <mach/iomux-mx51.h> |
26 | #include <mach/mxc_ehci.h> | 25 | #include <mach/mxc_ehci.h> |
27 | 26 | ||
@@ -31,6 +30,7 @@ | |||
31 | #include <asm/mach/arch.h> | 30 | #include <asm/mach/arch.h> |
32 | #include <asm/mach/time.h> | 31 | #include <asm/mach/time.h> |
33 | 32 | ||
33 | #include "devices-imx51.h" | ||
34 | #include "devices.h" | 34 | #include "devices.h" |
35 | 35 | ||
36 | #define BABBAGE_USB_HUB_RESET (0*32 + 7) /* GPIO_1_7 */ | 36 | #define BABBAGE_USB_HUB_RESET (0*32 + 7) /* GPIO_1_7 */ |
@@ -120,15 +120,15 @@ static struct pad_desc mx51babbage_pads[] = { | |||
120 | 120 | ||
121 | /* Serial ports */ | 121 | /* Serial ports */ |
122 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) | 122 | #if defined(CONFIG_SERIAL_IMX) || defined(CONFIG_SERIAL_IMX_MODULE) |
123 | static struct imxuart_platform_data uart_pdata = { | 123 | static const struct imxuart_platform_data uart_pdata __initconst = { |
124 | .flags = IMXUART_HAVE_RTSCTS, | 124 | .flags = IMXUART_HAVE_RTSCTS, |
125 | }; | 125 | }; |
126 | 126 | ||
127 | static inline void mxc_init_imx_uart(void) | 127 | static inline void mxc_init_imx_uart(void) |
128 | { | 128 | { |
129 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 129 | imx51_add_imx_uart(0, &uart_pdata); |
130 | mxc_register_device(&mxc_uart_device1, &uart_pdata); | 130 | imx51_add_imx_uart(1, &uart_pdata); |
131 | mxc_register_device(&mxc_uart_device2, &uart_pdata); | 131 | imx51_add_imx_uart(2, &uart_pdata); |
132 | } | 132 | } |
133 | #else /* !SERIAL_IMX */ | 133 | #else /* !SERIAL_IMX */ |
134 | static inline void mxc_init_imx_uart(void) | 134 | static inline void mxc_init_imx_uart(void) |