]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Fri, 10 Jan 2020 14:46:52 +0000 (15:46 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 14 Jan 2020 21:53:59 +0000 (22:53 +0100)
Since some driver requires this function add it as an empty stub
when DCACHE is OFF.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
arch/arm/cpu/armv7m/cache.c

index f4ba3ad50e94f98bdd7fe9eccfce171da176d7f8..735369855795863368ed0e6de7c016f940c12758 100644 (file)
@@ -291,6 +291,12 @@ void flush_dcache_all(void)
 void invalidate_dcache_all(void)
 {
 }
+
+void mmu_set_region_dcache_behaviour(phys_addr_t start, size_t size,
+                                    enum dcache_option option)
+{
+}
+
 #endif
 
 #if !CONFIG_IS_ENABLED(SYS_ICACHE_OFF)