tty: serial: samsung: Increase maximum baudrate
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 15 May 2014 03:35:50 +0000 (12:35 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Thu, 14 Feb 2019 05:57:40 +0000 (14:57 +0900)
This driver can be used to communicate with bluetooth chip in high-speed
UART mode, so increase maximum baudrate to 3Mbps.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
[mszyprow: rephrased commit message]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ifd046553dfd9f4f469f58ded785844631c1ef08e

drivers/tty/serial/samsung.c

index f4b8e4e..1b454cb 100644 (file)
@@ -1265,7 +1265,7 @@ static void s3c24xx_serial_set_termios(struct uart_port *port,
         * Ask the core to calculate the divisor for us.
         */
 
-       baud = uart_get_baud_rate(port, termios, old, 0, 115200*8);
+       baud = uart_get_baud_rate(port, termios, old, 0, 3000000);
        quot = s3c24xx_serial_getclk(ourport, baud, &clk, &clk_sel);
        if (baud == 38400 && (port->flags & UPF_SPD_MASK) == UPF_SPD_CUST)
                quot = port->custom_divisor;