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