Commit 2276f03b745c297733e41470dde7f32bdd4b52af
Committed by
Russell King
1 parent
4104980a3c
Exists in
master
and in
7 other branches
[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 <robert.jarzmik@free.fr> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/serial/pxa.c
... | ... | @@ -534,6 +534,11 @@ |
534 | 534 | |
535 | 535 | serial_out(up, UART_IER, up->ier); |
536 | 536 | |
537 | + if (termios->c_cflag & CRTSCTS) | |
538 | + up->mcr |= UART_MCR_AFE; | |
539 | + else | |
540 | + up->mcr &= ~UART_MCR_AFE; | |
541 | + | |
537 | 542 | serial_out(up, UART_LCR, cval | UART_LCR_DLAB);/* set DLAB */ |
538 | 543 | serial_out(up, UART_DLL, quot & 0xff); /* LS of divisor */ |
539 | 544 | serial_out(up, UART_DLM, quot >> 8); /* MS of divisor */ |