From 92d4e699523081e6a015bcf4142c1a2a097927f0 Mon Sep 17 00:00:00 2001 From: Daniel DeGrasse Date: Wed, 10 Jan 2024 14:33:44 +0000 Subject: [PATCH] soc: arm: nxp_imx: enable CONFIG_CACHE_MANAGEMENT for RT1xxx M7 cores Since d992683db5 (soc: arm: replace redundant config option for caches for nxp_imx), RT1xxx series will not have cache enabled at boot unless CONFIG_CACHE_MANAGEMENT=y. Since this will improve performance, enable CONFIG_CACHE_MANAGEMENT by default. Signed-off-by: Daniel DeGrasse --- soc/arm/nxp_imx/rt/Kconfig.defconfig.series | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/soc/arm/nxp_imx/rt/Kconfig.defconfig.series b/soc/arm/nxp_imx/rt/Kconfig.defconfig.series index f8467559d374..61f537a402d2 100644 --- a/soc/arm/nxp_imx/rt/Kconfig.defconfig.series +++ b/soc/arm/nxp_imx/rt/Kconfig.defconfig.series @@ -136,6 +136,11 @@ config TEST_EXTRA_STACK_SIZE default 1024 endif # MBEDTLS +# Enable cache management features when using M7 core, since these parts +# have L1 instruction and data caches that should be enabled at boot +config CACHE_MANAGEMENT + default y if CPU_CORTEX_M7 + source "soc/arm/nxp_imx/rt/Kconfig.defconfig.mimxrt*" endif # SOC_SERIES_IMX_RT