HiKey.dsc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. #
  2. # Copyright (c) 2014-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 = HiKey
  13. PLATFORM_GUID = 8edf1480-da5c-4857-bc02-7530bd8e7b7a
  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/HiKey/Library/HiKeyLib/HiKeyLib.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. NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
  42. DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
  43. IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
  44. UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
  45. # VariableRuntimeDxe Requirements
  46. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  47. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  48. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  49. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  50. [LibraryClasses.common.SEC]
  51. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  52. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  53. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  54. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  55. MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
  56. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  57. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  58. [BuildOptions]
  59. GCC:*_*_*_PLATFORM_FLAGS = -I$(WORKSPACE)/Silicon/Hisilicon/Hi6220/Include -I$(WORKSPACE)/Platform/Hisilicon/HiKey/Include
  60. ################################################################################
  61. #
  62. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  63. #
  64. ################################################################################
  65. [PcdsFeatureFlag.common]
  66. # If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  67. # It could be set FALSE to save size.
  68. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
  69. [PcdsFixedAtBuild.common]
  70. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  71. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Alpha"
  72. # System Memory (1GB)
  73. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x00000000
  74. gArmTokenSpaceGuid.PcdSystemMemorySize|0x3E000000
  75. # HiKey Dual-Cluster profile
  76. gArmPlatformTokenSpaceGuid.PcdCoreCount|8
  77. gArmPlatformTokenSpaceGuid.PcdClusterCount|2
  78. #
  79. # ARM PrimeCell
  80. #
  81. ## PL011 - Serial Terminal
  82. DEFINE SERIAL_BASE = 0xF7113000 # UART3
  83. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|$(SERIAL_BASE)
  84. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  85. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  86. gArmPlatformTokenSpaceGuid.PL011UartInteger|10
  87. gArmPlatformTokenSpaceGuid.PL011UartFractional|26
  88. ## PL031 RealTimeClock
  89. gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0xF8003000
  90. #
  91. # ARM General Interrupt Controller
  92. #
  93. gArmTokenSpaceGuid.PcdGicDistributorBase|0xF6801000
  94. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xF6802000
  95. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|10
  96. # GUID of the UI app
  97. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  98. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  99. gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
  100. #
  101. # DW MMC/SD card controller
  102. #
  103. gEmbeddedTokenSpaceGuid.PcdDwEmmcDxeBaseAddress|0xF723D000
  104. gEmbeddedTokenSpaceGuid.PcdDwEmmcDxeClockFrequencyInHz|100000000
  105. #
  106. #
  107. # Fastboot
  108. #
  109. gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1
  110. gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbProductId|0xd00d
  111. #
  112. # Android Loader
  113. #
  114. gHiKeyTokenSpaceGuid.PcdAndroidBootDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00D023F70000000000)/eMMC(0x0)/Ctrl(0x0)/HD(6,GPT,5C0F213C-17E1-4149-88C8-8B50FB4EC70E,0x7000,0x20000)/\\EFI\\BOOT\\GRUBAA64.EFI"
  115. gHiKeyTokenSpaceGuid.PcdSdBootDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00E023F70000000000)/SD(0x0)"
  116. #
  117. # Make VariableRuntimeDxe work at emulated non-volatile variable mode.
  118. #
  119. gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|TRUE
  120. ################################################################################
  121. #
  122. # Components Section - list of all EDK II Modules needed by this Platform
  123. #
  124. ################################################################################
  125. [Components.common]
  126. #
  127. # PEI Phase modules
  128. #
  129. ArmPlatformPkg/PrePi/PeiUniCore.inf
  130. MdeModulePkg/Core/Pei/PeiMain.inf
  131. MdeModulePkg/Universal/PCD/Pei/Pcd.inf
  132. #
  133. # DXE
  134. #
  135. MdeModulePkg/Core/Dxe/DxeMain.inf {
  136. <LibraryClasses>
  137. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  138. }
  139. #
  140. # Architectural Protocols
  141. #
  142. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  143. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  144. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  145. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  146. EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
  147. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  148. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  149. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  150. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  151. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  152. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  153. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  154. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
  155. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  156. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  157. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  158. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
  159. #
  160. # GPIO
  161. #
  162. Platform/Hisilicon/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.inf
  163. ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe.inf
  164. #
  165. # Virtual Keyboard
  166. #
  167. EmbeddedPkg/Drivers/VirtualKeyboardDxe/VirtualKeyboardDxe.inf
  168. Platform/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.inf
  169. #
  170. # MMC/SD
  171. #
  172. EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
  173. EmbeddedPkg/Drivers/DwEmmcDxe/DwEmmcDxe.inf
  174. #
  175. # USB Host Support
  176. #
  177. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  178. #
  179. # USB Mass Storage Support
  180. #
  181. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  182. #
  183. # USB Peripheral Support
  184. #
  185. EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
  186. #
  187. # Fastboot
  188. #
  189. EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
  190. #
  191. # UEFI Network Stack
  192. #
  193. MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
  194. MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
  195. MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
  196. MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
  197. MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
  198. MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
  199. MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
  200. NetworkPkg/UefiPxeBcDxe/UefiPxeBcDxe.inf
  201. NetworkPkg/TcpDxe/TcpDxe.inf
  202. #
  203. # AX88772 Ethernet Driver
  204. #
  205. OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b.inf
  206. #
  207. # FAT filesystem + GPT/MBR partitioning
  208. #
  209. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  210. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  211. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  212. FatPkg/EnhancedFatDxe/Fat.inf
  213. #
  214. # Bds
  215. #
  216. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  217. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf {
  218. <LibraryClasses>
  219. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  220. }
  221. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  222. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  223. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  224. MdeModulePkg/Application/UiApp/UiApp.inf {
  225. <LibraryClasses>
  226. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  227. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  228. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  229. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  230. }
  231. ShellPkg/Application/Shell/Shell.inf {
  232. <LibraryClasses>
  233. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  234. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  235. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  236. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  237. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  238. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  239. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  240. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  241. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  242. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  243. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  244. <PcdsFixedAtBuild>
  245. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  246. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  247. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  248. }
  249. !ifdef $(INCLUDE_TFTP_COMMAND)
  250. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
  251. !endif #$(INCLUDE_TFTP_COMMAND)