From: Tom Rini Date: Wed, 19 Jun 2024 21:27:53 +0000 (-0600) Subject: m68k: Implement a default flush_dcache_all X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-logo.png?a=commitdiff_plain;h=e32d513304043ddc31bfcf586b799757e47e54ad;p=u-boot.git m68k: Implement a default flush_dcache_all Implement a weak default version of flush_dcache_all which is based on the ARM default, which is to flush the entire range via flush_dcache_range(...). Acked-by: Angelo Dureghello Acked-by: Ilias Apalodimas Signed-off-by: Tom Rini --- diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c index de04124404..dab834c1cb 100644 --- a/arch/m68k/lib/cache.c +++ b/arch/m68k/lib/cache.c @@ -134,6 +134,15 @@ void dcache_invalid(void) #endif } +/* + * Default implementation: + * do a range flush for the entire range + */ +__weak void flush_dcache_all(void) +{ + flush_dcache_range(0, ~0); +} + __weak void invalidate_dcache_range(unsigned long start, unsigned long stop) { /* An empty stub, real implementation should be in platform code */