• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Copyright (c) 2014-2017, 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#
15# Defines Section - statements that will be processed to create a Makefile.
16#
17################################################################################
18[Defines]
19  PLATFORM_NAME                  = HiKey
20  PLATFORM_GUID                  = 8edf1480-da5c-4857-bc02-7530bd8e7b7a
21  PLATFORM_VERSION               = 0.2
22  DSC_SPECIFICATION              = 0x00010019
23  OUTPUT_DIRECTORY               = Build/HiKey
24  SUPPORTED_ARCHITECTURES        = AARCH64
25  BUILD_TARGETS                  = DEBUG|RELEASE
26  SKUID_IDENTIFIER               = DEFAULT
27  FLASH_DEFINITION               = OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKey.fdf
28
29[LibraryClasses.common]
30!if $(TARGET) == RELEASE
31  DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
32!else
33  DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
34!endif
35  DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
36
37  ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
38  ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
39  ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
40  ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
41  ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
42  ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
43
44  ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
45  ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
46  ArmPlatformLib|OpenPlatformPkg/Platforms/Hisilicon/HiKey/Library/HiKeyLib/HiKeyLib.inf
47  ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf
48  ArmPlatformSysConfigLib|ArmPlatformPkg/Library/ArmPlatformSysConfigLibNull/ArmPlatformSysConfigLibNull.inf
49
50  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
51  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
52  #CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
53  CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
54  DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
55  CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
56  CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
57  DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
58  DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
59  DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
60  EfiResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
61  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
62  SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
63
64  AbootimgLib|EmbeddedPkg/Library/AbootimgLib/AbootimgLib.inf
65  FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
66  UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
67  PlatformBootManagerLib|OpenPlatformPkg/Platforms/Hisilicon/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
68  CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
69
70  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
71  FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
72  SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
73
74  # UiApp dependencies
75  ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
76  FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
77  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
78
79  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
80  IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
81  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
82  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
83  TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
84  UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
85  UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
86  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
87  UsbSerialNumberLib|OpenPlatformPkg/Library/UsbSerialNumberLib/UsbSerialNumberLib.inf
88
89  PL011UartLib|ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.inf
90  SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
91  RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
92
93  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
94
95  #
96  # Assume everything is fixed at build
97  #
98  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
99
100  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
101  PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
102  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
103  PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
104  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
105  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
106  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
107  UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
108  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
109
110  # USB Requirements
111  UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
112  DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
113
114  UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
115
116  # Network Libraries
117  UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
118  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
119  DpcLib|MdeModulePkg/Library/DxeDpcLib/DxeDpcLib.inf
120  IpIoLib|MdeModulePkg/Library/DxeIpIoLib/DxeIpIoLib.inf
121  UdpIoLib|MdeModulePkg/Library/DxeUdpIoLib/DxeUdpIoLib.inf
122
123  # It is not possible to prevent compilers from generating calls to generic
124  # intrinsic functions. This library provides the intrinsic functions
125  # generated by a given compiler.
126  NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
127
128  # Add support for GCC stack protector
129  NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
130
131[LibraryClasses.common.SEC]
132  PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
133  ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
134  LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
135  MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
136  HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
137  PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
138  PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
139  PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
140  MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
141  ArmGicArchLib|ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf
142  DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf
143
144[LibraryClasses.common.DXE_CORE]
145  DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
146  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
147  ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
148  HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
149  MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
150  ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
151
152[LibraryClasses.common.UEFI_DRIVER]
153  ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
154
155[LibraryClasses.common.DXE_DRIVER]
156  DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
157  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
158  NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
159  ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
160  SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
161  DtPlatformDtbLoaderLib|EmbeddedPkg/Library/DxeDtPlatformDtbLoaderLibDefault/DxeDtPlatformDtbLoaderLibDefault.inf
162
163[LibraryClasses.common.DXE_RUNTIME_DRIVER]
164  CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
165  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
166  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
167  ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
168
169[BuildOptions]
170  GCC:*_*_*_PLATFORM_FLAGS = -I$(WORKSPACE)/OpenPlatformPkg/Chips/Hisilicon/Hi6220/Include -I$(WORKSPACE)/OpenPlatformPkg/Platforms/Hisilicon/HiKey/Include -I$(WORKSPACE)/OpenPlatformPkg/Include
171
172[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
173  GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
174
175################################################################################
176#
177# Pcd Section - list of all EDK II PCD Entries defined by this Platform
178#
179################################################################################
180
181[PcdsFeatureFlag.common]
182  #
183  # Control what commands are supported from the UI
184  # Turn these on and off to add features or save size
185  #
186  gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
187  gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
188  gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
189  gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
190  gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
191  gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
192  gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
193
194  gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
195
196  # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
197  gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
198
199  gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
200
201  gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
202
203  ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
204  #  It could be set FALSE to save size.
205  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
206
207  gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
208
209[PcdsFixedAtBuild.common]
210  gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
211  gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
212  gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
213  gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
214  gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
215  gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
216  gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
217  gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
218
219  # DEBUG_ASSERT_ENABLED       0x01
220  # DEBUG_PRINT_ENABLED        0x02
221  # DEBUG_CODE_ENABLED         0x04
222  # CLEAR_MEMORY_ENABLED       0x08
223  # ASSERT_BREAKPOINT_ENABLED  0x10
224  # ASSERT_DEADLOOP_ENABLED    0x20
225!if $(TARGET) == RELEASE
226  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
227!else
228  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
229!endif
230
231  #  DEBUG_INIT      0x00000001  // Initialization
232  #  DEBUG_WARN      0x00000002  // Warnings
233  #  DEBUG_LOAD      0x00000004  // Load events
234  #  DEBUG_FS        0x00000008  // EFI File system
235  #  DEBUG_POOL      0x00000010  // Alloc & Free's
236  #  DEBUG_PAGE      0x00000020  // Alloc & Free's
237  #  DEBUG_INFO      0x00000040  // Verbose
238  #  DEBUG_DISPATCH  0x00000080  // PEI/DXE Dispatchers
239  #  DEBUG_VARIABLE  0x00000100  // Variable
240  #  DEBUG_BM        0x00000400  // Boot Manager
241  #  DEBUG_BLKIO     0x00001000  // BlkIo Driver
242  #  DEBUG_NET       0x00004000  // SNI Driver
243  #  DEBUG_UNDI      0x00010000  // UNDI Driver
244  #  DEBUG_LOADFILE  0x00020000  // Load File
245  #  DEBUG_EVENT     0x00080000  // Event messages
246  #  DEBUG_GCD       0x00100000  // Global Coherency Database changes
247  #  DEBUG_CACHE     0x00200000  // Memory range cachability changes
248  #  DEBUG_ERROR     0x80000000  // Error
249  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
250
251  gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
252
253  #
254  # Optional feature to help prevent EFI memory map fragments
255  # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
256  # Values are in EFI Pages (4K). DXE Core will make sure that
257  # at least this much of each type of memory can be allocated
258  # from a single memory range. This way you only end up with
259  # maximum of two fragements for each type in the memory map
260  # (the memory used, and the free memory that was prereserved
261  # but not used).
262  #
263  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
264  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
265  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
266  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|80
267  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|65
268  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
269  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000
270  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
271  gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
272
273  gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
274
275  gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
276  gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
277  gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
278
279  gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"hikey"
280  gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"Alpha"
281  gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"HiKey"
282
283  #
284  # NV Storage PCDs.
285  #
286  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x30000000
287  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
288  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x30010000
289  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
290  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x30020000
291  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
292
293  # TimerPeriod
294  gEmbeddedTokenSpaceGuid.PcdTimerPeriod|1000
295
296  # System Memory (1GB)
297  gArmTokenSpaceGuid.PcdSystemMemoryBase|0x00000000
298  gArmTokenSpaceGuid.PcdSystemMemorySize|0x3E000000
299
300  # HiKey Dual-Cluster profile
301  gArmPlatformTokenSpaceGuid.PcdCoreCount|8
302  gArmPlatformTokenSpaceGuid.PcdClusterCount|2
303
304  gArmTokenSpaceGuid.PcdVFPEnabled|1
305
306  #
307  # ARM Pcds
308  #
309  gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000000000000
310
311  #
312  # ARM PrimeCell
313  #
314
315  ## PL011 - Serial Terminal
316  DEFINE SERIAL_BASE = 0xF7113000 # UART3
317  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|$(SERIAL_BASE)
318  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
319  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
320  gArmPlatformTokenSpaceGuid.PL011UartInteger|10
321  gArmPlatformTokenSpaceGuid.PL011UartFractional|26
322
323  ## PL031 RealTimeClock
324  gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0xF8003000
325
326  #
327  # ARM General Interrupt Controller
328  #
329  gArmTokenSpaceGuid.PcdGicDistributorBase|0xF6801000
330  gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xF6802000
331
332  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|10
333
334  # GUID of the UEFI Shell
335  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
336
337  # GUID of the UI app
338  gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
339
340  gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
341
342  gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
343
344  #
345  # DW USB controller
346  #
347  gDwUsbDxeTokenSpaceGuid.PcdDwUsbDxeBaseAddress|0xF72C0000
348
349  #
350  #
351  # Fastboot
352  #
353  gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbVendorId|0x18d1
354  gEmbeddedTokenSpaceGuid.PcdAndroidFastbootUsbProductId|0xd00d
355  gHiKeyTokenSpaceGuid.PcdAndroidFastbootNvmDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00D023F70000000000)/eMMC(0x0)/Ctrl(0x0)"
356  # Flash limit 128M/time, for memory concern
357  gHiKeyTokenSpaceGuid.PcdArmFastbootFlashLimit|"134217728"
358
359  #
360  # Android Loader
361  #
362  gEmbeddedTokenSpaceGuid.PcdAndroidBootDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00D023F70000000000)/eMMC(0x0)/Ctrl(0x0)/HD(6,GPT,5C0F213C-17E1-4149-88C8-8B50FB4EC70E,0x7000,0x20000)"
363  gEmbeddedTokenSpaceGuid.PcdSdBootDevicePath|L"VenHw(0D51905B-B77E-452A-A2C0-ECA0CC8D514A,00E023F70000000000)/SD(0x0)"
364
365  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|1
366
367################################################################################
368#
369# Components Section - list of all EDK II Modules needed by this Platform
370#
371################################################################################
372[Components.common]
373  #
374  # PEI Phase modules
375  #
376  ArmPlatformPkg/PrePi/PeiUniCore.inf
377
378  #
379  # DXE
380  #
381  MdeModulePkg/Core/Dxe/DxeMain.inf {
382    <LibraryClasses>
383      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
384      NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
385  }
386
387  #
388  # Architectural Protocols
389  #
390  ArmPkg/Drivers/CpuDxe/CpuDxe.inf
391  MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
392  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
393  MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
394  EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
395  EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
396  EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
397  EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
398
399  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
400  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
401  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
402  MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
403
404  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
405  MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
406
407  ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
408  ArmPkg/Drivers/TimerDxe/TimerDxe.inf
409
410  MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
411
412  MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
413
414  #
415  # GPIO
416  #
417  ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe.inf
418  OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyGpioDxe/HiKeyGpioDxe.inf
419
420  #
421  # Virtual Keyboard
422  #
423  OpenPlatformPkg/Drivers/Keyboard/VirtualKeyboardDxe/VirtualKeyboardDxe.inf
424
425  #
426  # MMC/SD
427  #
428  OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyMmcDxe/HiKeyMmcDxe.inf
429  MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
430  OpenPlatformPkg/Drivers/SdMmc/DwMmcHcDxe/DwMmcHcDxe.inf
431  MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
432  MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
433
434  OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyDxe/HiKeyDxe.inf
435
436  #
437  # USB Host Support
438  #
439  MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
440
441  #
442  # USB Mass Storage Support
443  #
444  MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
445
446  #
447  # USB Peripheral Support
448  #
449  EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
450  OpenPlatformPkg/Drivers/Usb/DwUsbDxe/DwUsbDxe.inf
451  OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf
452  OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyUsbDxe/HiKeyUsbDxe.inf
453
454
455  #
456  # Fastboot
457  #
458  EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf {
459    <LibraryClasses>
460      AbootimgLib|EmbeddedPkg/Library/AbootimgLib/AbootimgLib.inf
461      BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
462      ZLib|EmbeddedPkg/Library/ZLib/ZLib.inf
463  }
464
465  #
466  # Android Loader
467  #
468  EmbeddedPkg/Application/AndroidBoot/AndroidBootApp.inf {
469    <LibraryClasses>
470      AbootimgLib|EmbeddedPkg/Library/AbootimgLib/AbootimgLib.inf
471      BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
472      ZLib|EmbeddedPkg/Library/ZLib/ZLib.inf
473  }
474
475  #
476  # UEFI Network Stack
477  #
478  MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
479  MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
480  MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
481  MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
482  MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
483  MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
484  MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
485  MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
486  MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
487
488  #
489  # AX88772 Ethernet Driver
490  #
491  OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b.inf
492
493  #
494  # FAT filesystem + GPT/MBR partitioning
495  #
496  MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
497  MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
498  MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
499  FatPkg/EnhancedFatDxe/Fat.inf
500
501  # DTB
502  EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf
503
504  #
505  # Bds
506  #
507  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
508  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
509  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
510  MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
511  MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
512  MdeModulePkg/Application/UiApp/UiApp.inf {
513    <LibraryClasses>
514      NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
515      NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
516      NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
517      PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
518  }
519  ShellPkg/Application/Shell/Shell.inf {
520    <LibraryClasses>
521      ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
522      NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
523      NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
524      NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
525      NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
526      NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
527      NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
528      NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
529      NULL|ShellPkg/Library/UefiShellTftpCommandLib/UefiShellTftpCommandLib.inf
530      HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
531      PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
532      BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
533    <PcdsFixedAtBuild>
534      gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
535      gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
536      gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
537  }
538