From: Stefan Roese Date: Sat, 25 Apr 2015 04:29:55 +0000 (+0200) Subject: arm: mvebu: Add d-cache invalidate before enabling the d-cache X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=60b75324ea6fb0a72786f3ec36c1057f39ebe2e6;p=u-boot.git 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 Tested-by: Kevin Smith Tested-by: Dirk Eibach --- diff --git a/arch/arm/mach-mvebu/cpu.c b/arch/arm/mach-mvebu/cpu.c index 8058fadb22..04681fc5a0 100644 --- a/arch/arm/mach-mvebu/cpu.c +++ b/arch/arm/mach-mvebu/cpu.c @@ -240,6 +240,9 @@ int cpu_eth_init(bd_t *bis) #ifndef CONFIG_SYS_DCACHE_OFF 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(); }