[PATCH v2 3/4] ARM: stm32: Select ARM_MPU for cortex-M7 machines

Alexandre Torgue alexandre.torgue at st.com
Wed Feb 28 05:10:57 PST 2018


STM32 MCUs embed a Memory Protection Unit. Enabling ARM_MPU flag will
allow the Kernel to configure the MPU according to the devicetree.

Signed-off-by: Alexandre Torgue <alexandre.torgue at st.com>

diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index 713c068..c2ad8e9 100644
--- a/arch/arm/mach-stm32/Kconfig
+++ b/arch/arm/mach-stm32/Kconfig
@@ -29,15 +29,18 @@ config MACH_STM32F469
 config MACH_STM32F746
 	bool "STMicroelectronics STM32F746"
 	select ARM_AMBA
+	select ARM_MPU
 	default y
 
 config MACH_STM32F769
 	bool "STMicroelectronics STM32F769"
 	select ARM_AMBA
+	select ARM_MPU
 	default y
 
 config MACH_STM32H743
 	bool "STMicroelectronics STM32H743"
+	select ARM_MPU
 	default y
 
 endif # ARMv7-M
-- 
2.7.4




More information about the linux-arm-kernel mailing list