ArmJuno.dsc 14 KB

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