diff options
| -rw-r--r-- | drivers/tty/serial/imx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 5bce53655c00..79d1943c2e79 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c | |||
| @@ -1028,6 +1028,11 @@ imx_set_termios(struct uart_port *port, struct ktermios *termios, | |||
| 1028 | */ | 1028 | */ |
| 1029 | div = 1; | 1029 | div = 1; |
| 1030 | } else { | 1030 | } else { |
| 1031 | /* custom-baudrate handling */ | ||
| 1032 | div = sport->port.uartclk / (baud * 16); | ||
| 1033 | if (baud == 38400 && quot != div) | ||
| 1034 | baud = sport->port.uartclk / (quot * 16); | ||
| 1035 | |||
| 1031 | div = sport->port.uartclk / (baud * 16); | 1036 | div = sport->port.uartclk / (baud * 16); |
| 1032 | if (div > 7) | 1037 | if (div > 7) |
| 1033 | div = 7; | 1038 | div = 7; |
