SgiPlatform.dsc.inc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. #
  2. # Copyright (c) 2018 - 2022, ARM Limited. All rights reserved.
  3. # (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
  8. [Defines]
  9. # To allow the use of secure storage, set this to TRUE.
  10. DEFINE SECURE_STORAGE_ENABLE = FALSE
  11. # To allow the use of UEFI secure boot, set this to TRUE.
  12. # Secure boot requires secure storage to be enabled as well.
  13. DEFINE SECURE_BOOT_ENABLE = FALSE
  14. # To allow HDLCD display using the Graphics Output Protocol, set this to TRUE.
  15. DEFINE ENABLE_GOP = FALSE
  16. # To enable LPI and CPPC power management functionality, set this to TRUE.
  17. DEFINE LPI_EN = FALSE
  18. DEFINE CPPC_EN = FALSE
  19. [BuildOptions]
  20. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
  21. [LibraryClasses.common]
  22. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  23. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  24. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  25. ArmPlatformSysConfigLib|Platform/ARM/VExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
  26. ArmPlatformLib|Platform/ARM/SgiPkg/Library/PlatformLib/PlatformLib.inf
  27. BasePathLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  28. LcdHwLib|ArmPlatformPkg/Library/HdLcd/HdLcd.inf
  29. LcdPlatformLib|Platform/ARM/SgiPkg/Library/HdLcdArmSgiLib/HdLcdArmSgiLib.inf
  30. NorFlashPlatformLib|Platform/ARM/SgiPkg/Library/NorFlashLib/NorFlashLib.inf
  31. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  32. ResetSystemLib|ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf
  33. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  34. !if $(SECURE_BOOT_ENABLE) == TRUE
  35. MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
  36. !endif
  37. # Virtio Support
  38. VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
  39. VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
  40. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  41. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  42. [LibraryClasses.common.SEC]
  43. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  44. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  45. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  46. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  47. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  48. [LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
  49. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  50. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  51. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  52. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  53. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  54. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  55. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  56. [LibraryClasses.common.PEI_CORE]
  57. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  58. [LibraryClasses.common.PEIM]
  59. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  60. [LibraryClasses.common.DXE_CORE]
  61. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  62. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  63. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  64. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  65. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  66. [LibraryClasses.common.DXE_DRIVER]
  67. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  68. PciHostBridgeLib|Platform/ARM/SgiPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
  69. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  70. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  71. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  72. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  73. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  74. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  75. !if $(TARGET) != RELEASE
  76. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  77. !endif
  78. [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
  79. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  80. ################################################################################
  81. #
  82. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  83. #
  84. ################################################################################
  85. [PcdsFeatureFlag.common]
  86. gArmSgiTokenSpaceGuid.PcdVirtioBlkSupported|TRUE
  87. gArmSgiTokenSpaceGuid.PcdVirtioNetSupported|TRUE
  88. gEfiMdeModulePkgTokenSpaceGuid.PcdEnableVariableRuntimeCache|FALSE
  89. [PcdsFixedAtBuild.common]
  90. gArmTokenSpaceGuid.PcdVFPEnabled|1
  91. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  92. # DRAM Block2 Base and Size
  93. gArmSgiTokenSpaceGuid.PcdDramBlock2Base|0x8080000000
  94. gArmSgiTokenSpaceGuid.PcdDramBlock2Size|0x180000000
  95. !if $(LPI_EN) == TRUE
  96. # Allow use of LPI in the response to _OSC method call
  97. gArmSgiTokenSpaceGuid.PcdOscLpiEnable|1
  98. !endif
  99. !if $(CPPC_EN) == TRUE
  100. # Allow use of CPPC in the response to _OSC method call
  101. gArmSgiTokenSpaceGuid.PcdOscCppcEnable|1
  102. !endif
  103. # NV Storage PCDs.
  104. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x01400000
  105. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x01400000
  106. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x01400000
  107. # Stacks for MPCores in Normal World
  108. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x80000000
  109. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x40000
  110. gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x0
  111. # System Memory (1GB - 16MB of Trusted DRAM at the top of the 32bit address space)
  112. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
  113. gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000
  114. # ACPI Table Version
  115. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
  116. # SMBIOS entry point version
  117. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0304
  118. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  119. #
  120. # PCIe
  121. #
  122. gArmTokenSpaceGuid.PcdPciBusMin|0
  123. gArmTokenSpaceGuid.PcdPciBusMax|255
  124. gArmTokenSpaceGuid.PcdPciIoBase|0x0
  125. gArmTokenSpaceGuid.PcdPciIoSize|0x00800000
  126. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x77800000
  127. gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation|0x0
  128. gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation|0x0
  129. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24
  130. ## PL011 - Serial Terminal
  131. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x2A400000
  132. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  133. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  134. gArmPlatformTokenSpaceGuid.PL011UartInteger|4
  135. gArmPlatformTokenSpaceGuid.PL011UartFractional|0
  136. ## PL370 - HDLCD1
  137. gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x7FF60000
  138. ## PL011 - Serial Debug UART
  139. gArmPlatformTokenSpaceGuid.PcdSerialDbgUartClkInHz|7372800
  140. gArmPlatformTokenSpaceGuid.PcdSerialDbgUartBaudRate|115200
  141. # List of Device Paths that support BootMonFs
  142. gArmBootMonFsTokenSpaceGuid.PcdBootMonFsSupportedDevicePaths|L"VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00)"
  143. # ARM OS Loader
  144. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
  145. # ARM Architectural Timer Frequency
  146. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
  147. gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
  148. gEmbeddedTokenSpaceGuid.PcdTimerPeriod|1000
  149. # Virtio Disk
  150. gArmSgiTokenSpaceGuid.PcdVirtioBlkSize|0x10000
  151. # Ethernet / Virtio Network
  152. gArmSgiTokenSpaceGuid.PcdVirtioNetSize|0x10000
  153. # Counter, Timer and Watchdog
  154. gArmSgiTokenSpaceGuid.PcdTimerBase0Base|0x2A830000
  155. gArmSgiTokenSpaceGuid.PcdTimerBase0Size|0x00010000
  156. gArmSgiTokenSpaceGuid.PcdTimerControlBase|0x2A810000
  157. gArmSgiTokenSpaceGuid.PcdTimerControlSize|0x00010000
  158. gArmSgiTokenSpaceGuid.PcdTimerCounterReadBase|0x2A800000
  159. gArmSgiTokenSpaceGuid.PcdTimerCounterReadSize|0x00010000
  160. gArmSgiTokenSpaceGuid.PcdWdogBase|0x2A440000
  161. gArmSgiTokenSpaceGuid.PcdWdogSize|0x00020000
  162. #
  163. # Set the base address and size of the buffer used
  164. # for communication between the Normal world edk2
  165. # with StandaloneMm image at S-EL0 through MM_COMMUNICATE.
  166. # This buffer gets allocated in ATF and since we do not have
  167. # a mechanism currently to communicate the base address and
  168. # size of this buffer from ATF, hard-code it here
  169. #
  170. ## MM Communicate
  171. gArmTokenSpaceGuid.PcdMmBufferBase|0xFF600000
  172. gArmTokenSpaceGuid.PcdMmBufferSize|0x10000
  173. ################################################################################
  174. #
  175. # Components Section - list of all EDK II Modules needed by this Platform
  176. #
  177. ################################################################################
  178. [Components.common]
  179. #
  180. # PEI Phase modules
  181. #
  182. ArmPkg/Drivers/CpuPei/CpuPei.inf
  183. ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  184. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  185. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  186. MdeModulePkg/Core/Pei/PeiMain.inf
  187. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  188. <LibraryClasses>
  189. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  190. }
  191. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  192. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  193. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  194. <LibraryClasses>
  195. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  196. }
  197. Platform/ARM/SgiPkg/Library/SgiPlatformPei/SgiPlatformPei.inf
  198. #
  199. # DXE
  200. #
  201. MdeModulePkg/Core/Dxe/DxeMain.inf {
  202. <LibraryClasses>
  203. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  204. <PcdsFixedAtBuild>
  205. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
  206. }
  207. #
  208. # Architectural Protocols
  209. #
  210. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  211. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  212. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  213. ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
  214. !if $(ENABLE_GOP) == TRUE
  215. ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.inf
  216. !endif
  217. ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
  218. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  219. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  220. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  221. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  222. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  223. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  224. !if $(SECURE_BOOT_ENABLE) == TRUE
  225. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  226. <LibraryClasses>
  227. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  228. }
  229. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  230. !else
  231. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  232. !endif
  233. OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
  234. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  235. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  236. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  237. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  238. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  239. !if $(SECURE_STORAGE_ENABLE) == TRUE
  240. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
  241. !else
  242. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  243. <LibraryClasses>
  244. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  245. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  246. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  247. }
  248. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  249. !endif
  250. #
  251. # ACPI Support
  252. #
  253. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  254. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  255. #
  256. # SMBIOS/DMI
  257. #
  258. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  259. Platform/ARM/SgiPkg/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  260. #
  261. # platform driver
  262. #
  263. Platform/ARM/SgiPkg/Drivers/PlatformDxe/PlatformDxe.inf
  264. #
  265. # FAT filesystem + GPT/MBR partitioning
  266. #
  267. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  268. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  269. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  270. FatPkg/EnhancedFatDxe/Fat.inf
  271. #
  272. # Bds
  273. #
  274. MdeModulePkg/Universal/BootManagerPolicyDxe/BootManagerPolicyDxe.inf
  275. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  276. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  277. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  278. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  279. MdeModulePkg/Application/UiApp/UiApp.inf {
  280. <LibraryClasses>
  281. NULL|MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf
  282. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  283. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  284. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  285. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  286. }
  287. # Virtio Network
  288. OvmfPkg/VirtioNetDxe/VirtioNet.inf
  289. #
  290. # Required by PCI
  291. #
  292. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
  293. #
  294. # PCI Support
  295. #
  296. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  297. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  298. <PcdsFixedAtBuild>
  299. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8010004F
  300. }
  301. #
  302. # AHCI Support
  303. #
  304. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  305. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  306. #
  307. # SATA Controller
  308. #
  309. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  310. !if $(SECURE_STORAGE_ENABLE) == TRUE
  311. ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf {
  312. <LibraryClasses>
  313. NULL|StandaloneMmPkg/Library/VariableMmDependency/VariableMmDependency.inf
  314. }
  315. !else
  316. ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
  317. !endif