diff options
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/mx31pdk.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/arch/arm/mach-mx3/mx31pdk.c b/arch/arm/mach-mx3/mx31pdk.c index 048084bc6133..5345498aeff3 100644 --- a/arch/arm/mach-mx3/mx31pdk.c +++ b/arch/arm/mach-mx3/mx31pdk.c | |||
@@ -41,29 +41,27 @@ | |||
41 | * @ingroup System | 41 | * @ingroup System |
42 | */ | 42 | */ |
43 | 43 | ||
44 | static struct imxuart_platform_data uart_pdata = { | 44 | static int mx31pdk_pins[] = { |
45 | .flags = IMXUART_HAVE_RTSCTS, | 45 | /* UART1 */ |
46 | }; | ||
47 | |||
48 | static int uart_pins[] = { | ||
49 | MX31_PIN_CTS1__CTS1, | 46 | MX31_PIN_CTS1__CTS1, |
50 | MX31_PIN_RTS1__RTS1, | 47 | MX31_PIN_RTS1__RTS1, |
51 | MX31_PIN_TXD1__TXD1, | 48 | MX31_PIN_TXD1__TXD1, |
52 | MX31_PIN_RXD1__RXD1 | 49 | MX31_PIN_RXD1__RXD1 |
53 | }; | 50 | }; |
54 | 51 | ||
55 | static inline void mxc_init_imx_uart(void) | 52 | static struct imxuart_platform_data uart_pdata = { |
56 | { | 53 | .flags = IMXUART_HAVE_RTSCTS, |
57 | mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0"); | 54 | }; |
58 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | ||
59 | } | ||
60 | 55 | ||
61 | /*! | 56 | /*! |
62 | * Board specific initialization. | 57 | * Board specific initialization. |
63 | */ | 58 | */ |
64 | static void __init mxc_board_init(void) | 59 | static void __init mxc_board_init(void) |
65 | { | 60 | { |
66 | mxc_init_imx_uart(); | 61 | mxc_iomux_setup_multiple_pins(mx31pdk_pins, ARRAY_SIZE(mx31pdk_pins), |
62 | "mx31pdk"); | ||
63 | |||
64 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | ||
67 | } | 65 | } |
68 | 66 | ||
69 | static void __init mx31pdk_timer_init(void) | 67 | static void __init mx31pdk_timer_init(void) |