]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc
ArmPlatformPkg/ArmVExpressPkg: CTA9x4: Default to EDK2_ARMVE_STANDALONE=1
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-CTA9x4.dsc
CommitLineData
66f530ed 1#\r
cae32cfe 2# Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
66f530ed 3# \r
4# This program and the accompanying materials \r
5# are licensed and made available under the terms and conditions of the BSD License \r
6# which accompanies this distribution. The full text of the license may be found at \r
7# http://opensource.org/licenses/bsd-license.php \r
8#\r
9# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11#\r
12#\r
13\r
14################################################################################\r
15#\r
16# Defines Section - statements that will be processed to create a Makefile.\r
17#\r
18################################################################################\r
19[Defines]\r
20 PLATFORM_NAME = ArmVExpressPkg-CTA9x4\r
21 PLATFORM_GUID = eb2bd5ff-2379-4a06-9c12-db905cdee9ea \r
22 PLATFORM_VERSION = 0.1\r
23 DSC_SPECIFICATION = 0x00010005\r
66f530ed 24 SUPPORTED_ARCHITECTURES = ARM\r
25 BUILD_TARGETS = DEBUG|RELEASE\r
26 SKUID_IDENTIFIER = DEFAULT\r
27 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf\r
28\r
cae32cfe
RH
29 # Reflashing the NOR Flash is a slow process. To ease the development on ARM Versatile Express Cortex-A9x4,\r
30 # the UEFI firmware can be built to be started from DRAM (instead of NOR Flash).\r
31 # The engineer only needs to copy the new binary in DRAM with the hardware debugger and execute from there.\r
32!ifndef EDK2_ARMVE_STANDALONE\r
33 DEFINE EDK2_ARMVE_STANDALONE=1\r
34!endif\r
35!if $(EDK2_ARMVE_STANDALONE) == 1\r
36 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4-Standalone\r
37!else\r
38 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4\r
39!endif\r
40\r
66f530ed 41!include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc\r
42\r
43[LibraryClasses.common]\r
44 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r
45 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Lib.inf\r
46 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf\r
65acd8e7 47 ArmTrustZoneLib|ArmPlatformPkg/Drivers/ArmTrustZone/ArmTrustZone.inf\r
66f530ed 48\r
49 # ARM PL310 L2 Cache Driver\r
50 L2X0CacheLib|ArmPlatformPkg/Drivers/PL310L2Cache/PL310L2CacheSec.inf\r
51 # ARM PL354 SMC Driver\r
52 PL35xSmcLib|ArmPlatformPkg/Drivers/PL35xSmc/PL35xSmc.inf\r
53 # ARM PL341 DMC Driver\r
54 PL341DmcLib|ArmPlatformPkg/Drivers/PL34xDmc/PL341Dmc.inf\r
55 # ARM PL301 Axi Driver\r
56 PL301AxiLib|ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf\r
57 \r
58 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf\r
59 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf\r
60 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf\r
61\r
62[LibraryClasses.common.SEC]\r
63 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf\r
e314d564 64 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibCTA9x4/ArmVExpressSecLib.inf\r
65 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLibSec.inf\r
66f530ed 66\r
67 # Uncomment to turn on GDB stub in SEC. \r
68 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf\r
66f530ed 69\r
70[BuildOptions]\r
71 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A9 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4\r
72\r
73 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4\r
74 \r
81be6e07 75 XCODE:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4\r
66f530ed 76\r
77################################################################################\r
78#\r
79# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
80#\r
81################################################################################\r
82\r
83[PcdsFeatureFlag.common]\r
84!ifdef $(EDK2_ARMVE_STANDALONE)\r
85 gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE\r
86!else\r
87 gArmPlatformTokenSpaceGuid.PcdStandalone|FALSE\r
88 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE\r
89 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE\r
90!endif\r
91\r
92!ifdef $(EDK2_SKIP_PEICORE)\r
93 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE\r
94 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE\r
95!endif\r
96 \r
97 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r
98 # It could be set FALSE to save size.\r
99 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
100\r
101[PcdsFixedAtBuild.common]\r
102 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express" \r
103 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress"\r
104\r
695df8ba 105 gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r
106\r
66f530ed 107 #\r
108 # NV Storage PCDs. Use base of 0x43FC0000 for NOR0 or 0x47FC0000 for NOR1 on Versatile Express\r
109 #\r
110 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x47FC0000\r
111 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000\r
112 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x47FD0000\r
113 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000\r
114 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x47FE0000\r
115 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000\r
116\r
117 gArmTokenSpaceGuid.PcdVFPEnabled|1\r
118 \r
119 # Stacks for MPCores in Secure World\r
120 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x49E00000\r
121 # Stacks for MPCores in Monitor Mode\r
122 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x49D00000\r
123 # Stacks for MPCores in Normal World\r
124 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x48000000\r
125\r
126 # System Memory (1GB) \r
127 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x60000000\r
128 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000\r
129 \r
130 #\r
131 # ARM Pcds\r
132 #\r
133 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r
134 \r
135 #\r
136 # ARM PrimeCell\r
137 #\r
138\r
139 ## SP804 Timer\r
140 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000\r
141 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms\r
142 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34\r
143 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000\r
144 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10011020\r
145 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10012020\r
146\r
147 ## SP805 Watchdog - Motherboard Watchdog\r
148 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1000F000\r
149 ## SP805 Watchdog - CoreTile Watchdog\r
150 #gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x100E5000\r
151 \r
152 ## PL011 - Serial Terminal\r
153 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x10009000\r
154 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r
155\r
156 ## PL031 RealTimeClock\r
157 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x10017000\r
158\r
159 ## PL111 Lcd\r
160 # PL111 CoreTile or Tuscan Standalone controller\r
161 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x10020000\r
162 # PL111 Versatile Express Motherboard controller\r
163 #gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1001F000\r
164\r
165 ## PL180 MMC/SD card controller\r
166 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x10000048\r
167 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x10005000\r
168 \r
169 #\r
170 # ARM PL390 General Interrupt Controller\r
171 #\r
172 gArmTokenSpaceGuid.PcdGicDistributorBase|0x1e001000\r
173 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x1e000100\r
174\r
175 #\r
176 # ARM OS Loader\r
177 #\r
178 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux: \r
179 gArmTokenSpaceGuid.PcdArmMachineType|2272\r
180 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"NorFlash"\r
181 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x46000000,0x46400000)"\r
182 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""\r
183 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1\r
184\r
185 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r
186 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r
187 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r
188\r
189 #\r
190 # ARM L2x0 PCDs\r
191 #\r
192 gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000\r
193\r
194################################################################################\r
195#\r
196# Components Section - list of all EDK II Modules needed by this Platform\r
197#\r
198################################################################################\r
199[Components.common]\r
200 \r
201 #\r
202 # SEC\r
203 #\r
f8181c90 204 ArmPlatformPkg/Sec/Sec.inf {\r
205 <LibraryClasses>\r
206 # Use the implementation which set the Secure bits\r
207 ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf\r
208 }\r
66f530ed 209 \r
210 #\r
211 # PEI Phase modules\r
212 #\r
213!ifdef $(EDK2_SKIP_PEICORE)\r
214 ArmPlatformPkg/PrePi/PeiMPCore.inf {\r
215 <LibraryClasses>\r
66f530ed 216 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r
217 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf\r
218 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r
219 }\r
220!else\r
221 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r
222 <LibraryClasses>\r
66f530ed 223 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r
224 }\r
225 MdeModulePkg/Core/Pei/PeiMain.inf\r
226 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
227 <LibraryClasses>\r
228 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
229 }\r
230 ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r
231 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r
232 ArmPkg/Drivers/CpuPei/CpuPei.inf\r
233 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
234 Nt32Pkg/BootModePei/BootModePei.inf\r
235 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
236 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r
237 <LibraryClasses>\r
238 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
239 }\r
240!endif\r
241\r
242 #\r
243 # DXE\r
244 #\r
245 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
246 <LibraryClasses>\r
247 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
248 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
249 }\r
250\r
251 #\r
252 # Architectural Protocols\r
253 #\r
254 ArmPkg/Drivers/CpuDxe/CpuDxe.inf \r
255 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
256 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
257 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
258 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
259 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
260 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf \r
261 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
262 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
263 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
264\r
265 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
266 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
267 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
268 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
269 EmbeddedPkg/SerialDxe/SerialDxe.inf\r
270 \r
271 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
272\r
273 ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf\r
274 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
275 ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf\r
276 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r
277 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r
278\r
279 #\r
e1772adf 280 # Filesystems\r
66f530ed 281 #\r
282 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r
283 \r
284 #\r
285 # Multimedia Card Interface\r
286 #\r
287 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r
288 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r
289 \r
290 #\r
291 # FAT filesystem + GPT/MBR partitioning\r
292 #\r
293 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
294 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
66f530ed 295 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
296\r
66f530ed 297 #\r
298 # Bds\r
299 #\r
300 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
301 ArmPlatformPkg/Bds/Bds.inf\r