aboutsummaryrefslogtreecommitdiffstats
path: root/plat
diff options
context:
space:
mode:
authorQixiang Xu <qixiang.xu@arm.com>2017-10-13 09:04:12 +0800
committerQixiang Xu <qixiang.xu@arm.com>2017-10-25 09:27:15 +0800
commit7ca267bd8aaa8ea6a2a01d953bbcd4fc672ffe51 (patch)
treeb78e660ae8e0abd00bde912d69f8e393a5333d9d /plat
parent3b39efa49d9949c80b6e76b99829f84619b46110 (diff)
downloadplatform_external_arm-trusted-firmware-7ca267bd8aaa8ea6a2a01d953bbcd4fc672ffe51.tar.gz
platform_external_arm-trusted-firmware-7ca267bd8aaa8ea6a2a01d953bbcd4fc672ffe51.tar.bz2
platform_external_arm-trusted-firmware-7ca267bd8aaa8ea6a2a01d953bbcd4fc672ffe51.zip
plat/arm: change the default option of ARM_TSP_RAM_LOCATION
On Arm standard platforms, it runs out of SRAM space when TBB is enabled, so the TSP default location is changed to dram when TBB is enabled. Change-Id: I516687013ad436ef454d2055d4e6fce06e467044 Signed-off-by: Qixiang Xu <qixiang.xu@arm.com>
Diffstat (limited to 'plat')
-rw-r--r--plat/arm/common/arm_common.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/plat/arm/common/arm_common.mk b/plat/arm/common/arm_common.mk
index 82f02b176..e1484d7ed 100644
--- a/plat/arm/common/arm_common.mk
+++ b/plat/arm/common/arm_common.mk
@@ -9,7 +9,12 @@ ifeq (${ARCH}, aarch64)
# DRAM (if available) or the TZC secured area of DRAM.
# Trusted SRAM is the default.
- ARM_TSP_RAM_LOCATION := tsram
+ ifneq (${TRUSTED_BOARD_BOOT},0)
+ ARM_TSP_RAM_LOCATION ?= dram
+ else
+ ARM_TSP_RAM_LOCATION ?= tsram
+ endif
+
ifeq (${ARM_TSP_RAM_LOCATION}, tsram)
ARM_TSP_RAM_LOCATION_ID = ARM_TRUSTED_SRAM_ID
else ifeq (${ARM_TSP_RAM_LOCATION}, tdram)