arm-trusted-firmware/drivers
Jeenu Viswambharan c639e8ebee GIC: Allow specifying interrupt properties
The GIC driver initialization currently allows an array of interrupts to
be configured as secure. Future use cases would require more interrupt
configuration other than just security, such as priority.

This patch introduces a new interrupt property array as part of both
GICv2 and GICv3 driver data. The platform can populate the array with
interrupt numbers and respective properties. The corresponding driver
initialization iterates through the array, and applies interrupt
configuration as required.

This capability, and the current way of supplying array (or arrays, in
case of GICv3) of secure interrupts, are however mutually exclusive.
Henceforth, the platform should supply either:

  - A list of interrupts to be mapped as secure (the current way).
    Platforms that do this will continue working as they were. With this
    patch, this scheme is deprecated.

  - A list of interrupt properties (properties include interrupt group).
    Individual interrupt properties are specified via. descriptors of
    type 'interrupt_prop_desc_t', which can be populated with the macro
    INTR_PROP_DESC().

A run time assert checks that the platform doesn't specify both.

Henceforth the old scheme of providing list of secure interrupts is
deprecated. When built with ERROR_DEPRECATED=1, GIC drivers will require
that the interrupt properties are supplied instead of an array of secure
interrupts.

Add a section to firmware design about configuring secure interrupts.

Fixes ARM-software/tf-issues#262

Change-Id: I8eec29e72eb69dbb6bce77879febf32c95376942
Signed-off-by: Jeenu Viswambharan <jeenu.viswambharan@arm.com>
2017-10-16 16:50:02 +01:00
..
arm GIC: Allow specifying interrupt properties 2017-10-16 16:50:02 +01:00
auth Dynamic selection of ECDSA or RSA 2017-09-22 17:42:40 +08:00
cadence/uart Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
console Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
delay_timer delay_timer: correct sparse issues and warnings 2017-06-23 09:38:08 +02:00
emmc Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
gpio Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
io io_dummy: correct sparse warnings 2017-06-23 09:38:15 +02:00
partition Fix order of #includes 2017-07-12 14:45:31 +01:00
synopsys drivers: add designware ufs driver 2017-05-31 11:00:57 +08:00
ti/uart Use SPDX license identifiers 2017-05-03 09:39:28 +01:00
ufs ufs: fix the and operator 2017-06-13 14:33:49 +08:00