mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
serial: 8250_early: Setup divider when uartclk is passed
device->baud is always non zero value because it is checked already in early_serial8250_setup() before init_port is called. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
c6964e93ca
commit
700ad5531b
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ static void __init init_port(struct earlycon_device *device)
|
|||
serial8250_early_out(port, UART_FCR, 0); /* no fifo */
|
||||
serial8250_early_out(port, UART_MCR, 0x3); /* DTR + RTS */
|
||||
|
||||
if (port->uartclk && device->baud) {
|
||||
if (port->uartclk) {
|
||||
divisor = DIV_ROUND_CLOSEST(port->uartclk, 16 * device->baud);
|
||||
c = serial8250_early_in(port, UART_LCR);
|
||||
serial8250_early_out(port, UART_LCR, c | UART_LCR_DLAB);
|
||||
|
|
|
|||
Loading…
Reference in a new issue