HiKey960.dsc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. #
  2. # Copyright (c) 2018, Linaro 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 = HiKey960
  13. PLATFORM_GUID = bd1a557e-4423-466a-a462-38439588fd37
  14. PLATFORM_VERSION = 0.2
  15. DSC_SPECIFICATION = 0x00010019
  16. OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
  17. SUPPORTED_ARCHITECTURES = AARCH64
  18. BUILD_TARGETS = DEBUG|RELEASE
  19. SKUID_IDENTIFIER = DEFAULT
  20. FLASH_DEFINITION = Platform/Hisilicon/$(PLATFORM_NAME)/$(PLATFORM_NAME).fdf
  21. DEFINE CONFIG_NO_DEBUGLIB = TRUE
  22. !include Silicon/Hisilicon/Hisilicon.dsc.inc
  23. [LibraryClasses.common]
  24. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  25. ArmPlatformLib|Platform/Hisilicon/HiKey960/Library/HiKey960Lib/HiKey960Lib.inf
  26. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  27. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  28. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  29. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  30. # UiApp dependencies
  31. ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
  32. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  33. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  34. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  35. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  36. RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
  37. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  38. # USB Requirements
  39. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  40. # Network Libraries
  41. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  42. NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
  43. DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
  44. IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
  45. UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
  46. # VariableRuntimeDxe Requirements
  47. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  48. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  49. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  50. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  51. [LibraryClasses.common.SEC]
  52. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  53. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  54. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  55. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  56. MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
  57. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  58. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  59. ################################################################################
  60. #
  61. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  62. #
  63. ################################################################################
  64. [PcdsFeatureFlag.common]
  65. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  66. # It could be set FALSE to save size.
  67. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
  68. [PcdsFixedAtBuild.common]
  69. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  70. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Alpha"
  71. # System Memory (3GB)
  72. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x00000000
  73. gArmTokenSpaceGuid.PcdSystemMemorySize|0xC0000000
  74. # HiKey960 Dual-Cluster profile
  75. gArmPlatformTokenSpaceGuid.PcdCoreCount|8
  76. gArmPlatformTokenSpaceGuid.PcdClusterCount|2
  77. #
  78. # ARM PrimeCell
  79. #
  80. ## PL011 - Serial Terminal
  81. DEFINE SERIAL_BASE = 0xFFF32000
  82. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|$(SERIAL_BASE)
  83. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  84. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  85. gArmPlatformTokenSpaceGuid.PL011UartInteger|10
  86. gArmPlatformTokenSpaceGuid.PL011UartFractional|26
  87. ## PL031 RealTimeClock
  88. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0xFFF05000
  89. #
  90. # ARM General Interrupt Controller
  91. #
  92. gArmTokenSpaceGuid.PcdGicDistributorBase|0xE82B1000
  93. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xE82B2000
  94. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|10
  95. # GUID of the UI app
  96. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  97. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  98. gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
  99. #
  100. #
  101. # Fastboot
  102. #
  103. gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1
  104. gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbProductId|0xd00d
  105. #
  106. # Android Loader
  107. #
  108. gHiKey960TokenSpaceGuid.PcdAndroidBootDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00003BFF0000000000)/UFS(0x0,0x3)/HD(7,GPT,D3340696-9B95-4C64-8DF6-E6D4548FBA41,0x12100,0x4000)/\\EFI\\BOOT\\GRUBAA64.EFI"
  109. gHiKey960TokenSpaceGuid.PcdSdBootDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00F037FF0000000000)/SD(0x0)"
  110. #
  111. # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
  112. #
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
  114. ################################################################################
  115. #
  116. # Components Section - list of all EDK II Modules needed by this Platform
  117. #
  118. ################################################################################
  119. [Components.common]
  120. #
  121. # PEI Phase modules
  122. #
  123. ArmPlatformPkg/PrePi/PeiUniCore.inf
  124. #
  125. # DXE
  126. #
  127. MdeModulePkg/Core/Dxe/DxeMain.inf {
  128. <LibraryClasses>
  129. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  130. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  131. }
  132. #
  133. # Architectural Protocols
  134. #
  135. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  136. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  137. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  138. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  139. EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
  140. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  141. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  142. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  143. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  144. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  145. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  146. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  147. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
  148. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  149. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  150. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  151. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
  152. #
  153. # GPIO
  154. #
  155. Platform/Hisilicon/HiKey960/HiKey960GpioDxe/HiKey960GpioDxe.inf
  156. ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe.inf
  157. #
  158. # Virtual Keyboard
  159. #
  160. EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboardDxe.inf
  161. Platform/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe.inf
  162. #
  163. # USB Host Support
  164. #
  165. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  166. #
  167. # USB Mass Storage Support
  168. #
  169. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  170. #
  171. # USB Peripheral Support
  172. #
  173. EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
  174. #
  175. # Fastboot
  176. #
  177. EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
  178. #
  179. # UEFI Network Stack
  180. #
  181. MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
  182. MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
  183. MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
  184. MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
  185. MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
  186. MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
  187. MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
  188. NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
  189. NetworkPkg/TcpDxe/TcpDxe.inf
  190. #
  191. # FAT filesystem + GPT/MBR partitioning
  192. #
  193. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  194. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  195. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  196. FatPkg/EnhancedFatDxe/Fat.inf
  197. #
  198. # Bds
  199. #
  200. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  201. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf {
  202. <LibraryClasses>
  203. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  204. }
  205. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  206. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  207. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  208. MdeModulePkg/Application/UiApp/UiApp.inf {
  209. <LibraryClasses>
  210. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  211. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  212. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  213. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  214. }
  215. ShellPkg/Application/Shell/Shell.inf {
  216. <LibraryClasses>
  217. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  218. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  219. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  220. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  221. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  222. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  223. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  224. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  225. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  226. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  227. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  228. <PcdsFixedAtBuild>
  229. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  230. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  231. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  232. }
  233. !ifdef $(INCLUDE_TFTP_COMMAND)
  234. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
  235. !endif #$(INCLUDE_TFTP_COMMAND)