SgiPlatform.dsc.inc 14 KB

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