]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A15_MPCore.dsc
ArmPlatformPkg/RTSM: use declared PPI rather than module local var
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-RTSM-A15_MPCore.dsc
1 #
2 # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
3 # Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
4 #
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13 #
14
15 ################################################################################
16 #
17 # Defines Section - statements that will be processed to create a Makefile.
18 #
19 ################################################################################
20 [Defines]
21 PLATFORM_NAME = ArmVExpressPkg-RTSM-A15_MPCore
22 PLATFORM_GUID = 3a91a0f8-3af4-409d-a71d-a199dc134357
23 PLATFORM_VERSION = 0.1
24 DSC_SPECIFICATION = 0x00010005
25 OUTPUT_DIRECTORY = Build/ArmVExpress-RTSM-A15_MPCore
26 SUPPORTED_ARCHITECTURES = ARM
27 BUILD_TARGETS = DEBUG|RELEASE
28 SKUID_IDENTIFIER = DEFAULT
29 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A15_MPCore.fdf
30
31 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
32
33 [LibraryClasses.common]
34 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
35 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf
36 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
37
38 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
39 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
40 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf
41
42 #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
43
44 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
45
46 # Virtio Support
47 VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
48 VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf
49
50 [LibraryClasses.common.SEC]
51 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
52 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressSecLib.inf
53 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf
54
55 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
56 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
57
58 [BuildOptions]
59 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM
60
61 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM
62
63 XCODE:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM
64
65 ################################################################################
66 #
67 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
68 #
69 ################################################################################
70
71 [PcdsFeatureFlag.common]
72 !ifdef EDK2_SKIP_PEICORE
73 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
74 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
75 !endif
76
77 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
78 # It could be set FALSE to save size.
79 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
80
81 [PcdsFixedAtBuild.common]
82 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
83 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-RTSM"
84
85 gArmPlatformTokenSpaceGuid.PcdCoreCount|2
86
87 #
88 # NV Storage PCDs. Use base of 0x0C000000 for NOR1
89 #
90 !if $(EDK2_ARMVE_SUPPORT_QEMU) == 1
91 # QEMU only models a single flash block size, so use larger blocks
92 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FF00000
93 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
94 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FF40000
95 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
96 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FF80000
97 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
98 !else
99 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
100 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
101 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
102 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
103 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
104 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
105 !endif
106
107 gArmTokenSpaceGuid.PcdVFPEnabled|1
108
109 # Stacks for MPCores in Secure World
110 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E009000
111 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000
112
113 # Stacks for MPCores in Monitor Mode
114 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x2E008000
115 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x100
116
117 # Stacks for MPCores in Normal World
118 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000
119 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
120
121 # System Memory (1GB)
122 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
123 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
124
125 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
126 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
127
128 #
129 # ARM Pcds
130 #
131 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
132
133 #
134 # ARM PrimeCell
135 #
136
137 ## SP805 Watchdog - Motherboard Watchdog
138 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
139
140 ## PL011 - Serial Terminal
141 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000
142 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
143
144 ## PL031 RealTimeClock
145 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
146
147 ## PL111 Versatile Express Motherboard controller
148 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
149
150 ## PL180 MMC/SD card controller
151 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
152 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
153
154 #
155 # ARM General Interrupt Controller
156 #
157 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
158 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
159
160 #
161 # ARM OS Loader
162 #
163 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting"
164 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"Fv(12C68BE9-0996-49D3-8C5B-4957379027EE)/LinuxLoader.efi"
165 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image -c \"console=ttyAMA0,38400 earlyprintk debug verbose\""
166
167 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
168 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
169 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
170
171 #
172 # ARM Architectural Timer Frequency
173 #
174 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
175
176 [PcdsDynamicDefault.common]
177 #
178 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
179 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
180 # character "empty" string, to allow to be able to set FDT text device paths
181 # up to 128 characters long.
182 #
183 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
184
185 ################################################################################
186 #
187 # Components Section - list of all EDK II Modules needed by this Platform
188 #
189 ################################################################################
190 [Components.common]
191
192 #
193 # SEC
194 #
195 ArmPlatformPkg/Sec/Sec.inf {
196 <LibraryClasses>
197 # Use the implementation which set the Secure bits
198 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
199 }
200
201 #
202 # PEI Phase modules
203 #
204 !ifdef EDK2_SKIP_PEICORE
205 ArmPlatformPkg/PrePi/PeiMPCore.inf {
206 <LibraryClasses>
207 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
208 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
209 }
210 !else
211 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
212 MdeModulePkg/Core/Pei/PeiMain.inf
213 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
214 <LibraryClasses>
215 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
216 }
217 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
218 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
219 ArmPkg/Drivers/CpuPei/CpuPei.inf
220 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
221 Nt32Pkg/BootModePei/BootModePei.inf
222 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
223 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
224 <LibraryClasses>
225 NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
226 }
227 !endif
228
229 #
230 # DXE
231 #
232 MdeModulePkg/Core/Dxe/DxeMain.inf {
233 <LibraryClasses>
234 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
235 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
236 }
237
238 #
239 # Architectural Protocols
240 #
241 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
242 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
243 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
244 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
245 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
246 <LibraryClasses>
247 NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
248 }
249 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
250 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
251 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
252 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
253 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
254
255 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
256 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
257 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
258 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
259 MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
260
261 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
262
263 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
264 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
265 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
266 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
267 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
268
269 #
270 # Semi-hosting filesystem
271 #
272 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
273
274 #
275 # Multimedia Card Interface
276 #
277 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
278 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
279
280 #
281 # Platform Driver
282 #
283 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
284 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
285
286 #
287 # FAT filesystem + GPT/MBR partitioning
288 #
289 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
290 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
291 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
292
293 #
294 # Bds
295 #
296 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
297 ArmPlatformPkg/Bds/Bds.inf