uart: change baud rate minimum value to 2400 [1/1]
authorDianzhong Huo <dianzhong.huo@amlogic.com>
Wed, 13 Feb 2019 02:36:29 +0000 (10:36 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 18 Feb 2019 10:46:23 +0000 (02:46 -0800)
PD#SH-327

Problem:
uart default min baud rate was set 9600, but PTZ PELCO-D
and PELCO-P need uart driver support 2400 and 4800 baud rate

Solution:
change baud rate minimum value to 2400

Verify:
Local

Change-Id: Iee20ea30a95b89f89a59fab95cecf7d559cbff51
Signed-off-by: Dianzhong Huo <dianzhong.huo@amlogic.com>
drivers/amlogic/uart/meson_uart.c

index 811e362b19207892f81e8553b567a2403361b730..20ccd0173407a9a7ba0ce03cfa608ac34554f444 100644 (file)
@@ -640,7 +640,7 @@ static void meson_uart_set_termios(struct uart_port *port,
        writel(val, port->membase + AML_UART_CONTROL);
        spin_unlock_irqrestore(&port->lock, flags);
 
-       baud = uart_get_baud_rate(port, termios, old, 9600, 4000000);
+       baud = uart_get_baud_rate(port, termios, old, 2400, 4000000);
        meson_uart_change_speed(port, baud);
 
        port->read_status_mask = AML_UART_RX_FIFO_OVERFLOW;