summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/serial/qcs405.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/drivers/serial/qcs405.c')
-rw-r--r--payloads/libpayload/drivers/serial/qcs405.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/drivers/serial/qcs405.c b/payloads/libpayload/drivers/serial/qcs405.c
index 1a7b9e901b..2ed6af1749 100644
--- a/payloads/libpayload/drivers/serial/qcs405.c
+++ b/payloads/libpayload/drivers/serial/qcs405.c
@@ -541,9 +541,9 @@ int serial_getchar(void)
/* For simplicity's sake, let's rely on coreboot initializing the UART. */
void serial_console_init(void)
{
- struct cb_serial *sc_ptr = lib_sysinfo.serial;
+ struct cb_serial *sc_ptr = phys_to_virt(lib_sysinfo.cb_serial);
- if (!sc_ptr)
+ if (!lib_sysinfo.cb_serial)
return;
uart_board_param.uart_dm_base = (void *)(uintptr_t)sc_ptr->baseaddr;