arm-trusted-firmware/plat/arm/board/juno
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 plat/arm: Fix header dependencies 2019-01-15 14:19:50 +00:00
aarch64 plat/arm: Fix header dependencies 2019-01-15 14:19:50 +00:00
fdts fconf: Add dynamic config DTBs info as property 2020-02-07 13:51:32 +00:00
include juno/sgm: Align SCP_BL2 to page boundary 2020-04-17 14:48:15 +02:00
sp_min plat/arm: remove weak implemention of 'plat_arm_psci_override_pm_ops' function 2018-11-29 15:05:59 +05:30
tsp juno: Add security sources for tsp-juno 2019-04-30 14:42:49 +01:00
jmptbl.i arm: fconf: Fix GICv3 dynamic configuration 2020-04-30 10:09:18 +01:00
juno_bl1_setup.c MISRA fix: Use boolean essential type 2020-02-07 13:51:32 +00:00
juno_bl2_setup.c plat/arm: Sanitise includes 2019-01-25 16:04:10 +00:00
juno_common.c Merge changes from topic "lm/juno_dyn_cfg" into integration 2019-08-16 10:24:53 +00:00
juno_decl.h Standardise header guards across codebase 2018-11-08 10:20:19 +00:00
juno_def.h Unify type of "cpu_idx" across PSCI module. 2020-01-10 17:11:51 +00:00
juno_err.c Coverity: remove unnecessary header file includes 2020-02-04 10:23:51 -06:00
juno_pm.c plat/arm: scmi: Move to drivers/ folder 2019-01-25 16:04:11 +00:00
juno_security.c plat/arm/tzc: add support to configure multiple tzc400 2020-02-19 13:26:53 +05:30
juno_stack_protector.c plat/arm: Fix header dependencies 2019-01-15 14:19:50 +00:00
juno_topology.c drivers/arm/scmi: allow use of multiple SCMI channels 2020-02-07 19:24:17 +05:30
juno_trng.c plat/arm: Fix header dependencies 2019-01-15 14:19:50 +00:00
juno_trusted_boot.c Adds option to read ROTPK from registers for FVP 2020-02-06 16:58:53 +00:00
juno_tzmp1_def.h plat/arm: Fix header dependencies 2019-01-15 14:19:50 +00:00
platform.mk plat: remove redundant =1 from -D option 2020-04-02 14:14:10 +09:00