]> git.proxmox.com Git - mirror_edk2.git/commit
ArmVirtPkg: implement FdtPciPcdProducerLib
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 12 Apr 2016 12:21:03 +0000 (14:21 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 12 Apr 2016 14:26:46 +0000 (16:26 +0200)
commit33ac45661ada95134cc2fcd266f89da391c86b93
tree1811eea836f181209f0203de9be34e23c514a58a
parentba83f7e397f99d96cf145cf6698c1853558532d9
ArmVirtPkg: implement FdtPciPcdProducerLib

This implements a library FdtPciPcdProducerLib which is intended to
be incorporated into modules that consume the PCI related dynamic PCDs
PcdPciExpressBaseAddress and PcdPciDisableBusEnumeration, either via NULL
library class resolution or via a direct dependency (for other libraries
or modules in ArmVirtPkg). This allows us to make them depend on the FDT
client protocol, and populate these PCDs based on the presence and the
contents of a 'pci-host-ecam-generic' DT node.

This also overloads the meaning of PcdPciExpressBaseAddress, which we will
set to MAX_UINT64 to signify that the actual values of these two PCDs have
not been assigned yet.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.c [new file with mode: 0644]
ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf [new file with mode: 0644]