diff options
author | Thomas Rohloff <[email protected]> | 2017-11-05 20:36:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-11-08 13:23:51 +0100 |
commit | 9b11f19e414b1d1314ee581e8c1e084bced8e5cc (patch) | |
tree | a11867d960da0f3bb34619db4059796102d5115b | |
parent | 07a708f0a16f040b319db647452bcb8884cd04be (diff) |
tty: serial: meson: allow baud-rates lower than 9600
Devices like DCF77 receivers need the baud-rate to be as low as 50.
I have tested this on a Meson GXL device with uart_A.
Cc: Jiri Slaby <[email protected]>
Cc: Carlo Caione <[email protected]>
Cc: Kevin Hilman <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Thomas Rohloff <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | drivers/tty/serial/meson_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 7bdd82df5dc9..daafe60175da 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -367,7 +367,7 @@ static void meson_uart_set_termios(struct uart_port *port, writel(val, port->membase + AML_UART_CONTROL); - baud = uart_get_baud_rate(port, termios, old, 9600, 4000000); + baud = uart_get_baud_rate(port, termios, old, 50, 4000000); meson_uart_change_speed(port, baud); port->read_status_mask = AML_UART_TX_FIFO_WERR; |