serial: samsung: fix maximum baudrate
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 15 May 2014 03:35:50 +0000 (12:35 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:33 +0000 (12:00 +0900)
To support hs uart, maximum baudrate is fixed to 3Mbps.

Change-Id: Idc39e09a8089c61518a3525058ae6647a625c8fb
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/tty/serial/samsung.c

index 165f134..bf24bf0 100644 (file)
@@ -710,7 +710,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;