Home
last modified time | relevance | path

Searched hist:"79 d89e3da078fa0e169a47bcc360c5e3308cdf42" (Results 1 – 2 of 2) sorted by relevance

/rk3399_ARM-atf/drivers/arm/gic/v3/
H A Dgicv3_helpers.c79d89e3da078fa0e169a47bcc360c5e3308cdf42 Mon Sep 07 13:53:58 UTC 2020 Andre Przywara <andre.przywara@arm.com> drivers: arm: gicv3: Allow detecting number of cores

A GICv3 interrupt controller will be instantiated for a certain number
of cores. This will result in the respective number of GICR frames. The
last frame will have the "Last" bit set in its GICR_TYPER register.

For platforms with a topology unknown at build time (the Arm FPGAs, for
instance), we need to learn the number of used cores at runtime, to size
the GICR region in the devicetree accordingly.

Add a generic function that iterates over all GICR frames until it
encounters one with the "Last" bit set. It returns the number of cores
the GICv3 has been configured for.

Change-Id: I79f033c50dfc1c275aba7122725868811abcc4f8
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
/rk3399_ARM-atf/include/drivers/arm/
H A Dgicv3.h79d89e3da078fa0e169a47bcc360c5e3308cdf42 Mon Sep 07 13:53:58 UTC 2020 Andre Przywara <andre.przywara@arm.com> drivers: arm: gicv3: Allow detecting number of cores

A GICv3 interrupt controller will be instantiated for a certain number
of cores. This will result in the respective number of GICR frames. The
last frame will have the "Last" bit set in its GICR_TYPER register.

For platforms with a topology unknown at build time (the Arm FPGAs, for
instance), we need to learn the number of used cores at runtime, to size
the GICR region in the devicetree accordingly.

Add a generic function that iterates over all GICR frames until it
encounters one with the "Last" bit set. It returns the number of cores
the GICv3 has been configured for.

Change-Id: I79f033c50dfc1c275aba7122725868811abcc4f8
Signed-off-by: Andre Przywara <andre.przywara@arm.com>