Skip to content

Commit

Permalink
arch: stm32: Remove STM32_ARM_MPU_ENABLE option.
Browse files Browse the repository at this point in the history
The STM32_ARM_MPU_ENABLE option is just selecting ARM_MPU option,
which could be also controlled through menuconfig.

This commit removes the STM32_ARM_MPU_ENABLE option and replaces
its usage by ARM_MPU option.

Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
  • Loading branch information
pizi-nordic authored and carlescufi committed Sep 20, 2018
1 parent 461a9de commit eb1ee5f
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 25 deletions.
2 changes: 1 addition & 1 deletion boards/arm/96b_carbon/96b_carbon_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/disco_l475_iot1/disco_l475_iot1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CONFIG_UART_CONSOLE=y
CONFIG_PWM=y

# enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

# enable I2C
CONFIG_I2C=y
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_f401re/nucleo_f401re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=84000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_f411re/nucleo_f411re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_f412zg/nucleo_f412zg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_f413zh/nucleo_f413zh_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_f429zi/nucleo_f429zi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=180000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_f446re/nucleo_f446re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=96000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/nucleo_l476rg/nucleo_l476rg_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ CONFIG_UART_CONSOLE=y
CONFIG_PWM=y

#enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y
2 changes: 1 addition & 1 deletion boards/arm/olimex_stm32_e407/olimex_stm32_e407_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/olimex_stm32_h407/olimex_stm32_h407_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/olimex_stm32_p405/olimex_stm32_p405_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/stm32f411e_disco/stm32f411e_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=100000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

# Serial Drivers
CONFIG_SERIAL=y
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/stm32f412g_disco/stm32f412g_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=100000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/stm32f429i_disc1/stm32f429i_disc1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/stm32f469i_disco/stm32f469i_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=180000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/stm32f4_disco/stm32f4_disco_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=168000000
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000

# Enable MPU
CONFIG_STM32_ARM_MPU_ENABLE=y
CONFIG_ARM_MPU=y

CONFIG_SERIAL=y

Expand Down
7 changes: 0 additions & 7 deletions soc/arm/st_stm32/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ config SOC_FAMILY
string
default "st_stm32"

config STM32_ARM_MPU_ENABLE
bool "Enable MPU on STM32"
depends on CPU_HAS_MPU
select ARM_MPU
help
Enable MPU support on STM32 SoCs

source "soc/arm/st_stm32/*/Kconfig.soc"

endif # SOC_FAMILY_STM32
2 changes: 1 addition & 1 deletion soc/arm/st_stm32/common/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
zephyr_sources_ifdef(CONFIG_STM32_ARM_MPU_ENABLE arm_mpu_regions.c)
zephyr_sources_ifdef(CONFIG_ARM_MPU arm_mpu_regions.c)
zephyr_sources(stm32cube_hal.c)

0 comments on commit eb1ee5f

Please sign in to comment.