arm: core: mpu: Add arm core MPU interface

This patch adds the arm core MPU interface, a common way to access the
pu functionalities by the arm zephyr kernel.

The interface can be divided in two parts:
- a core part that will be implemented by the arm_core_mpu driver and
  used directly by the kernel
- a driver part that will be implemented by the mpu drivers and used by
  the arm_core_mpu driver

Change-Id: I590bd284abc40d98b06fdf1efb5800903313aa00
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
Vincenzo Frascino 2017-03-29 11:14:40 +01:00 committed by Kumar Gala
commit acc9fb29a3
5 changed files with 125 additions and 0 deletions

View file

@ -6,10 +6,26 @@
# SPDX-License-Identifier: Apache-2.0
#
config ARM_CORE_MPU
bool "ARM Core MPU functionalities"
depends on CPU_HAS_MPU
select THREAD_STACK_INFO
default n
help
ARM Core MPU functionalities
config MPU_STACK_GUARD
bool "Thread Stack Guards"
depends on ARM_CORE_MPU
default n
help
Enable Thread Stack Guards via MPU
config ARM_MPU
bool "ARM MPU Support"
depends on CPU_HAS_MPU
depends on SOC_FAMILY_ARM || SOC_FAMILY_STM32
select ARM_CORE_MPU
default n
help
MCU has ARM MPU
@ -18,6 +34,7 @@ config NXP_MPU
bool "NXP MPU Support"
depends on CPU_HAS_MPU
depends on SOC_FAMILY_KINETIS
select ARM_CORE_MPU
default n
help
MCU has NXP MPU