boot: zephyr: cleanup NXP MPU configuration before boot
Cleanup the NXP MPU configuration before chain-loading the
application.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
diff --git a/boot/zephyr/include/arm_cleanup.h b/boot/zephyr/include/arm_cleanup.h
index 9f9112c..565477c 100644
--- a/boot/zephyr/include/arm_cleanup.h
+++ b/boot/zephyr/include/arm_cleanup.h
@@ -13,7 +13,7 @@
*/
void cleanup_arm_nvic(void);
-#if defined(CONFIG_CPU_HAS_ARM_MPU)
+#if defined(CONFIG_CPU_HAS_ARM_MPU) || defined(CONFIG_CPU_HAS_NXP_MPU)
/**
* Cleanup all ARM MPU region configuration
*/