Skip to content
Snippets Groups Projects
Commit c06bbab6 authored by Marek Vasut's avatar Marek Vasut Committed by Minkyu Kang
Browse files

ARM: exynos: Fix build error if SERIAL is disabled in SPL


If CONFIG_SPL_SERIAL_SUPPORT is not defined in include/configs/exynos5-common.h
the following error is produced during the build of the SPL:

arch/arm/mach-exynos/built-in.o: In function `do_lowlevel_init':
...u-boot/arch/arm/mach-exynos/lowlevel_init.c:221: undefined reference to `debug_uart_init'

Add additional condition to check if SPL build is in progress and
in that case check if CONFIG_SPL_SERIAL_SUPPORT is also set before
enabling the debug UART.

Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent f4f2fce7
No related branches found
No related tags found
No related merge requests found
...@@ -216,8 +216,11 @@ int do_lowlevel_init(void) ...@@ -216,8 +216,11 @@ int do_lowlevel_init(void)
if (actions & DO_CLOCKS) { if (actions & DO_CLOCKS) {
system_clock_init(); system_clock_init();
#ifdef CONFIG_DEBUG_UART #ifdef CONFIG_DEBUG_UART
#if (defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL_SUPPORT)) || \
!defined(CONFIG_SPL_BUILD)
exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE); exynos_pinmux_config(PERIPH_ID_UART3, PINMUX_FLAG_NONE);
debug_uart_init(); debug_uart_init();
#endif
#endif #endif
mem_ctrl_init(actions & DO_MEM_RESET); mem_ctrl_init(actions & DO_MEM_RESET);
tzpc_init(); tzpc_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment