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:
Johnny Lin 2021-03-17 13:38:29 +08:00 committed by Arthur Heymans
parent ce9b26cdd5
commit a699240612
1 changed files with 1 additions and 1 deletions

View File

@ -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)