]>
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 | |
75f63034 OM |
77 | [PcdsFixedAtBuild.common]\r |
78 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Fixed Virtual Platform"\r | |
79 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ARM-FVP"\r | |
80 | \r | |
81 | # Up to 8 cores on Base models. This works fine if model happens to have less.\r | |
82 | gArmPlatformTokenSpaceGuid.PcdCoreCount|8\r | |
cddd490b | 83 | gArmPlatformTokenSpaceGuid.PcdClusterCount|2\r |
75f63034 OM |
84 | \r |
85 | #\r | |
86 | # NV Storage PCDs. Use base of 0x0C000000 for NOR1\r | |
87 | #\r | |
88 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000\r | |
89 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000\r | |
90 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000\r | |
91 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000\r | |
92 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000\r | |
93 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000\r | |
94 | \r | |
95 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
96 | \r | |
97 | # FVP models can have 2 clusters with 4 cpus each\r | |
98 | # Stacks for MPCores in Secure World\r | |
99 | # Trusted SRAM (DRAM on Foundation model)\r | |
100 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x04000000\r | |
101 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r | |
102 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x800\r | |
103 | \r | |
104 | # Stacks for MPCores in Normal World\r | |
105 | # Non-Trusted SRAM\r | |
106 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000\r | |
107 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
da5ae569 | 108 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x1000\r |
75f63034 | 109 | \r |
cc135144 | 110 | # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)\r |
75f63034 | 111 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r |
cc135144 | 112 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000\r |
75f63034 OM |
113 | \r |
114 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
115 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
116 | \r | |
117 | #\r | |
118 | # ARM Pcds\r | |
119 | #\r | |
120 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
121 | \r | |
122 | ## Trustzone enable (to make the transition from EL3 to NS EL2 in ArmPlatformPkg/Sec)\r | |
123 | gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE\r | |
124 | \r | |
125 | #\r | |
126 | # ARM PrimeCell\r | |
127 | #\r | |
128 | \r | |
129 | ## SP805 Watchdog - Motherboard Watchdog at 24MHz\r | |
130 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000\r | |
131 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogClockFrequencyInHz|24000000\r | |
132 | \r | |
133 | ## PL011 - Serial Terminal\r | |
134 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r | |
135 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
136 | \r | |
137 | ## PL031 RealTimeClock\r | |
138 | gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000\r | |
139 | \r | |
75f63034 OM |
140 | ## PL111 Versatile Express Motherboard controller\r |
141 | gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000\r | |
142 | \r | |
143 | ## PL180 MMC/SD card controller\r | |
144 | gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048\r | |
145 | gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000\r | |
75f63034 OM |
146 | \r |
147 | #\r | |
148 | # ARM General Interrupt Controller\r | |
149 | #\r | |
150 | !ifdef ARM_FVP_LEGACY_GICV2_LOCATION\r | |
151 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r | |
152 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000\r | |
153 | !else\r | |
154 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2f000000\r | |
919697ae | 155 | gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x2f100000\r |
75f63034 OM |
156 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C000000\r |
157 | !endif\r | |
158 | \r | |
159 | #\r | |
160 | # ARM OS Loader\r | |
161 | #\r | |
75f63034 | 162 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"\r |
c14effd7 OM |
163 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"Fv(87940482-FC81-41C3-87E6-399CF85AC8A0)/LinuxLoader.efi"\r |
164 | 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 |
165 | \r |
166 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
167 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r | |
168 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
169 | \r | |
170 | #\r | |
b4a6629f | 171 | # ARM Architectural Timer Frequency\r |
75f63034 | 172 | #\r |
b4a6629f OM |
173 | # Set tick frequency value to 100Mhz\r |
174 | gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r | |
75f63034 | 175 | \r |
04f1a709 RC |
176 | [PcdsDynamicDefault.common]\r |
177 | #\r | |
178 | # The size of a dynamic PCD of the (VOID*) type can not be increased at run\r | |
179 | # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128\r | |
180 | # character "empty" string, to allow to be able to set FDT text device paths\r | |
181 | # up to 128 characters long.\r | |
182 | #\r | |
183 | gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "\r | |
184 | \r | |
75f63034 OM |
185 | ################################################################################\r |
186 | #\r | |
187 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
188 | #\r | |
189 | ################################################################################\r | |
190 | [Components.common]\r | |
191 | \r | |
192 | #\r | |
193 | # SEC\r | |
194 | #\r | |
195 | ArmPlatformPkg/Sec/Sec.inf {\r | |
196 | <LibraryClasses>\r | |
197 | # Use the implementation which set the Secure bits\r | |
198 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r | |
199 | }\r | |
200 | \r | |
201 | #\r | |
202 | # PEI Phase modules\r | |
203 | #\r | |
da5ae569 OM |
204 | !ifdef EDK2_SKIP_PEICORE\r |
205 | # UEFI is placed in RAM by bootloader\r | |
206 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
207 | <LibraryClasses>\r | |
208 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r | |
209 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r | |
da5ae569 OM |
210 | }\r |
211 | !else\r | |
212 | # UEFI lives in FLASH and copies itself to RAM\r | |
e8c75da2 | 213 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf\r |
75f63034 OM |
214 | MdeModulePkg/Core/Pei/PeiMain.inf\r |
215 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
216 | <LibraryClasses>\r | |
217 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
218 | }\r | |
219 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
220 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
221 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
222 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
223 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
224 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
225 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
226 | <LibraryClasses>\r | |
9435a57e | 227 | NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r |
75f63034 | 228 | }\r |
da5ae569 | 229 | !endif\r |
75f63034 OM |
230 | \r |
231 | #\r | |
232 | # DXE\r | |
233 | #\r | |
234 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
235 | <LibraryClasses>\r | |
236 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
237 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
238 | }\r | |
239 | \r | |
240 | #\r | |
241 | # Architectural Protocols\r | |
242 | #\r | |
243 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
244 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
465be78e AB |
245 | !if $(SECURE_BOOT_ENABLE) == TRUE\r |
246 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {\r | |
247 | <LibraryClasses>\r | |
248 | NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r | |
249 | }\r | |
250 | SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r | |
251 | !else\r | |
75f63034 | 252 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r |
465be78e | 253 | !endif\r |
75f63034 | 254 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r |
e820fe36 SZ |
255 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {\r |
256 | <LibraryClasses>\r | |
257 | NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf\r | |
258 | }\r | |
75f63034 OM |
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 | |
921e987b | 269 | MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r |
75f63034 OM |
270 | \r |
271 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
272 | \r | |
273 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r | |
465be78e AB |
274 | !if $(SECURE_BOOT_ENABLE) == TRUE\r |
275 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf\r | |
276 | !else\r | |
75f63034 | 277 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r |
465be78e | 278 | !endif\r |
75f63034 | 279 | ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r |
75f63034 | 280 | ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r |
75f63034 OM |
281 | ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r |
282 | \r | |
283 | #\r | |
284 | # Semi-hosting filesystem\r | |
285 | #\r | |
286 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
287 | \r | |
75f63034 OM |
288 | #\r |
289 | # Multimedia Card Interface\r | |
290 | #\r | |
291 | EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r | |
292 | ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r | |
75f63034 | 293 | \r |
e94784c6 OM |
294 | #\r |
295 | # Platform Driver\r | |
296 | #\r | |
a4ab7df4 | 297 | ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r |
e94784c6 OM |
298 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r |
299 | \r | |
75f63034 OM |
300 | #\r |
301 | # FAT filesystem + GPT/MBR partitioning\r | |
302 | #\r | |
303 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
304 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
305 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
306 | \r | |
307 | #\r | |
308 | # Bds\r | |
309 | #\r | |
310 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
f46ac5fb | 311 | !if $(USE_ARM_BDS) == TRUE\r |
75f63034 | 312 | ArmPlatformPkg/Bds/Bds.inf\r |
f46ac5fb AB |
313 | !else\r |
314 | MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r | |
315 | MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r | |
316 | IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r | |
317 | !endif\r |