summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7m/cache.c
diff options
context:
space:
mode:
authorGiulio Benetti <giulio.benetti@benettiengineering.com>2020-01-10 15:46:52 +0100
committerStefano Babic <sbabic@denx.de>2020-01-14 22:53:59 +0100
commite403316634de6b09b2487c310ddc36d0c1ebfdc2 (patch)
tree2016733324d7738fbb65d5c78ed4477f64b7774d /arch/arm/cpu/armv7m/cache.c
parent1054344fa42b1f6568d35eae7ceecc859ad42258 (diff)
downloadu-boot-e403316634de6b09b2487c310ddc36d0c1ebfdc2.tar.gz
u-boot-e403316634de6b09b2487c310ddc36d0c1ebfdc2.tar.xz
u-boot-e403316634de6b09b2487c310ddc36d0c1ebfdc2.zip
armv7m: cache: add mmu_set_region_dcache_behaviour() stub for compatibility
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>
Diffstat (limited to 'arch/arm/cpu/armv7m/cache.c')
-rw-r--r--arch/arm/cpu/armv7m/cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c
index f4ba3ad50e..7353698557 100644
--- a/arch/arm/cpu/armv7m/cache.c
+++ b/arch/arm/cpu/armv7m/cache.c
@@ -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)