We move the configuration of the fixed MPU regions for ARM Cortex-M SoCs in a common place under soc/arm/common/cortex-m, instead of having this configuration present in each ARM SoC or SoC Series definition. The rationale behind this is that for all SoCs the fixed MPU regions configured at SoC definition are only used for enforcing default Flash and SRAM access policies, and currently, this is common to all ARM SoCs with MPU support. We also simplify the Flash and SRAM MPU region definition, aiming at using a single MPU region index to program each of them. We still support the possibility for ARM SoCs to opt-out and, instead, define their own custom fixed MPU regions at SoC definition. We do it using a Kconfig option, introduced explicitly for this purpose. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
62 lines
1.6 KiB
Text
62 lines
1.6 KiB
Text
# General options signifying CPU capabilities of ARM SoCs
|
|
|
|
# Copyright (c) 2018 Nordic Semiconductor ASA.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config CPU_HAS_ARM_MPU
|
|
bool
|
|
select CPU_HAS_MPU
|
|
help
|
|
This option is enabled when the CPU has a Memory Protection Unit (MPU)
|
|
in ARM flavor.
|
|
|
|
config CPU_HAS_NXP_MPU
|
|
bool
|
|
select CPU_HAS_MPU
|
|
help
|
|
This option is enabled when the CPU has a Memory Protection Unit (MPU)
|
|
in NXP flavor.
|
|
|
|
config CPU_HAS_CUSTOM_FIXED_SOC_MPU_REGIONS
|
|
bool "Custom fixed SoC MPU region definition"
|
|
help
|
|
If enabled, this option signifies that the SoC will
|
|
define and configure its own fixed MPU regions in the
|
|
SoC definition. These fixed MPU regions are currently
|
|
used to set Flash and SRAM default access policies and
|
|
they are programmed at boot time.
|
|
|
|
config CPU_HAS_ARM_SAU
|
|
bool
|
|
select CPU_HAS_TEE
|
|
help
|
|
MCU implements the ARM Security Attribution Unit (SAU).
|
|
|
|
config CPU_HAS_NRF_IDAU
|
|
bool
|
|
depends on SOC_SERIES_NRF91X || SOC_NRF5340_CPUAPP
|
|
select CPU_HAS_TEE
|
|
help
|
|
MCU implements the nRF (vendor-specific) Security Attribution Unit.
|
|
(IDAU: "Implementation-Defined Attribution Unit", in accordance with
|
|
ARM terminology).
|
|
|
|
config CPU_HAS_FPU_DOUBLE_PRECISION
|
|
bool
|
|
depends on CPU_CORTEX_M7
|
|
select CPU_HAS_FPU
|
|
help
|
|
When enabled, indicates that the SoC has a double
|
|
floating point precision unit.
|
|
|
|
config HAS_SWO
|
|
bool
|
|
help
|
|
When enabled, indicates that SoC has an SWO output
|
|
|
|
config SOC_PART_NUMBER
|
|
string
|
|
help
|
|
This string holds the full part number of the SoC. It is a hidden option
|
|
that you should not set directly. The part number selection choice defines
|
|
the default value for this string.
|