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