PlatformPei.inf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. #
  2. #
  3. # Copyright (c) 1999 - 2019, Intel Corporation. All rights reserved
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. #
  8. # This PEIM includes 3 parts, pre memory initialization, MRC
  9. # wrapper and post memory initialization.
  10. # On pre memory, following action is performed,
  11. # 1. Initizluize GMCH.
  12. # 2. Detect boot mode.
  13. # 3. Detect video adapter to determine whether we need pre allocated
  14. # memory.
  15. #
  16. # After that MRC wrapper calls MRC to initialize memory and install a PPI
  17. # notify to do post memory
  18. # initialization. MRC wrapper performance following actions,
  19. # 1. Install EFI Memory.
  20. # 2. Capsule coalesce if capsule boot mode.
  21. # 3. Create HOB of system memory.
  22. # Note: MRC supports 3 kinds of chipsets including Lakeport, Glenwood and Mukilteo,
  23. # so please don't define MACRO MUKILTEO_SUPPORT on Lakeport here.
  24. #
  25. # On post memory, following action is performed,
  26. # 1. TC initialization after MRC.
  27. # 2. SIO initialization.
  28. # 3. Install ResetSystem and FinvFv PPI, relocate Stall to memory on
  29. # recovery boot mode.
  30. # 4. Set MTRR for PEI
  31. # 5. Create FV HOB and Flash HOB
  32. # 6. Install RecoveryModule and AtaController PPI if on recovery boot mode.
  33. #
  34. # This PEIM does not have any register access directly, it depends on
  35. # IntelTCLib, TCAccess libraries to access Chipset
  36. # registers.
  37. #
  38. # Platform.c - Provide main flow and entrypoint of PEIM.
  39. # MemoryCallback.c - Includes a memory call back function notified when
  40. # MRC is done.
  41. #
  42. #
  43. [Defines]
  44. INF_VERSION = 0x00010005
  45. BASE_NAME = PlatformPeim
  46. FILE_GUID = 9618C0DC-50A4-496c-994F-7241F282ED01
  47. MODULE_TYPE = PEIM
  48. VERSION_STRING = 1.0
  49. ENTRY_POINT = PeiInitPlatform
  50. PI_SPECIFICATION_VERSION = 0x0001000A
  51. [sources.common]
  52. Platform.c
  53. Platform.h
  54. MemoryCallback.c
  55. CommonHeader.h
  56. Stall.c
  57. BootMode.c
  58. [Packages]
  59. MdePkg/MdePkg.dec
  60. MdeModulePkg/MdeModulePkg.dec
  61. Vlv2TbltDevicePkg/PlatformPkg.dec
  62. Vlv2DeviceRefCodePkg/Vlv2DeviceRefCodePkg.dec
  63. UefiCpuPkg/UefiCpuPkg.dec
  64. CryptoPkg/CryptoPkg.dec
  65. [LibraryClasses]
  66. PeimEntryPoint
  67. DebugLib
  68. HobLib
  69. IoLib
  70. MtrrLib
  71. PerformanceLib
  72. MonoStatusCodeLib
  73. BaseCryptLib
  74. PciLib
  75. [Ppis]
  76. gEfiPeiStallPpiGuid
  77. gPeiSpeakerInterfacePpiGuid
  78. gEfiPeiMemoryDiscoveredPpiGuid
  79. gVlvPolicyPpiGuid
  80. gEfiPeiReadOnlyVariable2PpiGuid
  81. gEfiPeiResetPpiGuid
  82. gEfiEndOfPeiSignalPpiGuid
  83. gPeiCapsulePpiGuid
  84. gEfiPeiBootInRecoveryModePpiGuid
  85. gEfiPeiRecoveryModulePpiGuid
  86. gEfiPeiDeviceRecoveryModulePpiGuid
  87. gEfiPeiMasterBootModePpiGuid
  88. gPeiMfgMemoryTestPpiGuid
  89. gPeiSha256HashPpiGuid
  90. gVlvMmioPolicyPpiGuid
  91. gSeCfTPMPolicyPpiGuid
  92. [Guids]
  93. gEfiSetupVariableGuid
  94. gEfiPlatformInfoGuid
  95. gEfiPlatformBootModeGuid
  96. gEfiGlobalVariableGuid
  97. gRecoveryOnFatFloppyDiskGuid
  98. gRecoveryOnFatUsbDiskGuid
  99. gRecoveryOnFatIdeDiskGuid
  100. gRecoveryOnDataCdGuid
  101. gMfgModeVariableGuid
  102. gEfiNormalSetupGuid
  103. gEfiVlv2VariableGuid
  104. [Pcd.common]
  105. gPlatformModuleTokenSpaceGuid.PcdFlashFvMainBase
  106. gPlatformModuleTokenSpaceGuid.PcdFlashFvMainSize
  107. gPlatformModuleTokenSpaceGuid.PcdFlashFvRecovery2Base
  108. gPlatformModuleTokenSpaceGuid.PcdFlashFvRecovery2Size
  109. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress
  110. gPlatformModuleTokenSpaceGuid.PcdFlashAreaBaseAddress
  111. gPlatformModuleTokenSpaceGuid.PcdFlashAreaSize
  112. [Depex]
  113. TRUE