rockchip: TPL banner should depend on CONFIG_TPL_BANNER_PRINT
[oweals/u-boot.git] / arch / arm / mach-exynos / lowlevel_init.c
index 6c39cb2052f94aabba313f3ec35275388945d4ee..1e090fd63ca1ab90087b97c13f9582d25a0db343 100644 (file)
@@ -216,8 +216,11 @@ int do_lowlevel_init(void)
        if (actions & DO_CLOCKS) {
                system_clock_init();
 #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);
                debug_uart_init();
+#endif
 #endif
                mem_ctrl_init(actions & DO_MEM_RESET);
                tzpc_init();