]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-AEMv8Ax4-foundation.dsc
ArmPlatformPkg: Added Aarch64 Foundation Model
[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 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
38
39 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
40
41 # Foundation model does not have an RTC. Use the NULL version.
42 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
43
44 [LibraryClasses.common.SEC]
45 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64LibSec.inf
46 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressFoundationSecLib.inf
47 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLibSec.inf
48
49 [BuildOptions]
50 GCC:*_*_AARCH64_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM
51
52
53 ################################################################################
54 #
55 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
56 #
57 ################################################################################
58
59 [PcdsFeatureFlag.common]
60
61 !ifdef $(EDK2_SKIP_PEICORE)
62 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
63 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
64 !endif
65
66 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
67 # It could be set FALSE to save size.
68 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
69
70 [PcdsFixedAtBuild.common]
71 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Foundation Model"
72 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmFoundation"
73
74 gArmPlatformTokenSpaceGuid.PcdCoreCount|4
75
76 gArmTokenSpaceGuid.PcdVFPEnabled|1
77
78 # Stacks for MPCores in Secure World (No SRAM on foundation model, put in RAM at 64MB)
79 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0xA4009000
80 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000
81
82 # Stacks for MPCores in Monitor Mod (No SRAM on foundation model, put in RAM at 64MB)
83 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0xA4008000
84 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x100
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 #
103 # ARM PrimeCell
104 #
105
106 ## PL011 - Serial Terminal
107 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000
108 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
109
110 #
111 # ARM PL390 General Interrupt Controller
112 #
113 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
114 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
115
116 #
117 # ARM OS Loader
118 #
119 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
120 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"
121 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image"
122 gArmPlatformTokenSpaceGuid.PcdDefaultBootInitrdPath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/filesystem.cpio.gz"
123 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0 earlyprintk=pl011,0x1c090000 maxcpus=4 debug user_debug=31 loglevel=9"
124 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
125 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/fdt.dtb"
126
127 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
128 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();"
129 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
130
131 #
132 # ARM Architectual Timer Frequency
133 #
134 # Set model tick to 120Mhz. This depends a lot on workstation performance.
135 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|120000000
136
137 ################################################################################
138 #
139 # Components Section - list of all EDK II Modules needed by this Platform
140 #
141 ################################################################################
142 [Components.common]
143
144 #
145 # SEC
146 #
147 ArmPlatformPkg/Sec/Sec.inf {
148 <LibraryClasses>
149 # Use the implementation which set the Secure bits
150 ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf
151 }
152
153 #
154 # PEI Phase modules
155 #
156 !ifdef $(EDK2_SKIP_PEICORE)
157 ArmPlatformPkg/PrePi/PeiMPCore.inf {
158 <LibraryClasses>
159 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
160 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressFoundationLib.inf
161 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
162 }
163 !else
164 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
165 <LibraryClasses>
166 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
167 }
168 MdeModulePkg/Core/Pei/PeiMain.inf
169 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
170 <LibraryClasses>
171 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
172 }
173 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
174 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
175 ArmPkg/Drivers/CpuPei/CpuPei.inf
176 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
177 Nt32Pkg/BootModePei/BootModePei.inf
178 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
179 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
180 <LibraryClasses>
181 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
182 }
183 !endif
184
185 #
186 # DXE
187 #
188 MdeModulePkg/Core/Dxe/DxeMain.inf {
189 <LibraryClasses>
190 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
191 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
192 }
193
194 #
195 # Architectural Protocols
196 #
197 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
198 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
199 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
200 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
201 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
202 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
203 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
204 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
205 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
206 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
207
208 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
209 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
210 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
211 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
212 EmbeddedPkg/SerialDxe/SerialDxe.inf
213
214 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
215
216 ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
217 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
218 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
219
220 #
221 # Semi-hosting filesystem
222 #
223 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
224
225 #
226 # FAT filesystem + GPT/MBR partitioning
227 #
228 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
229 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
230 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
231
232 #
233 # Bds
234 #
235 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
236 ArmPlatformPkg/Bds/Bds.inf