]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc
ArmPlatformPkg: Change the memory model for the ARM Platform components
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-CTA9x4.dsc
CommitLineData
1d5d0ae9 1#
2# Copyright (c) 2011, ARM 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#
16# Defines Section - statements that will be processed to create a Makefile.
17#
18################################################################################
19[Defines]
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
26!else
27 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4
28!endif
29 SUPPORTED_ARCHITECTURES = ARM
30 BUILD_TARGETS = DEBUG|RELEASE
31 SKUID_IDENTIFIER = DEFAULT
32 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf
33
34[LibraryClasses.common]
4d900a63 35!if $(TARGET) == RELEASE
1d5d0ae9 36 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
37 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
38!else
39 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
40 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
41# UncachedMemoryAllocationLib|ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
42!endif
a54d2109 43 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
1d5d0ae9 44
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
49
50 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
51 BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf
52 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
53
54 EfiResetSystemLib|ArmPlatformPkg/ArmVExpressPkg/Library/ResetSystemLib/ResetSystemLib.inf
55 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
56 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
57
58 EblCmdLib|ArmPlatformPkg/Library/EblCmdLib/EblCmdLib.inf
59 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
60 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
61
936eff09 62 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
63 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
64
1d5d0ae9 65 #
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.
70 #
71# PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
72 PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
73# PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
74
75 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
76 DefaultExceptioHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
77
78 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
79
80 RealTimeClockLib|ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.inf
81
82 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
83
84 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
85 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
86
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
92
93 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
94 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
95 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
96
8e06b586 97 # ARM PL310 L2 Cache Driver
5cc45b70 98 L2X0CacheLib|ArmPlatformPkg/Drivers/PL310L2Cache/PL310L2CacheSec.inf
e7f7105b 99 # ARM PL354 SMC Driver
5cc45b70 100 PL35xSmcLib|ArmPlatformPkg/Drivers/PL35xSmc/PL35xSmc.inf
1d5d0ae9 101 # ARM PL341 DMC Driver
5cc45b70 102 PL341DmcLib|ArmPlatformPkg/Drivers/PL34xDmc/PL341Dmc.inf
1d5d0ae9 103 # ARM PL301 Axi Driver
5cc45b70 104 PL301AxiLib|ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf
9dcfb8e5 105 # ARM PL011 UART Driver
106 PL011UartLib|ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.inf
d5e12da4 107
7b80d1a3 108 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
d5e12da4 109 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
7d0f2f23 110 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf
1d5d0ae9 111
112#
113# Assume everything is fixed at build
114#
115 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
116
117 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
118
119 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
120
121 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
122 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
123
124 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
125
126 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
127 DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
128 #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
129
130 SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
131 TimerLib|ArmPlatformPkg/Library/SP804TimerLib/SP804TimerLib.inf
132 DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
133
134 BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
135
136[LibraryClasses.common.SEC]
137 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLibSec.inf
1d5d0ae9 138 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressSecLib.inf
a6caee65 139 DebugSecExtraActionLib|ArmPlatformPkg/Library/DebugSecExtraActionLib/DebugSecExtraActionLib.inf
1d5d0ae9 140
9d074e73 141 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
142
1d5d0ae9 143 # 1/123 faster than Stm or Vstm version
144 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
145
146 # Uncomment to turn on GDB stub in SEC.
147 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
148
1d5d0ae9 149 # ARM PL390 General Interrupt Driver in Secure and Non-secure
150 PL390GicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSec.inf
151 PL390GicNonSecLib|ArmPkg/Drivers/PL390Gic/PL390GicNonSec.inf
64e03133 152
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
163!endif
1d5d0ae9 164
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
1d5d0ae9 178 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
179 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
180
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
1d5d0ae9 194 PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
195 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
196 ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
197
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
1d5d0ae9 206 PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
1d5d0ae9 207
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
214
1d5d0ae9 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
9d074e73 220 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
1d5d0ae9 221
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
228
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
1d5d0ae9 234
235[LibraryClasses.ARM]
236 #
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.
240 #
241 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
242
243[BuildOptions]
76bc1743 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
1d5d0ae9 248
76bc1743 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
1d5d0ae9 252
253
254################################################################################
255#
256# Pcd Section - list of all EDK II PCD Entries defined by this Platform
257#
258################################################################################
259
260[PcdsFeatureFlag.common]
261 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
262 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
263 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
264 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
265
266 #
267 # Control what commands are supported from the UI
268 # Turn these on and off to add features or save size
269 #
270 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
271 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
272 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
273 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
274 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
275 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
276 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
277
278 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
279
280 # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
281 gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
282
283 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
284 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
285
286 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
287
a6caee65 288!if $(EDK2_ARMVE_STANDALONE) == 1
289 gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE
290!else
291 gArmPlatformTokenSpaceGuid.PcdStandalone|FALSE
292 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
293 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
1d5d0ae9 294!endif
295
a6caee65 296!if $(EDK2_SKIP_PEICORE) == 1
297 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
298 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
299!endif
936eff09 300
301 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
302 # It could be set FALSE to save size.
303 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
304
1d5d0ae9 305[PcdsFixedAtBuild.common]
ea46ebbe 306 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
307
e6b3b508 308 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress"
1d5d0ae9 309 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
310 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
311 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
312 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
313 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
314 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
315 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
316 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
317 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
318 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
319
320# DEBUG_ASSERT_ENABLED 0x01
321# DEBUG_PRINT_ENABLED 0x02
322# DEBUG_CODE_ENABLED 0x04
323# CLEAR_MEMORY_ENABLED 0x08
324# ASSERT_BREAKPOINT_ENABLED 0x10
325# ASSERT_DEADLOOP_ENABLED 0x20
4d900a63 326!if $(TARGET) == RELEASE
327 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
328!else
1d5d0ae9 329 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
4d900a63 330!endif
1d5d0ae9 331
332# DEBUG_INIT 0x00000001 // Initialization
333# DEBUG_WARN 0x00000002 // Warnings
334# DEBUG_LOAD 0x00000004 // Load events
335# DEBUG_FS 0x00000008 // EFI File system
336# DEBUG_POOL 0x00000010 // Alloc & Free's
337# DEBUG_PAGE 0x00000020 // Alloc & Free's
338# DEBUG_INFO 0x00000040 // Verbose
339# DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
340# DEBUG_VARIABLE 0x00000100 // Variable
341# DEBUG_BM 0x00000400 // Boot Manager
342# DEBUG_BLKIO 0x00001000 // BlkIo Driver
343# DEBUG_NET 0x00004000 // SNI Driver
344# DEBUG_UNDI 0x00010000 // UNDI Driver
345# DEBUG_LOADFILE 0x00020000 // UNDI Driver
346# DEBUG_EVENT 0x00080000 // Event messages
347# DEBUG_ERROR 0x80000000 // Error
348 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
349
350 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
351
6acb379f 352 #
353 # NV Storage PCDs. Use base of 0x43FC0000 for NOR0 or 0x47FC0000 for NOR1 on Versatile Express
354 #
355 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x47FC0000
356 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
357 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x47FD0000
358 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
359 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x47FE0000
360 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
361
1d5d0ae9 362 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
363 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
364 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
365
366#
367# Optional feature to help prevent EFI memory map fragments
368# Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
369# Values are in EFI Pages (4K). DXE Core will make sure that
370# at least this much of each type of memory can be allocated
371# from a single memory range. This way you only end up with
372# maximum of two fragements for each type in the memory map
373# (the memory used, and the free memory that was prereserved
374# but not used).
375#
376 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
377 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
378 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
379 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|50
380 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|20
381 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
382 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000
383 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
384 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
385
386 gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|1
d269095b 387 gArmPlatformTokenSpaceGuid.PcdMPCoreMaxCores|4
1d5d0ae9 388 gArmTokenSpaceGuid.PcdVFPEnabled|1
389
390 # Stacks for MPCores in Secure World
391 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x49E00000 # Top of SEC Stack for Secure World
392 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecStackSize|0x2000 # Stack for each of the 4 CPU cores
393
394 # Stacks for MPCores in Monitor Mode
395 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x49D00000 # Top of SEC Stack for Monitor World
396 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x2000 # Stack for each of the 4 CPU cores
397
398 # Stacks for MPCores in Normal World
399 gArmPlatformTokenSpaceGuid.PcdCPUCoresNonSecStackBase|0x48000000 # Top of SEC Stack for Normal World
400 gArmPlatformTokenSpaceGuid.PcdCPUCoresNonSecStackSize|0x00020000 # Stack for each of the 4 CPU cores
1d5d0ae9 401
964680c1 402 # System Memory (1GB)
403 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x60000000
404 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
5cc45b70 405
1d5d0ae9 406 #
407 # ARM Pcds
408 #
409 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
5cc45b70 410
1d5d0ae9 411 #
412 # ARM PrimeCell
413 #
1d5d0ae9 414
5cc45b70 415 ## SP804 Timer
416 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
417 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
418 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34
419 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000
420 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10012020
421 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10012000
422
423 ## SP805 Watchdog - Motherboard Watchdog
424 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1000F000
425 ## SP805 Watchdog - CoreTile Watchdog
426 #gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x100E5000
427
428 ## PL011 - Serial Terminal
9dcfb8e5 429 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x10009000
430 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
5cc45b70 431
432 ## PL031 RealTimeClock
433 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x10017000
434
435 ## PL111 Lcd
436 # PL111 CoreTile or Tuscan Standalone controller
437 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x10020000
438 # PL111 Versatile Express Motherboard controller
439 #gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1001F000
440
441 ## PL180 MMC/SD card controller
442 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x10000048
443 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x10005000
9dcfb8e5 444
1d5d0ae9 445 #
446 # ARM PL390 General Interrupt Controller
447 #
448 gArmTokenSpaceGuid.PcdGicDistributorBase|0x1e001000
449 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x1e000100
450
451 #
452 # ARM OS Loader
453 #
454 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
455 gArmTokenSpaceGuid.PcdArmMachineType|2272
ea46ebbe 456 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"NorFlash"
457 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x46000000,0x46400000)"
cb5bf269 458 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""
ea46ebbe 459 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1
1d5d0ae9 460
936eff09 461 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
462 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
463 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
464 gArmPlatformTokenSpaceGuid.PcdPlatformBootTimeOut|10
465
1d5d0ae9 466 #
467 # ARM L2x0 PCDs
468 #
469 gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000
470
471 #
472 # ARM VE MP Core Mailbox
473 #
474 gArmTokenSpaceGuid.PcdMPCoreMailboxSetAddress|0x10000030
475 gArmTokenSpaceGuid.PcdMPCoreMailboxGetAddress|0x10000030
476 gArmTokenSpaceGuid.PcdMPCoreMailboxClearAddress|0x10000034
477 gArmTokenSpaceGuid.PcdMPCoreMailboxClearValue|0xFFFFFFFF
478
479
480################################################################################
481#
482# Components Section - list of all EDK II Modules needed by this Platform
483#
484################################################################################
485[Components.common]
486
487#
488# SEC
489#
490 ArmPlatformPkg/Sec/Sec.inf
1d5d0ae9 491
492#
493# PEI Phase modules
494#
64e03133 495!if $(EDK2_SKIP_PEICORE) == 1
496 ArmPlatformPkg/PrePi/PeiMPCore.inf {
497 <LibraryClasses>
498 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLib.inf
499 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf
500 }
501!else
a6caee65 502 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
503 <LibraryClasses>
504 PL390GicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicNonSec.inf
505 }
1d5d0ae9 506 MdeModulePkg/Core/Pei/PeiMain.inf
507 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
508 <LibraryClasses>
509 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
510 }
64e03133 511 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
512 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
1d5d0ae9 513 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
514 Nt32Pkg/BootModePei/BootModePei.inf
515 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
516 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
517 <LibraryClasses>
518 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
519 }
64e03133 520!endif
1d5d0ae9 521
522#
523# DXE
524#
525 MdeModulePkg/Core/Dxe/DxeMain.inf {
526 <LibraryClasses>
527 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
528 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
529 }
530
531 #
532 # Architectural Protocols
533 #
534 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
535 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
536 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
1d5d0ae9 537 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
538 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
539 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
9d074e73 540 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
1d5d0ae9 541 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
542 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
543 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
936eff09 544
545 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
546 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
547 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
548 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
549 EmbeddedPkg/SerialDxe/SerialDxe.inf
1d5d0ae9 550
551 ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
d5e12da4 552 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
1d5d0ae9 553 ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
7d0f2f23 554 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
33e7c2ab 555 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
1d5d0ae9 556
557 #
558 # Semi-hosting filesystem
559 #
560 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
561
562 #
563 # Multimedia Card Interface
564 #
ce73d60a 565 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
5cc45b70 566 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
1d5d0ae9 567
568 #
569 # FAT filesystem + GPT/MBR partitioning
570 #
571 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
572 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
573 FatPkg/EnhancedFatDxe/Fat.inf
574 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
575
576 #
577 # Application
578 #
579 EmbeddedPkg/Ebl/Ebl.inf
580
581 #
582 # Bds
583 #
584 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
585 ArmPlatformPkg/Bds/Bds.inf