mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
uart: change baud rate minimum value to 2400 [1/1]
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>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user