From 3c4fb60399deb68a61f33ac02d06ffc5f5164757 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Tue, 12 Nov 2019 15:28:12 +0100 Subject: [PATCH] boards: arm: nrf5340_dk: fix nRF Cache and NVMC macro usage We need to fix the formato of the macros for nRF CACHE and NVMC peripherals in soc.c, so the _S and _NS suffixes are skipped. Signed-off-by: Ioannis Glaropoulos --- soc/arm/nordic_nrf/nrf53/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/arm/nordic_nrf/nrf53/soc.c b/soc/arm/nordic_nrf/nrf53/soc.c index 173fe798f61..353f1681f5f 100644 --- a/soc/arm/nordic_nrf/nrf53/soc.c +++ b/soc/arm/nordic_nrf/nrf53/soc.c @@ -47,10 +47,10 @@ static int nordicsemi_nrf53_init(struct device *arg) #ifdef CONFIG_NRF_ENABLE_CACHE #ifdef CONFIG_SOC_NRF5340_CPUAPP /* Enable the instruction & data cache */ - NRF_CACHE_S->ENABLE = CACHE_ENABLE_ENABLE_Msk; + NRF_CACHE->ENABLE = CACHE_ENABLE_ENABLE_Msk; #endif /* CONFIG_SOC_NRF5340_CPUAPP */ #ifdef CONFIG_SOC_NRF5340_CPUNET - NRF_NVMC_NS->ICACHECNF |= NVMC_ICACHECNF_CACHEEN_Enabled; + NRF_NVMC->ICACHECNF |= NVMC_ICACHECNF_CACHEEN_Enabled; #endif /* CONFIG_SOC_NRF5340_CPUNET */ #endif