summaryrefslogtreecommitdiff
path: root/src/mainboard/ocp
diff options
context:
space:
mode:
authorJohnny Lin <johnny_lin@wiwynn.com>2021-03-17 13:38:29 +0800
committerArthur Heymans <arthur@aheymans.xyz>2021-03-18 13:17:10 +0000
commita699240612d252bb3e7968f28d54de795ba8648c (patch)
treefcdcd056e97b2abcced2bf0c2aa847c429eafd19 /src/mainboard/ocp
parentce9b26cdd51d54e44f319c65d21d0adb57f09dfd (diff)
downloadcoreboot-a699240612d252bb3e7968f28d54de795ba8648c.tar.xz
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>
Diffstat (limited to 'src/mainboard/ocp')
-rw-r--r--src/mainboard/ocp/deltalake/uartio_vpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/ocp/deltalake/uartio_vpd.c b/src/mainboard/ocp/deltalake/uartio_vpd.c
index e7689f5209..d2e052f93a 100644
--- a/src/mainboard/ocp/deltalake/uartio_vpd.c
+++ b/src/mainboard/ocp/deltalake/uartio_vpd.c
@@ -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)