]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm: mvebu: Don't enable d-cache on A375
authorStefan Roese <sr@denx.de>
Wed, 10 Feb 2016 08:18:46 +0000 (09:18 +0100)
committerStefan Roese <sr@denx.de>
Mon, 4 Apr 2016 09:22:15 +0000 (11:22 +0200)
Armada 375 still has some problems with d-cache enabled in the ethernet
driver (mvpp2). So lets keep the d-cache disabled until this is solved.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
arch/arm/mach-mvebu/cpu.c

index 9913802a7e754d8be94ed81dcfdfe1f9613db64b..fd66f5939210945800e8b838250118cd1ce9761c 100644 (file)
@@ -536,8 +536,15 @@ void enable_caches(void)
        /* Avoid problem with e.g. neta ethernet driver */
        invalidate_dcache_all();
 
-       /* Enable D-cache. I-cache is already enabled in start.S */
-       dcache_enable();
+       /*
+        * Armada 375 still has some problems with d-cache enabled in the
+        * ethernet driver (mvpp2). So lets keep the d-cache disabled
+        * until this is solved.
+        */
+       if (mvebu_soc_family() != MVEBU_SOC_A375) {
+               /* Enable D-cache. I-cache is already enabled in start.S */
+               dcache_enable();
+       }
 }
 
 void v7_outer_cache_enable(void)