X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Farc%2Flib%2Finit_helpers.c;h=dbc8d68ffb240c692eac6c3dda76404f8451a439;hb=9ac0b63973b70164e21bddc6e3657fc16a63fe13;hp=25690ee16e01b46ccbf5e08cbea77c01f225edc9;hpb=1d2f74690cace803844bce198a6d5fa1b6cd11f9;p=u-boot diff --git a/arch/arc/lib/init_helpers.c b/arch/arc/lib/init_helpers.c index 25690ee16e..dbc8d68ffb 100644 --- a/arch/arc/lib/init_helpers.c +++ b/arch/arc/lib/init_helpers.c @@ -10,16 +10,8 @@ DECLARE_GLOBAL_DATA_PTR; int init_cache_f_r(void) { -#ifndef CONFIG_SYS_ICACHE_OFF - icache_enable(); - /* Make sure no stale entries persist from before we disabled cache */ - invalidate_icache_all(); -#endif - #ifndef CONFIG_SYS_DCACHE_OFF - dcache_enable(); - /* Make sure no stale entries persist from before we disabled cache */ - invalidate_dcache_all(); + flush_dcache_all(); #endif return 0; }