diff options
author | Tom Rini <trini@konsulko.com> | 2016-06-13 08:51:50 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-13 08:51:50 -0400 |
commit | 1e031249a53e38d9b8290fa99106477c231bf2dd (patch) | |
tree | 900a726ca933cc25522cb524e79f4ae99180168b /arch/arc/lib/cache.c | |
parent | f4abfed1de34e3fa18be4a8a156416cd6ed21f4a (diff) | |
parent | fc1e8fbbb2ea73139c2eadf2f174d6c3fc4ee03f (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-arc
Diffstat (limited to 'arch/arc/lib/cache.c')
-rw-r--r-- | arch/arc/lib/cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arc/lib/cache.c b/arch/arc/lib/cache.c index d1fb661537..b6ec83112c 100644 --- a/arch/arc/lib/cache.c +++ b/arch/arc/lib/cache.c @@ -209,6 +209,9 @@ void cache_init(void) read_decode_cache_bcr_arcv2(); if (ioc_exists) { + flush_dcache_all(); + invalidate_dcache_all(); + /* IO coherency base - 0x8z */ write_aux_reg(ARC_AUX_IO_COH_AP0_BASE, 0x80000); /* IO coherency aperture size - 512Mb: 0x8z-0xAz */ @@ -417,13 +420,10 @@ void flush_cache(unsigned long start, unsigned long size) void invalidate_dcache_all(void) { -#ifdef CONFIG_ISA_ARCV2 - if (!ioc_exists) -#endif - __dc_entire_op(OP_INV); + __dc_entire_op(OP_INV); #ifdef CONFIG_ISA_ARCV2 - if (slc_exists && !ioc_exists) + if (slc_exists) __slc_entire_op(OP_INV); #endif } |