ARM: LPC32xx: Move uart6 irda disable to serial.c
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Wed, 13 Jun 2012 22:34:25 +0000 (19:34 -0300)
committerRoland Stigge <stigge@antcom.de>
Thu, 14 Jun 2012 14:16:19 +0000 (16:16 +0200)
Move the irda configuration to serial.c where other special cases are
handled

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Roland Stigge <stigge@antcom.de>
arch/arm/mach-lpc32xx/phy3250.c
arch/arm/mach-lpc32xx/serial.c

index d7389598c21aff5730a257c2cea3aa8573516410..eb22fbf029eacf2c513bae0ce6948167c11a3051 100644 (file)
@@ -260,11 +260,6 @@ static void __init lpc3250_machine_init(void)
                LPC32XX_CLKPWR_I2CCLK_I2C2HI_DRIVE;
        __raw_writel(tmp, LPC32XX_CLKPWR_I2C_CLK_CTRL);
 
-       /* Disable IrDA pulsing support on UART6 */
-       tmp = __raw_readl(LPC32XX_UARTCTL_CTRL);
-       tmp |= LPC32XX_UART_UART6_IRDAMOD_BYPASS;
-       __raw_writel(tmp, LPC32XX_UARTCTL_CTRL);
-
        /* Enable DMA for I2S1 channel */
        tmp = __raw_readl(LPC32XX_CLKPWR_I2S_CLK_CTRL);
        tmp = LPC32XX_CLKPWR_I2SCTRL_I2S1_USE_DMA;
index b5a3f3423f63c13072da337c95f1f2654fa4ae52..05621a29fba22cb5a1754f525d90817c9eaf3c57 100644 (file)
@@ -118,6 +118,11 @@ void __init lpc32xx_serial_init(void)
                __raw_writel(0, LPC32XX_UART_IIR_FCR(puart));
        }
 
+       /* Disable IrDA pulsing support on UART6 */
+       tmp = __raw_readl(LPC32XX_UARTCTL_CTRL);
+       tmp |= LPC32XX_UART_UART6_IRDAMOD_BYPASS;
+       __raw_writel(tmp, LPC32XX_UARTCTL_CTRL);
+
        /* Disable UART5->USB transparent mode or USB won't work */
        tmp = __raw_readl(LPC32XX_UARTCTL_CTRL);
        tmp &= ~LPC32XX_UART_U5_ROUTE_TO_USB;