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