mb/ocp/deltalake: Initialize VPD 'coreboot_uart_io' with default value 1
In case the VPD variable cannot be read. Change-Id: I79fae6f4b4aad91a4040387ca6ddee8dfcc34d90 Signed-off-by: Johnny Lin <johnny_lin@wiwynn.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51559 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ce9b26cdd5
commit
a699240612
|
@ -9,7 +9,7 @@
|
|||
|
||||
unsigned int get_uart_for_console(void)
|
||||
{
|
||||
int val_int;
|
||||
int val_int = COREBOOT_UART_IO_DEFAULT;
|
||||
|
||||
if (vpd_get_int(COREBOOT_UART_IO, VPD_RW_THEN_RO, (int *const) &val_int)) {
|
||||
if (val_int > 3)
|
||||
|
|
Loading…
Reference in New Issue