aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorManish V Badarkhe <Manish.Badarkhe@arm.com>2020-07-16 05:45:25 +0100
committerManish V Badarkhe <manish.badarkhe@arm.com>2020-07-23 02:11:22 +0000
commita07c101a4dfa530b64288b27ac38958b0490b5c4 (patch)
treef4ef5c379586b2d8d771142fc466b1351ed695ce /include
parentf441718936a6b72583d03eebf8057bbf29446989 (diff)
downloadplatform_external_arm-trusted-firmware-a07c101a4dfa530b64288b27ac38958b0490b5c4.tar.gz
platform_external_arm-trusted-firmware-a07c101a4dfa530b64288b27ac38958b0490b5c4.tar.bz2
platform_external_arm-trusted-firmware-a07c101a4dfa530b64288b27ac38958b0490b5c4.zip
plat/arm: Move fconf population after the enablement of MMU
In BL2, fw_config's population happened before the cache gets enabled. Hence to boost the performance, moved fw_config's population after cache gets enabled (i.e. after MMU gets enabled). Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com> Change-Id: I2e75cabd76b1cb7a660f6b72f409ab40d2877284
Diffstat (limited to 'include')
-rw-r--r--include/plat/arm/common/arm_def.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/plat/arm/common/arm_def.h b/include/plat/arm/common/arm_def.h
index 139145b6b..293e7ce6f 100644
--- a/include/plat/arm/common/arm_def.h
+++ b/include/plat/arm/common/arm_def.h
@@ -294,12 +294,19 @@
#define ARM_V2M_MAP_MEM_PROTECT MAP_REGION_FLAT(PLAT_ARM_MEM_PROT_ADDR, \
V2M_FLASH_BLOCK_SIZE, \
MT_DEVICE | MT_RW | MT_SECURE)
+/*
+ * Map the region for device tree configuration with read and write permissions
+ */
+#define ARM_MAP_BL_CONFIG_REGION MAP_REGION_FLAT(ARM_BL_RAM_BASE, \
+ (ARM_FW_CONFIGS_LIMIT \
+ - ARM_BL_RAM_BASE), \
+ MT_MEMORY | MT_RW | MT_SECURE)
/*
* The max number of regions like RO(code), coherent and data required by
* different BL stages which need to be mapped in the MMU.
*/
-#define ARM_BL_REGIONS 5
+#define ARM_BL_REGIONS 6
#define MAX_MMAP_REGIONS (PLAT_ARM_MMAP_ENTRIES + \
ARM_BL_REGIONS)