]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
arc: cache - build invalidate_icache_all() and invalidate_dcache_all()
authorAlexey Brodkin <abrodkin@synopsys.com>
Fri, 27 Mar 2015 09:47:29 +0000 (12:47 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:38:13 +0000 (14:38 +0200)
commitcd41ba9242022e51cb934e3dbec9d1b42da49c2f
tree988c6a70e2e9c1c21bc81e7657825bcd80282ae4
parent819151b14739dbb09e718961e41abdfdf67d60a0
arc: cache - build invalidate_icache_all() and invalidate_dcache_all()
always

Make both invalidate_icache_all() and invalidate_dcache_all() available
even if U-Boot is configured with CONFIG_SYS_DCACHE_OFF and/or
CONFIG_SYS_ICACHE_OFF.

This is useful because configuration of U-Boot may not match actual
hardware features. Real board may have cache(s) but for some reason we
may want to run U-Boot with cache(s) disabled (for example if some
peripherals work improperly with existing drivers if data cache is
enabled). So board may start with cache(s) enabled (that's the case for
ARC cores with built-in caches) but early in U-Boot we disable cache(s)
and make sure all contents of data cache gets flushed in RAM.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/lib/cache.c