soc: nordic: move mpu_regions.c to common folder and rename

Move mpu_region.c to common folder, to re-use with nRF92.
Rename it to nrf54hx_nrf92x_mpu_regions.c to indicate
which product series it applies to.

Signed-off-by: Emanuele Di Santo <emdi@nordicsemi.no>
This commit is contained in:
Emanuele Di Santo 2024-08-05 14:01:46 +02:00 committed by Anas Nashif
parent d4b1e1e302
commit 0a9ad40a85
3 changed files with 4 additions and 2 deletions

View File

@ -13,6 +13,10 @@ endif()
zephyr_library_sources_ifdef(CONFIG_POWEROFF poweroff.c)
if((CONFIG_SOC_SERIES_NRF54HX OR CONFIG_SOC_SERIES_NRF92X) AND CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS)
zephyr_library_sources(nrf54hx_nrf92x_mpu_regions.c)
endif()
zephyr_include_directories(.)
if(CONFIG_HAS_NORDIC_DMM)

View File

@ -5,8 +5,6 @@ if(CONFIG_ARM)
zephyr_library_sources(soc.c)
endif()
zephyr_library_sources_ifdef(CONFIG_CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS mpu_regions.c)
zephyr_include_directories(.)
# Ensure that image size aligns with 16 bytes so that MRAMC finalizes all writes