Skip to contentSkip to conversation

arch: Add SYS_HAVE_DCACHE_MAINTENANCE and SYS_HAVE_ICACHE_MAINTENANCE

PATCH New Emmanuel Vadot 1 participant 1 message Apr 30, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 arch: Add SYS_HAVE_DCACHE_MAINTENANCE and SYS_HAVE_ICACHE_MAINTENANCE

Add some Kconfig option to notify that the arch implementation have some cache maintenance function available.

---
 arch/Kconfig | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/Kconfig +12 -0
index e599e7a39c..a9fd13aa25 100644
@@ -191,6 +191,18 @@ config SYS_CONFIG_NAME
 	  The header file include/configs/<CONFIG_SYS_CONFIG_NAME>.h
 	  should be included from include/config.h.
 
+config SYS_HAVE_DCACHE_MAINTENANCE
+	bool
+	help
+	  This option should be enabled if the arch have data cache
+	  maintenance routines.
+
+config SYS_HAVE_ICACHE_MAINTENANCE
+	bool
+	help
+	  This option should be enabled if the arch have intruction cache
+	  maintenance routines.
+
 source "arch/arc/Kconfig"
 source "arch/arm/Kconfig"
 source "arch/m68k/Kconfig"
Signature · 1 line
2.16.3