aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEtienne Carriere <etienne.carriere@linaro.org>2017-11-05 22:57:38 +0100
committerEtienne Carriere <etienne.carriere@linaro.org>2017-11-08 14:42:06 +0100
commit64deed19e4f78abd7f68393096dacb58f8be1fa3 (patch)
tree5e36e92a013f9760b7a4516bdf2601a769aaa808 /include
parent634e4d2be6a15231cb132d4d15770c321d4d84f3 (diff)
downloadplatform_external_arm-trusted-firmware-64deed19e4f78abd7f68393096dacb58f8be1fa3.tar.gz
platform_external_arm-trusted-firmware-64deed19e4f78abd7f68393096dacb58f8be1fa3.tar.bz2
platform_external_arm-trusted-firmware-64deed19e4f78abd7f68393096dacb58f8be1fa3.zip
ARMv7: GICv2 driver can manage GICv1 with security extension
Some SoCs integrate a GIC in version 1 that is currently not supported by the trusted firmware. This change hijacks GICv2 driver to handle the GICv1 as GICv1 is compatible enough with GICv2 as far as the platform does not attempt to play with virtualization support or some GICv2 specific power features. Note that current trusted firmware does not use these GICv2 features that are not available in GICv1 Security Extension. Change-Id: Ic2cb3055f1319a83455571d6d918661da583f179 Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/drivers/arm/gic_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drivers/arm/gic_common.h b/include/drivers/arm/gic_common.h
index 9e126a854..67d4a28ba 100644
--- a/include/drivers/arm/gic_common.h
+++ b/include/drivers/arm/gic_common.h
@@ -72,6 +72,8 @@
#define ARCH_REV_GICV3 0x3
/* GICv2 revision as reported by the PIDR2 register */
#define ARCH_REV_GICV2 0x2
+/* GICv1 revision as reported by the PIDR2 register */
+#define ARCH_REV_GICV1 0x1
#define IGROUPR_SHIFT 5
#define ISENABLER_SHIFT 5