diff options
author | Bich HEMON <bich.hemon@st.com> | 2017-07-13 11:08:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-30 10:32:31 -0400 |
commit | 35abe98f15ed60d252f79da6e41b477527af8b2f (patch) | |
tree | de51d703977da1d95f30068e23f342efc037f690 /drivers/tty/serial/stm32-usart.c | |
parent | cc7aefd4fa6c0e12301a923b629f49bfbaaac6b1 (diff) |
serial: stm32: add RTS support
Implement support of RTS in USART control register
Signed-off-by: Bich Hemon <bich.hemon@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/stm32-usart.c')
-rw-r--r-- | drivers/tty/serial/stm32-usart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index a12d79cfe607..2fca2d2a83cc 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c | |||
@@ -518,7 +518,7 @@ static void stm32_set_termios(struct uart_port *port, struct ktermios *termios, | |||
518 | port->status &= ~(UPSTAT_AUTOCTS | UPSTAT_AUTORTS); | 518 | port->status &= ~(UPSTAT_AUTOCTS | UPSTAT_AUTORTS); |
519 | if (cflag & CRTSCTS) { | 519 | if (cflag & CRTSCTS) { |
520 | port->status |= UPSTAT_AUTOCTS | UPSTAT_AUTORTS; | 520 | port->status |= UPSTAT_AUTOCTS | UPSTAT_AUTORTS; |
521 | cr3 |= USART_CR3_CTSE; | 521 | cr3 |= USART_CR3_CTSE | USART_CR3_RTSE; |
522 | } | 522 | } |
523 | 523 | ||
524 | usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud); | 524 | usartdiv = DIV_ROUND_CLOSEST(port->uartclk, baud); |