Skip to content

Commit

Permalink
[ARM] 5244/1: Add hardware CTSRTS flow control to pxa serial driver
Browse files Browse the repository at this point in the history
Adds hardware CTSRTS control for pxa serial devices through
termios controls.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Robert Jarzmik authored and Russell King committed Sep 9, 2008
1 parent 4104980 commit 2276f03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/serial/pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 2276f03

Please sign in to comment.