From: Tom Rini Date: Wed, 19 Jun 2024 21:27:57 +0000 (-0600) Subject: powerpc: Implement a default flush_dcache_all X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=34a0c164a5368099351fe63e86543ed0f6d394b7;p=u-boot.git powerpc: 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: Ilias Apalodimas Signed-off-by: Tom Rini --- diff --git a/arch/powerpc/lib/cache.c b/arch/powerpc/lib/cache.c index e480b26964..130318d745 100644 --- a/arch/powerpc/lib/cache.c +++ b/arch/powerpc/lib/cache.c @@ -43,3 +43,12 @@ void flush_cache(ulong start_addr, ulong size) /* flush prefetch queue */ asm volatile("isync" : : : "memory"); } + +/* + * Default implementation: + * do a range flush for the entire range + */ +void flush_dcache_all(void) +{ + flush_dcache_range(0, ~0); +}