diff options
author | Valentin Longchamp <valentin.longchamp@epfl.ch> | 2009-01-28 09:13:53 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-03-13 05:34:03 -0400 |
commit | 63d976672e39176316b2a479464aa3aaf7c2a7fd (patch) | |
tree | 5e3db629b2e24b3f0afc0c582ba2b5795532b3be /arch/arm/mach-mx3 | |
parent | 945c10b87c4d72ac9ad392132d19d17f3ebdb310 (diff) |
mx31pdk: use of new iomux implementation
This was only compilation tested.
Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3')
-rw-r--r-- | arch/arm/mach-mx3/mx31pdk.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/arm/mach-mx3/mx31pdk.c b/arch/arm/mach-mx3/mx31pdk.c index ac427edb4db1..9108f157b76c 100644 --- a/arch/arm/mach-mx3/mx31pdk.c +++ b/arch/arm/mach-mx3/mx31pdk.c | |||
@@ -45,13 +45,16 @@ static struct imxuart_platform_data uart_pdata = { | |||
45 | .flags = IMXUART_HAVE_RTSCTS, | 45 | .flags = IMXUART_HAVE_RTSCTS, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | static int uart_pins[] = { | ||
49 | MX31_PIN_CTS1__CTS1, | ||
50 | MX31_PIN_RTS1__RTS1, | ||
51 | MX31_PIN_TXD1__TXD1, | ||
52 | MX31_PIN_RXD1__RXD1 | ||
53 | }; | ||
54 | |||
48 | static inline void mxc_init_imx_uart(void) | 55 | static inline void mxc_init_imx_uart(void) |
49 | { | 56 | { |
50 | mxc_iomux_mode(MX31_PIN_CTS1__CTS1); | 57 | mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0"); |
51 | mxc_iomux_mode(MX31_PIN_RTS1__RTS1); | ||
52 | mxc_iomux_mode(MX31_PIN_TXD1__TXD1); | ||
53 | mxc_iomux_mode(MX31_PIN_RXD1__RXD1); | ||
54 | |||
55 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 58 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
56 | } | 59 | } |
57 | 60 | ||