]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
MIPS: allow override of flush_dcache_range()
authorAlex Nemirovsky <Alex.Nemirovsky@cortina-access.com>
Mon, 23 Dec 2019 20:19:20 +0000 (20:19 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 9 Apr 2020 16:55:59 +0000 (18:55 +0200)
Useful in custom HW designs which have a need to flush dcache
range in a completely non standard way.

Signed-off-by: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
arch/mips/lib/cache.c

index 502956d050c845f06091dec62cde51c311274a6d..1a8c87d09437258f7f2ce649646cdfe8be213694 100644 (file)
@@ -141,7 +141,7 @@ ops_done:
        instruction_hazard_barrier();
 }
 
-void flush_dcache_range(ulong start_addr, ulong stop)
+void __weak flush_dcache_range(ulong start_addr, ulong stop)
 {
        unsigned long lsize = dcache_line_size();
        unsigned long slsize = scache_line_size();