summaryrefslogtreecommitdiff
path: root/src/soc/samsung/exynos5420
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-11-18 10:34:24 -0700
committerNico Huber <nico.h@gmx.de>2016-11-24 00:07:00 +0100
commitff94e003626ff0a496d12c703155c63ee3bbd22d (patch)
tree491c983f071f5f355f694140b6b7fb4e530805e3 /src/soc/samsung/exynos5420
parenta2267b8490ca397ccfe067e6d059fce0966f86db (diff)
downloadcoreboot-ff94e003626ff0a496d12c703155c63ee3bbd22d.tar.xz
soc/samsung/exynos5420/uart.c: Init new serial struct variables
The lb_serial structure had some new entries added, which were not being filled in. Fill in the values so they're not undefined. Addresses coverity error 1354778 - Uninitialized scalar variable Change-Id: Ia7ce07f6e4e058c91c2e063f3225497271ef93ff Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/17482 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/soc/samsung/exynos5420')
-rw-r--r--src/soc/samsung/exynos5420/uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/soc/samsung/exynos5420/uart.c b/src/soc/samsung/exynos5420/uart.c
index 00ed43298e..6f54c003ba 100644
--- a/src/soc/samsung/exynos5420/uart.c
+++ b/src/soc/samsung/exynos5420/uart.c
@@ -184,6 +184,8 @@ void uart_fill_lb(void *data)
serial.baseaddr = uart_platform_base(CONFIG_UART_FOR_CONSOLE);
serial.baud = default_baudrate();
serial.regwidth = 4;
+ serial.input_hertz = uart_platform_refclk();
+ serial.uart_pci_addr = 0;
lb_add_serial(&serial, data);
lb_add_console(LB_TAG_CONSOLE_SERIAL8250MEM, data);