2 # Copyright (c) 2011, ARM Limited. All rights reserved.
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
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.
14 ################################################################################
16 # Defines Section - statements that will be processed to create a Makefile.
18 ################################################################################
20 PLATFORM_NAME = ArmVExpressPkg-CTA9x4
21 PLATFORM_GUID = eb2bd5ff-2379-4a06-9c12-db905cdee9ea
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 !if $(EDK2_ARMVE_STANDALONE) == 1
25 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4-Standalone
27 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4
29 SUPPORTED_ARCHITECTURES = ARM
30 BUILD_TARGETS = DEBUG|RELEASE
31 SKUID_IDENTIFIER = DEFAULT
32 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf
34 [LibraryClasses.common]
35 !if $(TARGET) == RELEASE
36 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
37 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
39 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
40 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
41 # UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
43 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
45 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLib.inf
46 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf
47 ArmTrustZoneLib|ArmPkg/Library/ArmTrustZoneLib/ArmTrustZoneLib.inf
48 ArmMPCoreMailBoxLib|ArmPkg/Library/ArmMPCoreMailBoxLib/ArmMPCoreMailBoxLib.inf
50 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
51 BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf
52 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
54 EfiResetSystemLib|ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.inf
55 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
56 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
58 EblCmdLib|ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.inf
59 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
60 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
62 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
63 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
66 # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
67 # in the debugger will show load and unload commands for symbols. You can cut and paste this
68 # into the command window to load symbols. We should be able to use a script to do this, but
69 # the version of RVD I have does not support scripts accessing system memory.
71 # PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
72 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
73 # PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
75 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
76 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
78 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
80 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
82 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
84 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
85 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
87 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
88 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
89 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
90 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
91 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
93 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
94 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
95 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
97 # ARM PL310 L2 Cache Driver
98 L2X0CacheLib|ArmPlatformPkg/Drivers/PL310L2Cache/PL310L2CacheSec.inf
99 # ARM PL354 SMC Driver
100 PL35xSmcLib|ArmPlatformPkg/Drivers/PL35xSmc/PL35xSmc.inf
101 # ARM PL341 DMC Driver
102 PL341DmcLib|ArmPlatformPkg/Drivers/PL34xDmc/PL341Dmc.inf
103 # ARM PL301 Axi Driver
104 PL301AxiLib|ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf
105 # ARM PL011 UART Driver
106 PL011UartLib|ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.inf
108 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
109 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
110 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf
113 # Assume everything is fixed at build
115 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
117 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
119 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
121 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
122 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
124 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
126 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
127 DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsOnlyLib/DebugAgentSymbolsOnlyLib.inf
128 #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
130 SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
131 TimerLib|ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.inf
132 DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
134 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
136 [LibraryClasses.common.SEC]
137 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLibSec.inf
138 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressSecLib.inf
139 DebugSecExtraActionLib|ArmPlatformPkg/Library/DebugSecExtraActionLib/DebugSecExtraActionLib.inf
141 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
143 # 1/123 faster than Stm or Vstm version
144 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
146 # Uncomment to turn on GDB stub in SEC.
147 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
149 # ARM PL390 General Interrupt Driver in Secure and Non-secure
150 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf
151 ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
153 !if $(EDK2_SKIP_PEICORE) == 1
154 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
155 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
156 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
157 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
158 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
159 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
160 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
161 PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
162 MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
165 [LibraryClasses.common.PEI_CORE]
166 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
167 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
168 # note: this won't actually work since globals in PEI are not writeable
169 # need to generate an ARM PEI services table pointer implementation
170 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
171 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
172 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
173 PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
174 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
175 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
176 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
177 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
178 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
179 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
181 [LibraryClasses.common.PEIM]
182 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
183 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
184 # note: this won't actually work since globals in PEI are not writeable
185 # need to generate an ARM PEI services table pointer implementation
186 PeiServicesTablePointerLib|ArmPlatformPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
187 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
188 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
189 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
190 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
191 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
192 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
193 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
194 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
195 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
196 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
198 [LibraryClasses.common.DXE_CORE]
199 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
200 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
201 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
202 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
203 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
204 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
205 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
206 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
208 [LibraryClasses.common.DXE_DRIVER]
209 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
210 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
211 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
212 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
213 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
215 [LibraryClasses.common.UEFI_APPLICATION]
216 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
217 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
218 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
219 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
220 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
222 [LibraryClasses.common.UEFI_DRIVER]
223 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
224 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
225 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
226 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
227 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
229 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
230 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
231 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
232 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
233 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
237 # It is not possible to prevent the ARM compiler for generic intrinsic functions.
238 # This library provides the instrinsic functions generate by a given compiler.
239 # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
241 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
244 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A9 --thumb
245 RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A9
246 RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
247 RVCT:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
249 ARMGCC:*_*_ARM_ARCHCC_FLAGS ==
250 ARMGCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
251 ARMGCC:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
253 XCODE:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
255 ################################################################################
257 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
259 ################################################################################
261 [PcdsFeatureFlag.common]
262 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
263 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
264 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
265 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
268 # Control what commands are supported from the UI
269 # Turn these on and off to add features or save size
271 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
272 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
273 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
274 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
275 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
276 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
277 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
279 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
281 # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
282 gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
284 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
285 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
287 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
289 !if $(EDK2_ARMVE_STANDALONE) == 1
290 gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE
292 gArmPlatformTokenSpaceGuid.PcdStandalone|FALSE
293 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
294 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
297 !if $(EDK2_SKIP_PEICORE) == 1
298 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
299 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
302 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
303 # It could be set FALSE to save size.
304 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
306 [PcdsFixedAtBuild.common]
307 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
309 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress"
310 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
311 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
312 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
313 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
314 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
315 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
316 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
317 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
318 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
319 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
321 # DEBUG_ASSERT_ENABLED 0x01
322 # DEBUG_PRINT_ENABLED 0x02
323 # DEBUG_CODE_ENABLED 0x04
324 # CLEAR_MEMORY_ENABLED 0x08
325 # ASSERT_BREAKPOINT_ENABLED 0x10
326 # ASSERT_DEADLOOP_ENABLED 0x20
327 !if $(TARGET) == RELEASE
328 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
330 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
333 # DEBUG_INIT 0x00000001 // Initialization
334 # DEBUG_WARN 0x00000002 // Warnings
335 # DEBUG_LOAD 0x00000004 // Load events
336 # DEBUG_FS 0x00000008 // EFI File system
337 # DEBUG_POOL 0x00000010 // Alloc & Free's
338 # DEBUG_PAGE 0x00000020 // Alloc & Free's
339 # DEBUG_INFO 0x00000040 // Verbose
340 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
341 # DEBUG_VARIABLE 0x00000100 // Variable
342 # DEBUG_BM 0x00000400 // Boot Manager
343 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
344 # DEBUG_NET 0x00004000 // SNI Driver
345 # DEBUG_UNDI 0x00010000 // UNDI Driver
346 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
347 # DEBUG_EVENT 0x00080000 // Event messages
348 # DEBUG_ERROR 0x80000000 // Error
349 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
351 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
354 # NV Storage PCDs. Use base of 0x43FC0000 for NOR0 or 0x47FC0000 for NOR1 on Versatile Express
356 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x47FC0000
357 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
358 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x47FD0000
359 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
360 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x47FE0000
361 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
363 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
364 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
365 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
368 # Optional feature to help prevent EFI memory map fragments
369 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
370 # Values are in EFI Pages (4K). DXE Core will make sure that
371 # at least this much of each type of memory can be allocated
372 # from a single memory range. This way you only end up with
373 # maximum of two fragements for each type in the memory map
374 # (the memory used, and the free memory that was prereserved
377 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
378 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
379 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
380 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|50
381 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|20
382 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
383 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000
384 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
385 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
387 gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|1
388 gArmTokenSpaceGuid.PcdVFPEnabled|1
390 # Stacks for MPCores in Secure World
391 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x49E00000
392 # Stacks for MPCores in Monitor Mode
393 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x49D00000
394 # Stacks for MPCores in Normal World
395 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x48000000
397 # System Memory (1GB)
398 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x60000000
399 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
404 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
411 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
412 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
413 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34
414 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000
415 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10012020
416 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10012000
418 ## SP805 Watchdog - Motherboard Watchdog
419 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1000F000
420 ## SP805 Watchdog - CoreTile Watchdog
421 #gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x100E5000
423 ## PL011 - Serial Terminal
424 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x10009000
425 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
427 ## PL031 RealTimeClock
428 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x10017000
431 # PL111 CoreTile or Tuscan Standalone controller
432 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x10020000
433 # PL111 Versatile Express Motherboard controller
434 #gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1001F000
436 ## PL180 MMC/SD card controller
437 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x10000048
438 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x10005000
441 # ARM PL390 General Interrupt Controller
443 gArmTokenSpaceGuid.PcdGicDistributorBase|0x1e001000
444 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x1e000100
449 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
450 gArmTokenSpaceGuid.PcdArmMachineType|2272
451 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"NorFlash"
452 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x46000000,0x46400000)"
453 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""
454 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1
456 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
457 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
458 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
459 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|10
464 gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000
467 # ARM VE MP Core Mailbox
469 gArmTokenSpaceGuid.PcdMPCoreMailboxSetAddress|0x10000030
470 gArmTokenSpaceGuid.PcdMPCoreMailboxGetAddress|0x10000030
471 gArmTokenSpaceGuid.PcdMPCoreMailboxClearAddress|0x10000034
472 gArmTokenSpaceGuid.PcdMPCoreMailboxClearValue|0xFFFFFFFF
475 ################################################################################
477 # Components Section - list of all EDK II Modules needed by this Platform
479 ################################################################################
485 ArmPlatformPkg/Sec/Sec.inf
490 !if $(EDK2_SKIP_PEICORE) == 1
491 ArmPlatformPkg/PrePi/PeiMPCore.inf {
493 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
494 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLib.inf
495 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf
498 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
500 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
502 MdeModulePkg/Core/Pei/PeiMain.inf
503 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
505 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
507 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
508 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
509 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
510 Nt32Pkg/BootModePei/BootModePei.inf
511 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
512 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
514 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
521 MdeModulePkg/Core/Dxe/DxeMain.inf {
523 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
524 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
528 # Architectural Protocols
530 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
531 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
532 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
533 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
534 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
535 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
536 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
537 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
538 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
539 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
541 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
542 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
543 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
544 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
545 EmbeddedPkg/SerialDxe/SerialDxe.inf
547 ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
548 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
549 ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
550 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
551 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
554 # Semi-hosting filesystem
556 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
559 # Multimedia Card Interface
561 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
562 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
565 # FAT filesystem + GPT/MBR partitioning
567 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
568 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
569 FatPkg/EnhancedFatDxe/Fat.inf
570 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
575 EmbeddedPkg/Ebl/Ebl.inf
580 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
581 ArmPlatformPkg/Bds/Bds.inf