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