]>
Commit | Line | Data |
---|---|---|
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 | \r |
187 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
188 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r | |
189 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
190 | \r | |
191 | #\r | |
b4a6629f | 192 | # ARM Architectural Timer Frequency\r |
75f63034 | 193 | #\r |
b4a6629f OM |
194 | # Set tick frequency value to 100Mhz\r |
195 | gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r | |
75f63034 | 196 | \r |
04f1a709 RC |
197 | [PcdsDynamicDefault.common]\r |
198 | #\r | |
199 | # The size of a dynamic PCD of the (VOID*) type can not be increased at run\r | |
200 | # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128\r | |
201 | # character "empty" string, to allow to be able to set FDT text device paths\r | |
202 | # up to 128 characters long.\r | |
203 | #\r | |
204 | gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "\r | |
205 | \r | |
75f63034 OM |
206 | ################################################################################\r |
207 | #\r | |
208 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
209 | #\r | |
210 | ################################################################################\r | |
211 | [Components.common]\r | |
212 | \r | |
213 | #\r | |
214 | # SEC\r | |
215 | #\r | |
216 | ArmPlatformPkg/Sec/Sec.inf {\r | |
217 | <LibraryClasses>\r | |
218 | # Use the implementation which set the Secure bits\r | |
219 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r | |
220 | }\r | |
221 | \r | |
222 | #\r | |
223 | # PEI Phase modules\r | |
224 | #\r | |
da5ae569 OM |
225 | !ifdef EDK2_SKIP_PEICORE\r |
226 | # UEFI is placed in RAM by bootloader\r | |
227 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
228 | <LibraryClasses>\r | |
229 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r | |
230 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r | |
231 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r | |
232 | }\r | |
233 | !else\r | |
234 | # UEFI lives in FLASH and copies itself to RAM\r | |
75f63034 OM |
235 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r |
236 | <LibraryClasses>\r | |
237 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
238 | }\r | |
239 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
240 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
241 | <LibraryClasses>\r | |
242 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
243 | }\r | |
244 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
245 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
246 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
247 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
248 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
249 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
250 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
251 | <LibraryClasses>\r | |
9435a57e | 252 | NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r |
75f63034 | 253 | }\r |
da5ae569 | 254 | !endif\r |
75f63034 OM |
255 | \r |
256 | #\r | |
257 | # DXE\r | |
258 | #\r | |
259 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
260 | <LibraryClasses>\r | |
261 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
262 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
263 | }\r | |
264 | \r | |
265 | #\r | |
266 | # Architectural Protocols\r | |
267 | #\r | |
268 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
269 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
270 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
271 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
272 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r | |
273 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
274 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r | |
275 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
276 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
277 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
278 | \r | |
279 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
280 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
281 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
282 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
283 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
284 | \r | |
285 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
286 | \r | |
287 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r | |
288 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r | |
289 | ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r | |
290 | !ifndef ARM_FOUNDATION_FVP\r | |
291 | ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r | |
292 | !endif\r | |
293 | ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r | |
294 | \r | |
295 | #\r | |
296 | # Semi-hosting filesystem\r | |
297 | #\r | |
298 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
299 | \r | |
300 | !ifndef ARM_FOUNDATION_FVP\r | |
301 | #\r | |
302 | # Multimedia Card Interface\r | |
303 | #\r | |
304 | EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r | |
305 | ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r | |
306 | !endif\r | |
307 | \r | |
e94784c6 OM |
308 | #\r |
309 | # Platform Driver\r | |
310 | #\r | |
a4ab7df4 | 311 | ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r |
e94784c6 OM |
312 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r |
313 | \r | |
75f63034 OM |
314 | #\r |
315 | # FAT filesystem + GPT/MBR partitioning\r | |
316 | #\r | |
317 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
318 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
319 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
320 | \r | |
321 | #\r | |
322 | # Bds\r | |
323 | #\r | |
324 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
325 | ArmPlatformPkg/Bds/Bds.inf\r |