aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3
diff options
context:
space:
mode:
authorMagnus Lilja <lilja.magnus@gmail.com>2009-05-16 06:43:10 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2009-05-16 10:25:04 -0400
commit153fa1d8c6cf7b0e552bbd093dbad2e3c9b318ed (patch)
tree29cde0d2f345e56d750049c96b7a76190cd1b0bc /arch/arm/mach-mx3
parent92ab0a50157449c5bcf55ab4aad0a0c2da0be7c7 (diff)
i.MX31: Restructure UART setup for PDK board.
Restructure UART pin setup in preparation for adding other pins in later patches. Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r--arch/arm/mach-mx3/mx31pdk.c20
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
44static struct imxuart_platform_data uart_pdata = { 44static int mx31pdk_pins[] = {
45 .flags = IMXUART_HAVE_RTSCTS, 45 /* UART1 */
46};
47
48static 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
55static inline void mxc_init_imx_uart(void) 52static 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 */
64static void __init mxc_board_init(void) 59static 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
69static void __init mx31pdk_timer_init(void) 67static void __init mx31pdk_timer_init(void)