]> git.sur5r.net Git - u-boot/blobdiff - arch/arc/lib/cache.c
arc/cache: Flush & invalidate all caches right before enabling IOC
[u-boot] / arch / arc / lib / cache.c
index a27499e02734d0fd476d0b67f489fb3ab2320bd0..b6ec83112cd8aa5264d9572c9ef97fbf0f9462ce 100644 (file)
@@ -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 */