diff options
-rw-r--r-- | arch/arm/Kconfig | 7 | ||||
-rw-r--r-- | arch/arm/lib/Makefile | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 5ff6809e94..fd6d2011af 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -74,8 +74,15 @@ config ARM_ASM_UNIFIED config THUMB2_KERNEL bool +config SYS_ARM_CACHE_CP15 + bool "CP15 based cache enabling support" + help + Select this if your processor suports enabling caches by using + CP15 registers. + config SYS_ARM_MMU bool "MMU-based Paged Memory Management Support" + select SYS_ARM_CACHE_CP15 help Select if you want MMU-based virtualised addressing space support by paged memory management. diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 77a3be4266..655727f431 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -61,11 +61,7 @@ obj-y += reset.o endif obj-y += cache.o -ifndef CONFIG_ARM64 -ifndef CONFIG_CPU_V7M -obj-y += cache-cp15.o -endif -endif +obj-$(CONFIG_SYS_ARM_CACHE_CP15) += cache-cp15.o obj-y += psci-dt.o |