summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mvebu/cpu.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2016-02-10 09:18:46 +0100
committerStefan Roese <sr@denx.de>2016-04-04 11:22:15 +0200
commitebe7890321250352b812dbbf127a46ef58256d1c (patch)
treecd34b186c39431221fb40776910e254c72e50748 /arch/arm/mach-mvebu/cpu.c
parent606576d54b673119d956cf4b9b24b098c1c05196 (diff)
downloadu-boot-imx-ebe7890321250352b812dbbf127a46ef58256d1c.zip
u-boot-imx-ebe7890321250352b812dbbf127a46ef58256d1c.tar.gz
u-boot-imx-ebe7890321250352b812dbbf127a46ef58256d1c.tar.bz2
arm: mvebu: Don't enable d-cache on A375
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>
Diffstat (limited to 'arch/arm/mach-mvebu/cpu.c')
-rw-r--r--arch/arm/mach-mvebu/cpu.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c
index 9913802..fd66f59 100644
--- a/arch/arm/mach-mvebu/cpu.c
+++ b/arch/arm/mach-mvebu/cpu.c
@@ -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)