]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtPkg/BaseCachingPciExpressLib: depend on PciPcdProducerLib
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 8 Apr 2016 09:45:00 +0000 (11:45 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 12 Apr 2016 14:57:20 +0000 (16:57 +0200)
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>
ArmVirtPkg/ArmVirtQemu.dsc
ArmVirtPkg/ArmVirtQemuKernel.dsc
ArmVirtPkg/Library/BaseCachingPciExpressLib/BaseCachingPciExpressLib.inf

index bb994262268f24b775c26b0677ca71c58c8c0c27..f2eccf8cca63aaf99858638a4208d197c9805479 100644 (file)
@@ -66,6 +66,7 @@
 !if $(SECURE_BOOT_ENABLE) == TRUE\r
   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
 !endif\r
+  PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
 \r
 [LibraryClasses.common.UEFI_DRIVER]\r
   UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
   gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0\r
   gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0\r
   gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0\r
-  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0\r
+\r
+  # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this\r
+  # PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
+  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
 \r
   #\r
   # Set video resolution for boot options and for text setup.\r
index d6c73d960805a89fdc24b5de79c45edac4bf14b9..107627e6a6f484ae7bdaffd42fe3464f9cc02661 100644 (file)
@@ -65,6 +65,7 @@
 !if $(SECURE_BOOT_ENABLE) == TRUE\r
   FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf\r
 !endif\r
+  PciPcdProducerLib|ArmVirtPkg/Library/FdtPciPcdProducerLib/FdtPciPcdProducerLib.inf\r
 \r
 [LibraryClasses.common.UEFI_DRIVER]\r
   UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf\r
   gArmPlatformTokenSpaceGuid.PcdPciIoTranslation|0x0\r
   gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x0\r
   gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x0\r
-  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x0\r
+\r
+  # set PcdPciExpressBaseAddress to MAX_UINT64, which signifies that this\r
+  # PCD and PcdPciDisableBusEnumeration above have not been assigned yet\r
+  gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xFFFFFFFFFFFFFFFF\r
 \r
   #\r
   # Set video resolution for boot options and for text setup.\r
index f6a346d49f229f7264505a0547befc887a2ee548..b32554a111e60427a503404af5868ba7864cb805 100644 (file)
@@ -33,6 +33,7 @@
   PciExpressLib.c\r
 \r
 [Packages]\r
+  ArmVirtPkg/ArmVirtPkg.dec\r
   MdePkg/MdePkg.dec\r
 \r
 [LibraryClasses]\r
@@ -40,6 +41,7 @@
   PcdLib\r
   DebugLib\r
   IoLib\r
+  PciPcdProducerLib\r
 \r
 [Pcd]\r
   gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress  ## CONSUMES\r