imxrt: 1170 MPU config ensure no lockups can occur

This commit is contained in:
Peter van der Perk 2024-05-17 11:02:13 +02:00 committed by Xiang Xiao
parent 3762bda5e2
commit 015e7cd607

View File

@ -51,6 +51,7 @@
MPU_RASR_XN; /* Execute-never to prevent instruction fetch */
putreg32(regval, MPU_RASR);
#ifdef CONFIG_IMXRT_SEMC
mpu_configure_region(IMXRT_SEMC0_BASE, 512 * 1024 * 1024,
/* Instruction access Enabled */
@ -62,6 +63,7 @@
/* Not Shareable */
/* No Subregion disable */
);
#endif
mpu_configure_region(IMXRT_FLEXSPI2_CIPHER_BASE, 512 * 1024 * 1024,
@ -91,7 +93,7 @@
/* Instruction access Enabled */
MPU_RASR_AP_RWRW | /* P:RW U:RW */
MPU_RASR_AP_RORO | /* P:R0 U:R0 */
MPU_RASR_TEX_NOR /* Normal */
/* Not Cacheable */
/* Not Bufferable */