mirror of https://github.com/acidanthera/audk.git
ArmVirtPkg/BaseCachingPciExpressLib: depend on PciPcdProducerLib
Make BaseCachingPciExpressLib depend on PciPcdProducerLib, so that we have a chance to populate PcdPciExpressBaseAddress based on the contents of the device tree. Also update the platforms under ArmVirtPkg that support PCI to use the special MAX_UINT64 value as the build time default for PcdPciExpressBaseAddress. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
33ac45661a
commit
a06d0bb58e
|
@ -66,6 +66,7 @@
|
||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
||||||
!endif
|
!endif
|
||||||
|
PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_DRIVER]
|
[LibraryClasses.common.UEFI_DRIVER]
|
||||||
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
||||||
|
@ -219,7 +220,10 @@
|
||||||
gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
|
gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
|
||||||
gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
|
gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
|
||||||
gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
|
gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
|
|
||||||
|
# set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
|
||||||
|
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet
|
||||||
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set video resolution for boot options and for text setup.
|
# Set video resolution for boot options and for text setup.
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
||||||
!endif
|
!endif
|
||||||
|
PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_DRIVER]
|
[LibraryClasses.common.UEFI_DRIVER]
|
||||||
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
||||||
|
@ -204,7 +205,10 @@
|
||||||
gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
|
gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0
|
||||||
gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
|
gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0
|
||||||
gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
|
gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0
|
|
||||||
|
# set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this
|
||||||
|
# PCD and PcdPciDisableBusEnumeration above have not been assigned yet
|
||||||
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF
|
||||||
|
|
||||||
#
|
#
|
||||||
# Set video resolution for boot options and for text setup.
|
# Set video resolution for boot options and for text setup.
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
PciExpressLib.c
|
PciExpressLib.c
|
||||||
|
|
||||||
[Packages]
|
[Packages]
|
||||||
|
ArmVirtPkg/ArmVirtPkg.dec
|
||||||
MdePkg/MdePkg.dec
|
MdePkg/MdePkg.dec
|
||||||
|
|
||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
|
@ -40,6 +41,7 @@
|
||||||
PcdLib
|
PcdLib
|
||||||
DebugLib
|
DebugLib
|
||||||
IoLib
|
IoLib
|
||||||
|
PciPcdProducerLib
|
||||||
|
|
||||||
[Pcd]
|
[Pcd]
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## CONSUMES
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## CONSUMES
|
||||||
|
|
Loading…
Reference in New Issue