]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-exynos/lowlevel_init.c
Merge git://git.denx.de/u-boot-fsl-qoriq
[u-boot] / arch / arm / mach-exynos / lowlevel_init.c
index 37746078487eda5b6339b6321754bbaafae30d37..1e090fd63ca1ab90087b97c13f9582d25a0db343 100644 (file)
@@ -175,7 +175,7 @@ int do_lowlevel_init(void)
 
        arch_cpu_init();
 
-#ifndef CONFIG_SYS_L2CACHE_OFF
+#if !defined(CONFIG_SYS_L2CACHE_OFF) && defined(CONFIG_EXYNOS5420)
        /*
         * Init L2 cache parameters here for use by boot and resume
         *
@@ -188,9 +188,7 @@ int do_lowlevel_init(void)
        configure_l2_actlr();
        dsb();
        isb();
-#endif
 
-#ifdef CONFIG_EXYNOS5420
        relocate_wait_code();
 
        /* Reconfigure secondary cores */
@@ -218,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();