drivers/uart/pl011: Fix regwidth
Width of registers are always dwords on pl011, not bytes. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I955319d31bba5c0cd4d50f2b34111d51fea653ed Reviewed-on: https://review.coreboot.org/c/coreboot/+/76883 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
This commit is contained in:
parent
db20a08b65
commit
e67513e353
|
@ -40,7 +40,7 @@ enum cb_err fill_lb_serial(struct lb_serial *serial)
|
||||||
serial->type = LB_SERIAL_TYPE_MEMORY_MAPPED;
|
serial->type = LB_SERIAL_TYPE_MEMORY_MAPPED;
|
||||||
serial->baseaddr = uart_platform_base(CONFIG_UART_FOR_CONSOLE);
|
serial->baseaddr = uart_platform_base(CONFIG_UART_FOR_CONSOLE);
|
||||||
serial->baud = get_uart_baudrate();
|
serial->baud = get_uart_baudrate();
|
||||||
serial->regwidth = 1;
|
serial->regwidth = 4;
|
||||||
serial->input_hertz = uart_platform_refclk();
|
serial->input_hertz = uart_platform_refclk();
|
||||||
|
|
||||||
return CB_SUCCESS;
|
return CB_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue