Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soc: nxp: imxrt: user defined mpu regions #75604

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion soc/nxp/imxrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ if(CONFIG_SOC_SERIES_IMXRT10XX OR CONFIG_SOC_SERIES_IMXRT11XX)
if(CONFIG_EXTERNAL_MEM_CONFIG_DATA)
set(boot_hdr_xmcd_data_section ".boot_hdr.xmcd_data")
endif()
zephyr_sources(mpu_regions.c)
if(NOT CONFIG_NXP_IMX_RT_USER_MPU_REGIONS)
zephyr_sources(mpu_regions.c)
endif()
zephyr_linker_section_configure(
SECTION .rom_start
INPUT ".boot_hdr.conf"
Expand Down
7 changes: 7 additions & 0 deletions soc/nxp/imxrt/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -208,4 +208,11 @@ config INIT_SYS_PLL

endif # SOC_SERIES_IMXRT10XX || SOC_SERIES_IMXRT11XX

config NXP_IMX_RT_USER_MPU_REGIONS
bool "User mpu regions"
help
When this option is enabled user should define custom mpu regions:
const struct arm_mpu_config mpu_config = {...};
See example in zephyr/soc/nxp/imxrt/mpu_regions.c.

endif # SOC_FAMILY_NXP_IMXRT
Loading