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:
Arthur Heymans 2023-08-02 19:52:45 +02:00 committed by Felix Held
parent db20a08b65
commit e67513e353
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ enum cb_err fill_lb_serial(struct lb_serial *serial)
serial->type = LB_SERIAL_TYPE_MEMORY_MAPPED;
serial->baseaddr = uart_platform_base(CONFIG_UART_FOR_CONSOLE);
serial->baud = get_uart_baudrate();
serial->regwidth = 1;
serial->regwidth = 4;
serial->input_hertz = uart_platform_refclk();
return CB_SUCCESS;