]> git.proxmox.com Git - mirror_edk2.git/commit
DynamicTablesPkg: FdtHwInfoParser: Add GICR parser
authorPierre Gondois <Pierre.Gondois@arm.com>
Thu, 9 Dec 2021 09:32:04 +0000 (10:32 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 14 Dec 2021 16:07:00 +0000 (16:07 +0000)
commit7b6c8b30a5377d7c561a867295ce2ca500ae13aa
tree060215b9d2aea0229591d8ff982cf305898eb2e9
parentd250d408cf778cfd913d76ada8dfc9f517cb5bbf
DynamicTablesPkg: FdtHwInfoParser: Add GICR parser

The GIC Redistributor (GICR) structure is part of the Multiple
APIC Description Table (MADT) that enables the discovery of
GIC Redistributor base addresses by providing the Physical Base
Address of a page range containing the GIC Redistributors. More
than one GICR Structure may be presented in the MADT. The GICR
structures should only be used when describing GIC version 3 or
higher.

The GIC Redistributor information is described in the platform
Device Tree, the bindings for which can be found at:
 - linux/Documentation/devicetree/bindings/interrupt-controller/
   arm,gic-v3.yaml

The FdtHwInfoParser implements a GIC Redistributor Parser that
parses the platform Device Tree to create CM_ARM_GIC_REDIST_INFO
objects which are encapsulated in a Configuration Manager
descriptor object and added to the platform information
repository.

The platform Configuration Manager can then utilise this
information when generating the MADT table.

Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
DynamicTablesPkg/Library/FdtHwInfoParserLib/Gic/ArmGicRParser.c [new file with mode: 0644]
DynamicTablesPkg/Library/FdtHwInfoParserLib/Gic/ArmGicRParser.h [new file with mode: 0644]