aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorArve Hjønnevåg <arve@android.com>2018-04-11 16:09:35 -0700
committerArve Hjønnevåg <arve@android.com>2020-02-12 19:07:10 +0000
commit471e8fa7d17ce2140cbcec7f4f61d2f1749b447f (patch)
tree62c5862aa26144e4813ca7ae1cb9c041f41ca2d0 /services
parentf01428b1cc910c0828958e58f814280e9ec21fd0 (diff)
downloadtrusted-firmware-a-471e8fa7d17ce2140cbcec7f4f61d2f1749b447f.tar.gz
trusty: Allow gic base to be specified with GICD_BASE
Some platforms define GICD_BASE instead of PLAT_ARM_GICD_BASE but the meaning is the same. Change-Id: I1bb04bb49fdab055b365b1d70a4d48d2058e49df Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'services')
-rw-r--r--services/spd/trusty/generic-arm64-smcall.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/spd/trusty/generic-arm64-smcall.c b/services/spd/trusty/generic-arm64-smcall.c
index dfc3e71b7..3ffc13dcf 100644
--- a/services/spd/trusty/generic-arm64-smcall.c
+++ b/services/spd/trusty/generic-arm64-smcall.c
@@ -12,6 +12,15 @@
#include "generic-arm64-smcall.h"
+#ifndef PLAT_ARM_GICD_BASE
+#ifdef GICD_BASE
+#define PLAT_ARM_GICD_BASE GICD_BASE
+#define PLAT_ARM_GICC_BASE GICC_BASE
+#else
+#error PLAT_ARM_GICD_BASE or GICD_BASE must be defined
+#endif
+#endif
+
int trusty_disable_serial_debug;
struct dputc_state {