serial: Add initialization of sampling mode and tx/rx triggers to pci_xr17v35x_setup
authorMatt Schulte <matts@commtech-fastcom.com>
Tue, 20 Nov 2012 17:25:40 +0000 (11:25 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Nov 2012 00:28:04 +0000 (16:28 -0800)
Add initialization of sampling mode and tx/rx triggers to pci_xr17v35x_setup

Signed-off-by: Matt Schulte <matts@commtech-fastcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c

index 2285d3283b3be61a35cf5d88c147b90446216c3e..089fd43e378416ceccd7de42632378afa74b27d3 100644 (file)
@@ -1192,6 +1192,10 @@ pci_xr17v35x_setup(struct serial_private *priv,
                writeb(0x00, p + 0x99); /*MPIOSEL[15:8]*/
                writeb(0x00, p + 0x9a); /*MPIOOD[15:8]*/
        }
+       writeb(0x00, p + UART_EXAR_8XMODE);
+       writeb(UART_FCTR_EXAR_TRGD, p + UART_EXAR_FCTR);
+       writeb(128, p + UART_EXAR_TXTRG);
+       writeb(128, p + UART_EXAR_RXTRG);
        iounmap(p);
 
        return pci_default_setup(priv, board, port, idx);