Commit 60b75324ea6fb0a72786f3ec36c1057f39ebe2e6

Authored by Stefan Roese
Committed by Luka Perkov
1 parent b81d0ea728

arm: mvebu: Add d-cache invalidate before enabling the d-cache

This solves some RX problems that have been seen, when using the
mvneta ethernet driver. The cache needs to be reset into a "clean"
state before using it.

Signed-off-by: Stefan Roese <sr@denx.de>
Tested-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Tested-by: Dirk Eibach <dirk.eibach@gdsys.cc>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

arch/arm/mach-mvebu/cpu.c
... ... @@ -240,6 +240,9 @@
240 240 #ifndef CONFIG_SYS_DCACHE_OFF
241 241 void enable_caches(void)
242 242 {
  243 + /* Avoid problem with e.g. neta ethernet driver */
  244 + invalidate_dcache_all();
  245 +
243 246 /* Enable D-cache. I-cache is already enabled in start.S */
244 247 dcache_enable();
245 248 }