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 <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
29a1bbd24a
commit
3c4fb60399
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue