]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc
ArmPlatformPkg/ArmVExpressDxe: Load FDT into the EFI Configuration Table
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-FVP-AArch64.dsc
CommitLineData
75f63034 1#\r
919697ae 2# Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
75f63034
OM
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 = ArmVExpress-FVP-AArch64\r
21 PLATFORM_GUID = 0de70077-9b3b-43bf-ba38-0ea37d77141b\r
22 PLATFORM_VERSION = 0.1\r
23 DSC_SPECIFICATION = 0x00010005\r
24 OUTPUT_DIRECTORY = Build/ArmVExpress-FVP-AArch64\r
25 SUPPORTED_ARCHITECTURES = AARCH64\r
26 BUILD_TARGETS = DEBUG|RELEASE\r
27 SKUID_IDENTIFIER = DEFAULT\r
28 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.fdf\r
29\r
da5ae569
OM
30!ifndef ARM_FVP_RUN_NORFLASH\r
31 DEFINE EDK2_SKIP_PEICORE=1\r
32!endif\r
33\r
34\r
75f63034
OM
35!include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc\r
36\r
37[LibraryClasses.common]\r
38 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r
39 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf\r
40 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r
41\r
42 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf\r
43 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf\r
44!ifndef ARM_FOUNDATION_FVP\r
45 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf\r
46!endif\r
47\r
48 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf\r
49\r
e94784c6
OM
50 # Virtio Support\r
51 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r
52 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r
53\r
75f63034
OM
54[LibraryClasses.common.SEC]\r
55 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf\r
56 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressSecLib.inf\r
57 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf\r
58\r
04f1a709
RC
59[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]\r
60 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
61\r
75f63034
OM
62[BuildOptions]\r
63 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r
64\r
65\r
66################################################################################\r
67#\r
68# Pcd Section - list of all EDK II PCD Entries defined by this Platform\r
69#\r
70################################################################################\r
71\r
72[PcdsFeatureFlag.common]\r
73\r
74 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r
75 # It could be set FALSE to save size.\r
76 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r
77\r
460e1e0d
OM
78 # Force the UEFI GIC driver to use GICv2 legacy mode. To use\r
79 # GICv3 without GICv2 legacy in UEFI, the ARM Trusted Firmware needs\r
80 # to configure the Non-Secure interrupts in the GIC Redistributors\r
81 # which is not supported at the moment.\r
82 gArmTokenSpaceGuid.PcdArmGicV3WithV2Legacy|TRUE\r
04f1a709
RC
83 #\r
84 # FDT installation : enable the development specific features\r
85 #\r
86 gEmbeddedTokenSpaceGuid.PcdOverridePlatformFdt|TRUE\r
460e1e0d 87\r
75f63034
OM
88[PcdsFixedAtBuild.common]\r
89 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Fixed Virtual Platform"\r
90 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ARM-FVP"\r
91\r
cddd490b 92!ifndef ARM_FOUNDATION_FVP\r
75f63034
OM
93 # Up to 8 cores on Base models. This works fine if model happens to have less.\r
94 gArmPlatformTokenSpaceGuid.PcdCoreCount|8\r
cddd490b
OM
95 gArmPlatformTokenSpaceGuid.PcdClusterCount|2\r
96!else\r
97 # Up to 4 cores on Foundation models. This works fine if model happens to have less.\r
98 gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r
99!endif\r
75f63034
OM
100\r
101 #\r
102 # NV Storage PCDs. Use base of 0x0C000000 for NOR1\r
103 #\r
104 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000\r
105 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000\r
106 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000\r
107 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000\r
108 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000\r
109 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000\r
110\r
111 gArmTokenSpaceGuid.PcdVFPEnabled|1\r
112\r
113 # FVP models can have 2 clusters with 4 cpus each\r
114 # Stacks for MPCores in Secure World\r
115 # Trusted SRAM (DRAM on Foundation model)\r
116 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x04000000\r
117 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r
118 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x800\r
119\r
120 # Stacks for MPCores in Normal World\r
121 # Non-Trusted SRAM\r
122 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000\r
123 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r
da5ae569 124 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x1000\r
75f63034 125\r
cc135144 126 # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)\r
75f63034 127 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r
cc135144 128 gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000\r
75f63034
OM
129\r
130 # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r
131 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r
132\r
133 #\r
134 # ARM Pcds\r
135 #\r
136 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r
137\r
138 ## Trustzone enable (to make the transition from EL3 to NS EL2 in ArmPlatformPkg/Sec)\r
139 gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE\r
140\r
141 #\r
142 # ARM PrimeCell\r
143 #\r
144\r
145 ## SP805 Watchdog - Motherboard Watchdog at 24MHz\r
146 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000\r
147 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogClockFrequencyInHz|24000000\r
148\r
149 ## PL011 - Serial Terminal\r
150 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r
151 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r
152\r
153 ## PL031 RealTimeClock\r
154 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000\r
155\r
156!ifndef ARM_FOUNDATION_FVP\r
157 ## PL111 Versatile Express Motherboard controller\r
158 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000\r
159\r
160 ## PL180 MMC/SD card controller\r
161 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048\r
162 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000\r
163!endif\r
164\r
165 #\r
166 # ARM General Interrupt Controller\r
167 #\r
168!ifdef ARM_FVP_LEGACY_GICV2_LOCATION\r
169 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r
170 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000\r
171!else\r
172 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2f000000\r
919697ae 173 gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x2f100000\r
75f63034
OM
174 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C000000\r
175!endif\r
176\r
177 #\r
178 # ARM OS Loader\r
179 #\r
75f63034
OM
180 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"\r
181 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image"\r
182 gArmPlatformTokenSpaceGuid.PcdDefaultBootInitrdPath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/filesystem.cpio.gz"\r
b097a180
OM
183 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|L"console=ttyAMA0 earlycon=pl011,0x1c090000 debug user_debug=31 loglevel=9"\r
184 # Use EFI Stub\r
185 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0\r
75f63034
OM
186 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/fdt.dtb"\r
187\r
188 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r
189 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r
190 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r
191\r
192 #\r
b4a6629f 193 # ARM Architectural Timer Frequency\r
75f63034 194 #\r
b4a6629f
OM
195 # Set tick frequency value to 100Mhz\r
196 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r
75f63034 197\r
04f1a709
RC
198[PcdsDynamicDefault.common]\r
199 #\r
200 # The size of a dynamic PCD of the (VOID*) type can not be increased at run\r
201 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128\r
202 # character "empty" string, to allow to be able to set FDT text device paths\r
203 # up to 128 characters long.\r
204 #\r
205 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "\r
206\r
75f63034
OM
207################################################################################\r
208#\r
209# Components Section - list of all EDK II Modules needed by this Platform\r
210#\r
211################################################################################\r
212[Components.common]\r
213\r
214 #\r
215 # SEC\r
216 #\r
217 ArmPlatformPkg/Sec/Sec.inf {\r
218 <LibraryClasses>\r
219 # Use the implementation which set the Secure bits\r
220 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r
221 }\r
222\r
223 #\r
224 # PEI Phase modules\r
225 #\r
da5ae569
OM
226!ifdef EDK2_SKIP_PEICORE\r
227 # UEFI is placed in RAM by bootloader\r
228 ArmPlatformPkg/PrePi/PeiMPCore.inf {\r
229 <LibraryClasses>\r
230 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r
231 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r
232 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r
233 }\r
234!else\r
235 # UEFI lives in FLASH and copies itself to RAM\r
75f63034
OM
236 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r
237 <LibraryClasses>\r
238 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r
239 }\r
240 MdeModulePkg/Core/Pei/PeiMain.inf\r
241 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r
242 <LibraryClasses>\r
243 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
244 }\r
245 ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r
246 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r
247 ArmPkg/Drivers/CpuPei/CpuPei.inf\r
248 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r
249 Nt32Pkg/BootModePei/BootModePei.inf\r
250 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r
251 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r
252 <LibraryClasses>\r
253 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
254 }\r
da5ae569 255!endif\r
75f63034
OM
256\r
257 #\r
258 # DXE\r
259 #\r
260 MdeModulePkg/Core/Dxe/DxeMain.inf {\r
261 <LibraryClasses>\r
262 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
263 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r
264 }\r
265\r
266 #\r
267 # Architectural Protocols\r
268 #\r
269 ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
270 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
271 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
272 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
273 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r
274 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r
275 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
276 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r
277 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
278 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
279\r
280 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
281 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r
282 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r
283 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
284 EmbeddedPkg/SerialDxe/SerialDxe.inf\r
285\r
286 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
287\r
288 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
289 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r
290 ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
291!ifndef ARM_FOUNDATION_FVP\r
292 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r
293!endif\r
294 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r
295\r
296 #\r
297 # Semi-hosting filesystem\r
298 #\r
299 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r
300\r
301!ifndef ARM_FOUNDATION_FVP\r
302 #\r
303 # Multimedia Card Interface\r
304 #\r
305 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r
306 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r
307!endif\r
308\r
e94784c6
OM
309 #\r
310 # Platform Driver\r
311 #\r
a4ab7df4 312 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r
e94784c6
OM
313 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r
314\r
75f63034
OM
315 #\r
316 # FAT filesystem + GPT/MBR partitioning\r
317 #\r
318 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
319 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
320 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
321\r
322 #\r
323 # Bds\r
324 #\r
325 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
326 ArmPlatformPkg/Bds/Bds.inf\r