1# Memory Protection Unit (MPU) configuration options 2 3#Copyright (c) 2017 Linaro Limited. 4#Copyright (c) 2021 Arm Limited (or its affiliates). All rights reserved. 5 6# SPDX-License-Identifier: Apache-2.0 7 8if CPU_HAS_MPU 9 10 11config ARM_MPU_REGION_MIN_ALIGN_AND_SIZE 12 int 13 default 64 if ARM_MPU 14 default 4 15 help 16 Minimum size (and alignment) of an ARM MPU region. Use this 17 symbol to guarantee minimum size and alignment of MPU regions. 18 A minimum 4-byte alignment is enforced in ARM builds without 19 support for Memory Protection. 20 21if ARM_MPU 22 23config MPU_ALLOW_FLASH_WRITE 24 bool "Add MPU access to write to flash" 25 help 26 Enable this to allow MPU RWX access to flash memory 27 28endif # ARM_MPU 29 30endif # CPU_HAS_MPU 31