HiKey.dsc 11 KB

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