arm-trusted-firmware/common
Andre Przywara 364ad245a2 arm: fconf: Fix GICv3 dynamic configuration
At the moment the fconf_populate_gicv3_config() implementation is
somewhat incomplete: First it actually fails to store the retrieved
information (the local addr[] array is going nowhere), but also it makes
quite some assumptions about the device tree passed to it: it needs to
use two address-cells and two size-cells, and also requires all five
register regions to be specified, where actually only the first two
are mandatory according to the binding (and needed by our code).

Fix this by introducing a proper generic function to retrieve "reg"
property information from a DT node:
We retrieve the #address-cells and #size-cells properties from the
parent node, then use those to extract the right values from the "reg"
property. The function takes an index to select one region of a reg
property.

This is loosely based on the STM32 implementation using "reg-names",
which we will subsume in a follow-up patch.

Change-Id: Ia59bfdf80aea4e36876c7b6ed4d153e303f482e8
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
2020-04-30 10:09:18 +01:00
..
aarch32 ARMv7 may not support Virtualization Extensions 2017-11-08 14:38:33 +01:00
aarch64 Fix crash dump for lower EL 2020-03-06 14:17:35 +00:00
backtrace Fix crash dump for lower EL 2020-03-06 14:17:35 +00:00
bl_common.c fconf: Add TBBR disable_authentication property 2020-02-07 13:51:32 +00:00
desc_image_load.c Add support to pass the nt_fw_config DTB to OP-TEE. 2020-04-01 13:50:59 +01:00
fdt_fixup.c FDT helper functions: Fix MISRA issues 2020-01-22 07:52:18 +00:00
fdt_wrappers.c arm: fconf: Fix GICv3 dynamic configuration 2020-04-30 10:09:18 +01:00
image_decompress.c Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
runtime_svc.c Remove support for the SMC Calling Convention 2.0 2019-01-30 16:01:49 +00:00
tf_log.c Remove references to old project name from common files 2019-07-10 11:13:00 +01:00