]> git.sur5r.net Git - u-boot/commitdiff
ARM: exynos: fix regression for Origen4210
authorThomas Abraham <thomas.ab@samsung.com>
Mon, 3 Aug 2015 12:28:01 +0000 (17:58 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 17 Aug 2015 04:06:55 +0000 (13:06 +0900)
The do_lowlevel_init() function includes certian CA15 specific L2 cache
configuration which is only applicable on Exynos5420 and members of its
family. Fix the regression on Origen4210 by skipping the Exynos5420
specific portions of the code.

Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Tested-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/mach-exynos/common_setup.h
arch/arm/mach-exynos/lowlevel_init.c

index 5235abb808a42c1a6b9ce6a90fd4eb53da5f139e..67aac2d57517b5988c637798ee739509cb796847 100644 (file)
@@ -60,7 +60,7 @@ enum l2_cache_params {
 };
 
 
-#ifndef CONFIG_SYS_L2CACHE_OFF
+#if !defined(CONFIG_SYS_L2CACHE_OFF) && defined(CONFIG_EXYNOS5420)
 /*
  * Configure L2CTLR to get timings that keep us from hanging/crashing.
  *
index 37746078487eda5b6339b6321754bbaafae30d37..6c39cb2052f94aabba313f3ec35275388945d4ee 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 */