From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Fri, 3 Apr 2015 16:25:43 +0000 Subject: [U-Boot] [PATCH v2 1/7] arc: cache - build invalidate_icache_all() and invalidate_dcache_all() always In-Reply-To: <1427796536-30035-2-git-send-email-abrodkin@synopsys.com> References: <1427796536-30035-1-git-send-email-abrodkin@synopsys.com> <1427796536-30035-2-git-send-email-abrodkin@synopsys.com> Message-ID: <1428078342.2836.13.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2015-03-31 at 13:08 +0300, Alexey Brodkin wrote: > 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 Applied, thanks. -Alexey