]>
Commit | Line | Data |
---|---|---|
75f63034 | 1 | #\r |
cddd490b | 2 | # Copyright (c) 2011-2014, 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 | |
59 | [BuildOptions]\r | |
60 | GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
61 | \r | |
62 | \r | |
63 | ################################################################################\r | |
64 | #\r | |
65 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform\r | |
66 | #\r | |
67 | ################################################################################\r | |
68 | \r | |
69 | [PcdsFeatureFlag.common]\r | |
70 | \r | |
71 | ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r | |
72 | # It could be set FALSE to save size.\r | |
73 | gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r | |
74 | \r | |
75f63034 OM |
75 | [PcdsFixedAtBuild.common]\r |
76 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Fixed Virtual Platform"\r | |
77 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ARM-FVP"\r | |
78 | \r | |
cddd490b | 79 | !ifndef ARM_FOUNDATION_FVP\r |
75f63034 OM |
80 | # Up to 8 cores on Base models. This works fine if model happens to have less.\r |
81 | gArmPlatformTokenSpaceGuid.PcdCoreCount|8\r | |
cddd490b OM |
82 | gArmPlatformTokenSpaceGuid.PcdClusterCount|2\r |
83 | !else\r | |
84 | # Up to 4 cores on Foundation models. This works fine if model happens to have less.\r | |
85 | gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r | |
86 | !endif\r | |
75f63034 OM |
87 | \r |
88 | #\r | |
89 | # NV Storage PCDs. Use base of 0x0C000000 for NOR1\r | |
90 | #\r | |
91 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000\r | |
92 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000\r | |
93 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000\r | |
94 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000\r | |
95 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000\r | |
96 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000\r | |
97 | \r | |
98 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
99 | \r | |
100 | # FVP models can have 2 clusters with 4 cpus each\r | |
101 | # Stacks for MPCores in Secure World\r | |
102 | # Trusted SRAM (DRAM on Foundation model)\r | |
103 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x04000000\r | |
104 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r | |
105 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x800\r | |
106 | \r | |
107 | # Stacks for MPCores in Normal World\r | |
108 | # Non-Trusted SRAM\r | |
109 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000\r | |
110 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
da5ae569 | 111 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x1000\r |
75f63034 | 112 | \r |
cc135144 | 113 | # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)\r |
75f63034 | 114 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r |
cc135144 | 115 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000\r |
75f63034 OM |
116 | \r |
117 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
118 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
119 | \r | |
120 | #\r | |
121 | # ARM Pcds\r | |
122 | #\r | |
123 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
124 | \r | |
125 | ## Trustzone enable (to make the transition from EL3 to NS EL2 in ArmPlatformPkg/Sec)\r | |
126 | gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE\r | |
127 | \r | |
128 | #\r | |
129 | # ARM PrimeCell\r | |
130 | #\r | |
131 | \r | |
132 | ## SP805 Watchdog - Motherboard Watchdog at 24MHz\r | |
133 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000\r | |
134 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogClockFrequencyInHz|24000000\r | |
135 | \r | |
136 | ## PL011 - Serial Terminal\r | |
137 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r | |
138 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
139 | \r | |
140 | ## PL031 RealTimeClock\r | |
141 | gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000\r | |
142 | \r | |
143 | !ifndef ARM_FOUNDATION_FVP\r | |
144 | ## PL111 Versatile Express Motherboard controller\r | |
145 | gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000\r | |
146 | \r | |
147 | ## PL180 MMC/SD card controller\r | |
148 | gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048\r | |
149 | gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000\r | |
150 | !endif\r | |
151 | \r | |
152 | #\r | |
153 | # ARM General Interrupt Controller\r | |
154 | #\r | |
155 | !ifdef ARM_FVP_LEGACY_GICV2_LOCATION\r | |
156 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r | |
157 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000\r | |
158 | !else\r | |
159 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2f000000\r | |
160 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C000000\r | |
161 | !endif\r | |
162 | \r | |
163 | #\r | |
164 | # ARM OS Loader\r | |
165 | #\r | |
166 | # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:\r | |
167 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"\r | |
168 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image"\r | |
169 | gArmPlatformTokenSpaceGuid.PcdDefaultBootInitrdPath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/filesystem.cpio.gz"\r | |
170 | gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0 earlyprintk=pl011,0x1c090000 debug user_debug=31 loglevel=9"\r | |
171 | gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2\r | |
172 | gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/fdt.dtb"\r | |
173 | \r | |
174 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
175 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r | |
176 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
177 | \r | |
178 | #\r | |
b4a6629f | 179 | # ARM Architectural Timer Frequency\r |
75f63034 | 180 | #\r |
b4a6629f OM |
181 | # Set tick frequency value to 100Mhz\r |
182 | gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000\r | |
75f63034 OM |
183 | \r |
184 | ################################################################################\r | |
185 | #\r | |
186 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
187 | #\r | |
188 | ################################################################################\r | |
189 | [Components.common]\r | |
190 | \r | |
191 | #\r | |
192 | # SEC\r | |
193 | #\r | |
194 | ArmPlatformPkg/Sec/Sec.inf {\r | |
195 | <LibraryClasses>\r | |
196 | # Use the implementation which set the Secure bits\r | |
197 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r | |
198 | }\r | |
199 | \r | |
200 | #\r | |
201 | # PEI Phase modules\r | |
202 | #\r | |
da5ae569 OM |
203 | !ifdef EDK2_SKIP_PEICORE\r |
204 | # UEFI is placed in RAM by bootloader\r | |
205 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
206 | <LibraryClasses>\r | |
207 | ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf\r | |
208 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r | |
209 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r | |
210 | }\r | |
211 | !else\r | |
212 | # UEFI lives in FLASH and copies itself to RAM\r | |
75f63034 OM |
213 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r |
214 | <LibraryClasses>\r | |
215 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
216 | }\r | |
217 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
218 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
219 | <LibraryClasses>\r | |
220 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
221 | }\r | |
222 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
223 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
224 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
225 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
226 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
227 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
228 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
229 | <LibraryClasses>\r | |
230 | NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r | |
231 | }\r | |
da5ae569 | 232 | !endif\r |
75f63034 OM |
233 | \r |
234 | #\r | |
235 | # DXE\r | |
236 | #\r | |
237 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
238 | <LibraryClasses>\r | |
239 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
240 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
241 | }\r | |
242 | \r | |
243 | #\r | |
244 | # Architectural Protocols\r | |
245 | #\r | |
246 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
247 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
248 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
249 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
250 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r | |
251 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
252 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r | |
253 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
254 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
255 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
256 | \r | |
257 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
258 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
259 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
260 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
261 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
262 | \r | |
263 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
264 | \r | |
265 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r | |
266 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r | |
267 | ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r | |
268 | !ifndef ARM_FOUNDATION_FVP\r | |
269 | ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r | |
270 | !endif\r | |
271 | ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r | |
272 | \r | |
273 | #\r | |
274 | # Semi-hosting filesystem\r | |
275 | #\r | |
276 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
277 | \r | |
278 | !ifndef ARM_FOUNDATION_FVP\r | |
279 | #\r | |
280 | # Multimedia Card Interface\r | |
281 | #\r | |
282 | EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r | |
283 | ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r | |
284 | !endif\r | |
285 | \r | |
e94784c6 OM |
286 | #\r |
287 | # Platform Driver\r | |
288 | #\r | |
a4ab7df4 | 289 | ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r |
e94784c6 OM |
290 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r |
291 | \r | |
75f63034 OM |
292 | #\r |
293 | # FAT filesystem + GPT/MBR partitioning\r | |
294 | #\r | |
295 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
296 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
297 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
298 | \r | |
299 | #\r | |
300 | # Bds\r | |
301 | #\r | |
302 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
303 | ArmPlatformPkg/Bds/Bds.inf\r |