]> git.proxmox.com Git - mirror_edk2.git/commit - ArmVirtPkg/ArmVirt.dsc.inc
ArmVirtPkg: implement DT-based ArmGicArchLib
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 28 Jul 2015 20:45:36 +0000 (20:45 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 28 Jul 2015 20:45:36 +0000 (20:45 +0000)
commit15c9b25e5d363a8f39e9df06cf60f5a45316ae2b
tree77b4f4556700463d257088af5d707aef9ba5fbae
parentae26410e285bf0320252f99fe25055d467f86824
ArmVirtPkg: implement DT-based ArmGicArchLib

Since it is arguably incorrect to infer the GIC revision from CPU
ID and GIC feature registers on platforms that describe the GIC in
the device tree, this implements the library class ArmGicArchLib
tailored for such platforms.

The supported GIC revision is retrieved from the dynamic PCD that
is set based on the GIC DT node.

This means this library can only execute post DXE core, but this is
not a problem for any of the virt platforms.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18102 6f19259b-4bc3-4df7-8a09-765794883524
ArmVirtPkg/ArmVirt.dsc.inc
ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.c [new file with mode: 0644]
ArmVirtPkg/Library/ArmVirtGicArchLib/ArmVirtGicArchLib.inf [new file with mode: 0644]