Skip to content

Commit 47dc508

Browse files
harristomynordicjm
authored andcommitted
boot: zephyr: update NXP MPU define to new name
Zephyr 4.1 changes `CONFIG_CPU_HAS_NXP_MPU` to `CONFIG_CPU_HAS_NXP_SYSMPU`. This change reflects that. Signed-off-by: Harris Tomy <[email protected]>
1 parent 468e261 commit 47dc508

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

boot/zephyr/arm_cleanup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <zephyr/toolchain.h>
88

99
#include <cmsis_core.h>
10-
#if CONFIG_CPU_HAS_NXP_MPU
10+
#if CONFIG_CPU_HAS_NXP_SYSMPU
1111
#include <fsl_sysmpu.h>
1212
#endif
1313

@@ -38,7 +38,7 @@ __weak void z_arm_clear_arm_mpu_config(void)
3838
ARM_MPU_ClrRegion(i);
3939
}
4040
}
41-
#elif CONFIG_CPU_HAS_NXP_MPU
41+
#elif CONFIG_CPU_HAS_NXP_SYSMPU
4242
__weak void z_arm_clear_arm_mpu_config(void)
4343
{
4444
int i;

boot/zephyr/include/arm_cleanup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414
void cleanup_arm_nvic(void);
1515

16-
#if defined(CONFIG_CPU_HAS_ARM_MPU) || defined(CONFIG_CPU_HAS_NXP_MPU)
16+
#if defined(CONFIG_CPU_HAS_ARM_MPU) || defined(CONFIG_CPU_HAS_NXP_SYSMPU)
1717
/**
1818
* Cleanup all ARM MPU region configuration
1919
*/

boot/zephyr/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static void do_boot(struct boot_rsp *rsp)
192192
sys_cache_data_disable();
193193
#endif
194194

195-
#if CONFIG_CPU_HAS_ARM_MPU || CONFIG_CPU_HAS_NXP_MPU
195+
#if CONFIG_CPU_HAS_ARM_MPU || CONFIG_CPU_HAS_NXP_SYSMPU
196196
z_arm_clear_arm_mpu_config();
197197
#endif
198198

0 commit comments

Comments
 (0)