aboutsummaryrefslogtreecommitdiff
path: root/services/spd
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2018-04-11 16:10:53 -0700
committerArve Hjønnevåg <arve@android.com>2020-02-12 19:07:03 +0000
commitf01428b1cc910c0828958e58f814280e9ec21fd0 (patch)
treec502e0ecb4946afe6112894975da35584c814ef8 /services/spd
parenteff737c1d973b859a2973fc5a4692620c9d90a06 (diff)
downloadtrusted-firmware-a-f01428b1cc910c0828958e58f814280e9ec21fd0.tar.gz
trusty: Allow getting trusty memsize from BL32_MEM_SIZE instead of TSP_SEC_MEM_SIZE
Some platforms define BL32_MEM_SIZE instead of TSP_SEC_MEM_SIZE, but the meaning is the same. Change-Id: I93d96dca442e653435cae6a165b1955efe2d2b75 Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'services/spd')
-rw-r--r--services/spd/trusty/trusty.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c
index d6c092cb7..092ffa8eb 100644
--- a/services/spd/trusty/trusty.c
+++ b/services/spd/trusty/trusty.c
@@ -390,6 +390,10 @@ static const spd_pm_ops_t trusty_pm = {
void plat_trusty_set_boot_args(aapcs64_params_t *args);
+#if !defined(TSP_SEC_MEM_SIZE) && defined(BL32_MEM_SIZE)
+#define TSP_SEC_MEM_SIZE BL32_MEM_SIZE
+#endif
+
#ifdef TSP_SEC_MEM_SIZE
#pragma weak plat_trusty_set_boot_args
void plat_trusty_set_boot_args(aapcs64_params_t *args)