From: Robert Jarzmik Date: Sat, 6 Sep 2008 22:01:32 +0000 (+0100) Subject: [ARM] 5244/1: Add hardware CTSRTS flow control to pxa serial driver X-Git-Tag: v2.6.28-rc1~293^2~6^2~24 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2276f03b745c297733e41470dde7f32bdd4b52af;p=linux-2.6-omap-h63xx.git [ARM] 5244/1: Add hardware CTSRTS flow control to pxa serial driver Adds hardware CTSRTS control for pxa serial devices through termios controls. Signed-off-by: Robert Jarzmik Signed-off-by: Russell King --- diff --git a/drivers/serial/pxa.c b/drivers/serial/pxa.c index f7a0d37c422..abc00be5543 100644 --- a/drivers/serial/pxa.c +++ b/drivers/serial/pxa.c @@ -534,6 +534,11 @@ serial_pxa_set_termios(struct uart_port *port, struct ktermios *termios, serial_out(up, UART_IER, up->ier); + if (termios->c_cflag & CRTSCTS) + up->mcr |= UART_MCR_AFE; + else + up->mcr &= ~UART_MCR_AFE; + serial_out(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */