]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-AEMv8Ax4-foundation.dsc
c05043533d0a3b9cfe7372e99855c36e52606fdc
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-RTSM-AEMv8Ax4-foundation.dsc
1 #
2 # Copyright (c) 2011-2015, 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 = ArmVExpressPkg-RTSM-AEMv8Ax4-foundation
21 PLATFORM_GUID = 2a9d4992-0730-11e2-9829-1c6f650265cc
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 OUTPUT_DIRECTORY = Build/ArmVExpress-RTSM-AEMv8Ax4-foundation
25 SUPPORTED_ARCHITECTURES = AARCH64
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-AEMv8Ax4-foundation.fdf
29
30 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
31
32 [LibraryClasses.common]
33 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
34 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf
35 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLib.inf
36
37 # Virtio Support
38 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
39 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
40
41 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
42
43 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
44
45 # Foundation model does not have an RTC. Use the NULL version.
46 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
47
48 [LibraryClasses.common.SEC]
49 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
50 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressFoundationSecLib.inf
51 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLibSec.inf
52
53 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
54 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
55
56 [BuildOptions]
57 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM
58
59
60 ################################################################################
61 #
62 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
63 #
64 ################################################################################
65
66 [PcdsFeatureFlag.common]
67
68 !ifdef $(EDK2_SKIP_PEICORE)
69 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
70 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
71 !endif
72
73 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
74 # It could be set FALSE to save size.
75 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
76
77 #
78 # FDT installation : enable the development specific features
79 #
80 gEmbeddedTokenSpaceGuid.PcdOverridePlatformFdt|TRUE
81
82 [PcdsFixedAtBuild.common]
83 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Foundation Model"
84 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmFoundation"
85
86 gArmPlatformTokenSpaceGuid.PcdCoreCount|4
87
88 gArmTokenSpaceGuid.PcdVFPEnabled|1
89
90 # Stacks for MPCores in Secure World (No SRAM on foundation model, put in RAM at 64MB)
91 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0xA4008000
92 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000
93
94 # Stacks for MPCores in Normal World (No SRAM on foundation model, put in RAM at 64MB)
95 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0xA4000000
96 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
97
98 # System Memory (2GB)
99 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
100 gArmTokenSpaceGuid.PcdSystemMemorySize|0x80000000
101
102 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
103 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
104
105 #
106 # ARM Pcds
107 #
108 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
109
110 ## Trustzone enable (to make the transition from EL3 to EL2 in ArmPlatformPkg/Sec)
111 gArmTokenSpaceGuid.PcdTrustzoneSupport|TRUE
112
113 #
114 # ARM PrimeCell
115 #
116
117 ## PL011 - Serial Terminal
118 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000
119 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
120
121 #
122 # ARM General Interrupt Controller
123 #
124 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
125 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
126
127 #
128 # ARM OS Loader
129 #
130 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
131 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"
132 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image"
133 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"root=/dev/vda2 rw console=ttyAMA0 earlyprintk=pl011,0x1c090000 maxcpus=4 debug user_debug=31 loglevel=9"
134 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
135 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/foundation-v8.dtb"
136
137 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
138 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();"
139 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
140
141 #
142 # ARM Architectural Timer Frequency
143 #
144 # Set model tick to 100Mhz. This depends a lot on workstation performance.
145 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
146
147 [PcdsDynamicDefault.common]
148 #
149 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
150 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
151 # character "empty" string, to allow to be able to set FDT text device paths
152 # up to 128 characters long.
153 #
154 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
155
156 ################################################################################
157 #
158 # Components Section - list of all EDK II Modules needed by this Platform
159 #
160 ################################################################################
161 [Components.common]
162
163 #
164 # SEC
165 #
166 ArmPlatformPkg/Sec/Sec.inf {
167 <LibraryClasses>
168 # Use the implementation which set the Secure bits
169 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
170 }
171
172 #
173 # PEI Phase modules
174 #
175 !ifdef $(EDK2_SKIP_PEICORE)
176 ArmPlatformPkg/PrePi/PeiMPCore.inf {
177 <LibraryClasses>
178 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
179 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLib.inf
180 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
181 }
182 !else
183 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
184 <LibraryClasses>
185 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
186 }
187 MdeModulePkg/Core/Pei/PeiMain.inf
188 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
189 <LibraryClasses>
190 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
191 }
192 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
193 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
194 ArmPkg/Drivers/CpuPei/CpuPei.inf
195 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
196 Nt32Pkg/BootModePei/BootModePei.inf
197 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
198 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
199 <LibraryClasses>
200 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
201 }
202 !endif
203
204 #
205 # DXE
206 #
207 MdeModulePkg/Core/Dxe/DxeMain.inf {
208 <LibraryClasses>
209 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
210 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
211 }
212
213 #
214 # Architectural Protocols
215 #
216 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
217 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
218 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
219 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
220 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
221 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
222 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
223 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
224 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
225 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
226
227 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
228 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
229 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
230 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
231 EmbeddedPkg/SerialDxe/SerialDxe.inf
232
233 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
234
235 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
236 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
237 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
238
239 #
240 # Semi-hosting filesystem
241 #
242 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
243
244 #
245 # Platform Driver
246 #
247 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
248 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
249
250 #
251 # FAT filesystem + GPT/MBR partitioning
252 #
253 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
254 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
255 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
256
257 #
258 # Bds
259 #
260 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
261 ArmPlatformPkg/Bds/Bds.inf