ArmJuno.dsc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. #
  2. # Copyright (c) 2013-2018, 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. ################################################################################
  8. #
  9. # Defines Section - statements that will be processed to create a Makefile.
  10. #
  11. ################################################################################
  12. [Defines]
  13. PLATFORM_NAME = ArmJuno
  14. PLATFORM_GUID = ca0722fd-7d3d-45ea-948c-d62b2199807d
  15. PLATFORM_VERSION = 0.1
  16. DSC_SPECIFICATION = 0x00010005
  17. !ifdef EDK2_OUT_DIR
  18. OUTPUT_DIRECTORY = $(EDK2_OUT_DIR)
  19. !else
  20. OUTPUT_DIRECTORY = Build/ArmJuno
  21. !endif
  22. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  23. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  24. SKUID_IDENTIFIER = DEFAULT
  25. FLASH_DEFINITION = Platform/ARM/JunoPkg/ArmJuno.fdf
  26. # On RTSM, most peripherals are VExpress Motherboard peripherals
  27. !include Platform/ARM/VExpressPkg/ArmVExpress.dsc.inc
  28. !include MdePkg/MdeLibs.dsc.inc
  29. !ifdef DYNAMIC_TABLES_FRAMEWORK
  30. !include DynamicTablesPkg/DynamicTables.dsc.inc
  31. !include Platform/ARM/JunoPkg/ConfigurationManager/ConfigurationManager.dsc.inc
  32. !endif
  33. [LibraryClasses.common]
  34. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  35. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  36. ArmPlatformLib|Platform/ARM/JunoPkg/Library/ArmJunoLib/ArmJunoLib.inf
  37. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  38. NorFlashPlatformLib|Platform/ARM/JunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf
  39. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  40. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  41. # USB Requirements
  42. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  43. # SCMI Mailbox Transport Layer
  44. ArmMtlLib|Platform/ARM/JunoPkg/Library/ArmJunoMtlLib/ArmJunoMtlLib.inf
  45. !ifndef HEADLESS_PLATFORM
  46. LcdPlatformLib|Platform/ARM/JunoPkg/Library/HdLcdArmJunoLib/HdLcdArmJunoLib.inf
  47. LcdHwLib|ArmPlatformPkg/Library/HdLcd/HdLcd.inf
  48. !endif
  49. [LibraryClasses.common.SEC]
  50. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  51. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  52. LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  53. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  54. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  55. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  56. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  57. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  58. [LibraryClasses.common.SEC, LibraryClasses.common.PEIM]
  59. MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
  60. [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
  61. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  62. NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
  63. PciHostBridgeLib|Platform/ARM/JunoPkg/Library/JunoPciHostBridgeLib/JunoPciHostBridgeLib.inf
  64. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  65. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  66. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  67. [BuildOptions]
  68. GCC:*_*_ARM_PLATFORM_FLAGS = -march=armv8-a
  69. !ifdef DYNAMIC_TABLES_FRAMEWORK
  70. *_*_*_PLATFORM_FLAGS = -DDYNAMIC_TABLES_FRAMEWORK
  71. !endif
  72. ################################################################################
  73. #
  74. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  75. #
  76. ################################################################################
  77. [PcdsFeatureFlag.common]
  78. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  79. # It could be set FALSE to save size.
  80. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  81. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  82. [PcdsFixedAtBuild.common]
  83. #
  84. # NV Storage PCDs. Use base of 0x08000000 for NOR0
  85. #
  86. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0BFC0000
  87. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
  88. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0BFD0000
  89. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
  90. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0BFE0000
  91. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
  92. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  93. # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)
  94. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
  95. !ifdef HEADLESS_PLATFORM
  96. gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000
  97. !else
  98. # Default framebuffer size is 0x7E9000, reduce system memory size for framebuffer.
  99. gArmTokenSpaceGuid.PcdSystemMemorySize|0x7E817000
  100. gArmPlatformTokenSpaceGuid.PcdArmLcdDdrFrameBufferBase|0xFE817000
  101. gArmPlatformTokenSpaceGuid.PcdArmHdLcdSwapBlueRedSelect|TRUE
  102. !endif
  103. # Juno Dual-Cluster profile
  104. gArmPlatformTokenSpaceGuid.PcdCoreCount|6
  105. gArmPlatformTokenSpaceGuid.PcdClusterCount|2
  106. gArmTokenSpaceGuid.PcdVFPEnabled|1
  107. #
  108. # ARM PrimeCell
  109. #
  110. ## PL011 - Serial Terminal
  111. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF80000
  112. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  113. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|7372800
  114. gArmPlatformTokenSpaceGuid.PL011UartInterrupt|115
  115. ## PL011 - Serial Debug UART
  116. gArmPlatformTokenSpaceGuid.PcdSerialDbgRegisterBase|0x7FF80000
  117. gArmPlatformTokenSpaceGuid.PcdSerialDbgUartClkInHz|7372800
  118. gArmPlatformTokenSpaceGuid.PcdSerialDbgUartBaudRate|115200
  119. ## PL031 RealTimeClock
  120. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
  121. ## SBSA Watchdog Count
  122. !ifndef DISABLE_SBSA_WATCHDOG
  123. gArmPlatformTokenSpaceGuid.PcdWatchdogCount|2
  124. !endif
  125. # LAN9118 Ethernet Driver
  126. gArmVExpressTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x18000000
  127. gArmVExpressTokenSpaceGuid.PcdLan9118DefaultMacAddress|0x1215161822242628
  128. gArmVExpressTokenSpaceGuid.PcdLan9118DefaultNegotiationTimeout|40000
  129. #
  130. # ARM Generic Interrupt Controller
  131. #
  132. gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C010000
  133. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C02F000
  134. !ifndef HEADLESS_PLATFORM
  135. # ARM Juno HDLCD Base
  136. gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x7FF60000
  137. !endif
  138. #
  139. # PLDA PCI Root Complex
  140. #
  141. gArmTokenSpaceGuid.PcdPciBusMax|255
  142. gArmTokenSpaceGuid.PcdPciIoBase|0x0
  143. gArmTokenSpaceGuid.PcdPciIoSize|0x00800000
  144. gArmTokenSpaceGuid.PcdPciMmio32Base|0x50000000
  145. gArmTokenSpaceGuid.PcdPciMmio32Size|0x08000000
  146. gArmTokenSpaceGuid.PcdPciMmio64Base|0x4000000000
  147. gArmTokenSpaceGuid.PcdPciMmio64Size|0x100000000
  148. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x40000000
  149. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0x5f800000
  150. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24
  151. # List of Device Paths that support BootMonFs
  152. gArmBootMonFsTokenSpaceGuid.PcdBootMonFsSupportedDevicePaths|L"VenHw(DE6AE758-D662-4E17-A97C-4C5964DA4C41,00)"
  153. #
  154. # ARM Architectural Timer Frequency
  155. #
  156. # Set to 0 so ArmArchTimerLib will read its value from CNTFRQ_EL0
  157. gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|0
  158. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  159. #
  160. # SMBIOS entry point version
  161. #
  162. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
  163. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
  164. #
  165. # ACPI Table Version
  166. #
  167. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
  168. [PcdsPatchableInModule]
  169. # Console Resolution (Full HD)
  170. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1920
  171. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|1080
  172. [PcdsDynamicDefault.common]
  173. #
  174. # The size of a dynamic PCD of the (VOID*) type can not be increased at run
  175. # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
  176. # character "empty" string, to allow to be able to set FDT text device paths
  177. # up to 128 characters long.
  178. #
  179. gFdtPlatformDxeTokenSpaceGuid.PcdFdtDevicePaths|L" "
  180. # Not all Juno platforms support PCI. This dynamic PCD disables or enable
  181. # PCI support.
  182. gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
  183. ################################################################################
  184. #
  185. # Components Section - list of all EDK II Modules needed by this Platform
  186. #
  187. ################################################################################
  188. [Components.common]
  189. #
  190. # PEI Phase modules
  191. #
  192. ArmPlatformPkg/PrePi/PeiUniCore.inf
  193. #
  194. # DXE
  195. #
  196. MdeModulePkg/Core/Dxe/DxeMain.inf {
  197. <LibraryClasses>
  198. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  199. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  200. }
  201. #
  202. # Architectural Protocols
  203. #
  204. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  205. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  206. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  207. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  208. MdeModulePkg/Universal/Metronome/Metronome.inf
  209. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  210. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  211. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  212. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  213. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  214. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  215. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  216. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  217. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  218. <LibraryClasses>
  219. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  220. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  221. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  222. }
  223. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  224. #
  225. # ACPI Support
  226. #
  227. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  228. !ifndef DYNAMIC_TABLES_FRAMEWORK
  229. Platform/ARM/JunoPkg/AcpiTables/AcpiTables.inf
  230. !endif
  231. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  232. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  233. Platform/ARM/Drivers/NorFlashDxe/NorFlashDxe.inf
  234. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  235. ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
  236. #
  237. # Firmware Performance Data Table (FPDT)
  238. #
  239. MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  240. MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf {
  241. <LibraryClasses>
  242. LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
  243. }
  244. #
  245. # Semi-hosting filesystem
  246. #
  247. ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
  248. #
  249. # FAT filesystem + GPT/MBR partitioning
  250. #
  251. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  252. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  253. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  254. FatPkg/EnhancedFatDxe/Fat.inf
  255. # Required by PCI
  256. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
  257. #
  258. # PCI Support
  259. #
  260. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  261. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  262. #
  263. # SATA Controller
  264. #
  265. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  266. Platform/ARM/JunoPkg/Drivers/SataSiI3132Dxe/SataSiI3132Dxe.inf
  267. #
  268. # NVMe boot devices
  269. #
  270. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  271. #
  272. # Networking stack
  273. #
  274. Platform/ARM/VExpressPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
  275. !if 0
  276. OptionRomPkg/MarvellYukonDxe/MarvellYukonDxe.inf
  277. !endif
  278. #
  279. # Usb Support
  280. #
  281. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  282. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  283. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  284. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  285. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  286. MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
  287. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  288. MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
  289. !ifndef HEADLESS_PLATFORM
  290. # Graphic Output Protocol
  291. ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.inf
  292. !endif
  293. #
  294. # Juno platform driver
  295. #
  296. Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf
  297. #
  298. # SMBIOS/DMI
  299. #
  300. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  301. Platform/ARM/JunoPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  302. #
  303. # Bds
  304. #
  305. MdeModulePkg/Universal/BootManagerPolicyDxe/BootManagerPolicyDxe.inf
  306. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  307. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  308. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  309. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  310. MdeModulePkg/Application/UiApp/UiApp.inf {
  311. <LibraryClasses>
  312. NULL|MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf
  313. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  314. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  315. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  316. }
  317. #
  318. # FDT installation
  319. #
  320. Platform/ARM/Drivers/FdtPlatformDxe/FdtPlatformDxe.inf {
  321. <LibraryClasses>
  322. BdsLib|Platform/ARM/Library/BdsLib/BdsLib.inf
  323. }
  324. # SCMI Driver
  325. ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf
  326. [Components.AARCH64]
  327. #
  328. # EBC
  329. #
  330. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf