summaryrefslogtreecommitdiff
path: root/arch/microblaze/include/asm/cache.h
diff options
context:
space:
mode:
authorOvidiu Panait <ovpanait@gmail.com>2022-05-31 21:14:30 +0300
committerMichal Simek <michal.simek@amd.com>2022-06-24 14:16:00 +0200
commitb195134984ec714f92632704e4725ced170ab1da (patch)
tree72552154a552750b5c9d81ffb6645005161af08a /arch/microblaze/include/asm/cache.h
parent84488fc69348367ee693ea4ab6affe3cbcae97a0 (diff)
microblaze: cache: introduce flush_cache_all()
All flush_cache() calls in microblaze code are supposed to flush the entire instruction and data caches, so introduce flush_cache_all() helper to handle this. Also, provide implementations for flush_dcache_all() and invalidate_icache_all() so that icache and dcache u-boot commands can work. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> Link: https://lore.kernel.org/r/20220531181435.3473549-9-ovpanait@gmail.com Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/microblaze/include/asm/cache.h')
-rw-r--r--arch/microblaze/include/asm/cache.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/cache.h b/arch/microblaze/include/asm/cache.h
index baee01a0e28..c39b66dd7da 100644
--- a/arch/microblaze/include/asm/cache.h
+++ b/arch/microblaze/include/asm/cache.h
@@ -18,4 +18,9 @@
#define ARCH_DMA_MINALIGN 16
#endif
+/**
+ * flush_cache_all - flush the entire instruction/data caches
+ */
+void flush_cache_all(void);
+
#endif /* __MICROBLAZE_CACHE_H__ */