ArmJuno.dsc 14 KB

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