[2/3] ARM: configs: stm32: Enable ARM_MPU

Message ID 1513101746-18030-3-git-send-email-alexandre.torgue@st.com
State New
Headers show
Series
  • Enable DMA on STM32 MCU based on cortex-M7
Related show

Commit Message

Alexandre TORGUE Dec. 12, 2017, 6:02 p.m.
STM32 MCUs embed a Memory Protection Unit. Enabling this setting will
allow the Kernel to configure the MPU according to devicetree.

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


-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Vladimir Murzin Dec. 13, 2017, 10:11 a.m. | #1
On 12/12/17 18:02, Alexandre Torgue wrote:
> STM32 MCUs embed a Memory Protection Unit. Enabling this setting will

> allow the Kernel to configure the MPU according to devicetree.


Would it be better to "select ARM_MPU" for machines with Cortex-M7?

Vladimir

> 

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

> 

> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig

> index bb358ff..e642bdf9 100644

> --- a/arch/arm/configs/stm32_defconfig

> +++ b/arch/arm/configs/stm32_defconfig

> @@ -24,6 +24,7 @@ CONFIG_SET_MEM_PARAM=y

>  CONFIG_DRAM_BASE=0x90000000

>  CONFIG_FLASH_MEM_BASE=0x08000000

>  CONFIG_FLASH_SIZE=0x00200000

> +CONFIG_ARM_MPU=y

>  CONFIG_PREEMPT=y

>  # CONFIG_ATAGS is not set

>  CONFIG_ZBOOT_ROM_TEXT=0x0

> 


--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig
index bb358ff..e642bdf9 100644
--- a/arch/arm/configs/stm32_defconfig
+++ b/arch/arm/configs/stm32_defconfig
@@ -24,6 +24,7 @@  CONFIG_SET_MEM_PARAM=y
 CONFIG_DRAM_BASE=0x90000000
 CONFIG_FLASH_MEM_BASE=0x08000000
 CONFIG_FLASH_SIZE=0x00200000
+CONFIG_ARM_MPU=y
 CONFIG_PREEMPT=y
 # CONFIG_ATAGS is not set
 CONFIG_ZBOOT_ROM_TEXT=0x0