GIC: Add APIs to set interrupt type and query support
The back end GIC driver converts and assigns the interrupt type to
suitable group.

For GICv2, a build option GICV2_G0_FOR_EL3 is introduced, which
determines to which type Group 0 interrupts maps to.

 - When the build option is set 0 (the default), Group 0 interrupts are
   meant for Secure EL1. This is presently the case.

 - Otherwise, Group 0 interrupts are meant for EL3. This means the SPD
   will have to synchronously hand over the interrupt to Secure EL1.

The query API allows the platform to query whether the platform supports
interrupts of a given type.

API documentation updated.

Change-Id: I60fdb4053ffe0bd006b3b20914914ebd311fc858
Co-authored-by: Yousuf A <yousuf.sait@arm.com>
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
1 parent f3a8660 commit 74dce7fa6e42cab3aa54a9543e4a546c1450b2ae
@Jeenu Viswambharan Jeenu Viswambharan authored on 22 Sep 2017
Showing 11 changed files
View
Makefile
View
docs/platform-interrupt-controller-API.rst
View
docs/user-guide.rst
View
drivers/arm/gic/v2/gicv2_main.c
View
drivers/arm/gic/v3/gicv3_main.c
View
include/drivers/arm/gicv2.h
View
include/drivers/arm/gicv3.h
View
include/plat/common/platform.h
View
make_helpers/defaults.mk
View
plat/common/plat_gicv2.c
View
plat/common/plat_gicv3.c