]> git.baikalelectronics.ru Git - arm-tf.git/commit
arm: fconf: Fix GICv3 dynamic configuration
authorAndre Przywara <andre.przywara@arm.com>
Thu, 26 Mar 2020 11:57:43 +0000 (11:57 +0000)
committerAndre Przywara <andre.przywara@arm.com>
Thu, 30 Apr 2020 09:09:18 +0000 (10:09 +0100)
commit364ad245a24efce0732245f050a80b9b702fc7b2
treef6648f0f7778d1d9e6c27997e94e56128ee2f28c
parentbe858cffa91fbcd5b8657200fbec1667c65bb1b7
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>
common/fdt_wrappers.c
include/common/fdt_wrappers.h
plat/arm/board/fvp/fconf/fconf_hw_config_getter.c
plat/arm/board/fvp/include/fconf_hw_config_getter.h
plat/arm/board/fvp/jmptbl.i
plat/arm/board/juno/jmptbl.i