]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mx31pdk: use of new iomux implementation
authorValentin Longchamp <valentin.longchamp@epfl.ch>
Wed, 28 Jan 2009 14:13:53 +0000 (15:13 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 13 Mar 2009 09:34:03 +0000 (10:34 +0100)
This was only compilation tested.

Signed-off-by: Valentin Longchamp <valentin.longchamp@epfl.ch>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-mx3/mx31pdk.c

index ac427edb4db142fbe49cc1d2f33047045635b75d..9108f157b76c6ca056946c9c8c0a18e01ea01423 100644 (file)
@@ -45,13 +45,16 @@ static struct imxuart_platform_data uart_pdata = {
        .flags = IMXUART_HAVE_RTSCTS,
 };
 
+static int uart_pins[] = {
+       MX31_PIN_CTS1__CTS1,
+       MX31_PIN_RTS1__RTS1,
+       MX31_PIN_TXD1__TXD1,
+       MX31_PIN_RXD1__RXD1
+};
+
 static inline void mxc_init_imx_uart(void)
 {
-       mxc_iomux_mode(MX31_PIN_CTS1__CTS1);
-       mxc_iomux_mode(MX31_PIN_RTS1__RTS1);
-       mxc_iomux_mode(MX31_PIN_TXD1__TXD1);
-       mxc_iomux_mode(MX31_PIN_RXD1__RXD1);
-
+       mxc_iomux_setup_multiple_pins(uart_pins, ARRAY_SIZE(uart_pins), "uart-0");
        mxc_register_device(&mxc_uart_device0, &uart_pdata);
 }