Skip to content
Snippets Groups Projects
Commit 60b75324 authored by Stefan Roese's avatar Stefan Roese Committed by Luka Perkov
Browse files

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: default avatarStefan Roese <sr@denx.de>
Tested-by: default avatarKevin Smith <kevin.smith@elecsyscorp.com>
Tested-by: default avatarDirk Eibach <dirk.eibach@gdsys.cc>
parent b81d0ea7
No related branches found
No related tags found
No related merge requests found
...@@ -240,6 +240,9 @@ int cpu_eth_init(bd_t *bis) ...@@ -240,6 +240,9 @@ int cpu_eth_init(bd_t *bis)
#ifndef CONFIG_SYS_DCACHE_OFF #ifndef CONFIG_SYS_DCACHE_OFF
void enable_caches(void) 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 */ /* Enable D-cache. I-cache is already enabled in start.S */
dcache_enable(); dcache_enable();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment