]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A15.dsc
ArmPlatformPkg/Bds: Remove any use of the "Fdt" UEFI variable
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-RTSM-A15.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
21 PLATFORM_GUID = 1665b5b1-529d-4ba1-bd51-c3c9b29a2274
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 OUTPUT_DIRECTORY = Build/ArmVExpress-RTSM-A15
25 SUPPORTED_ARCHITECTURES = ARM
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A15.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 #
90 # NV Storage PCDs. Use base of 0x0C000000 for NOR1
91 #
92 !if $(EDK2_ARMVE_SUPPORT_QEMU) == 1
93 # QEMU only models a single flash block size, so use larger blocks
94 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FF00000
95 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00040000
96 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FF40000
97 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00040000
98 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FF80000
99 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00040000
100 !else
101 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
102 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
103 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
104 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
105 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
106 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
107 !endif
108
109 gArmTokenSpaceGuid.PcdVFPEnabled|1
110
111 # Stacks for MPCores in Secure World
112 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E009000
113 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000
114
115 # Stacks for MPCores in Monitor Mode
116 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x2E008000
117 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x100
118
119 # Stacks for MPCores in Normal World
120 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000
121 gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
122
123 # System Memory (1GB)
124 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
125 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
126
127 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
128 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
129
130 #
131 # ARM Pcds
132 #
133 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
134
135 #
136 # ARM PrimeCell
137 #
138
139 ## SP805 Watchdog - Motherboard Watchdog
140 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
141
142 ## PL011 - Serial Terminal
143 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000
144 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
145
146 ## PL031 RealTimeClock
147 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
148
149 ## PL111 Versatile Express Motherboard controller
150 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
151
152 ## PL180 MMC/SD card controller
153 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
154 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
155
156 #
157 # ARM General Interrupt Controller
158 #
159 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
160 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
161
162 #
163 # ARM OS Loader
164 #
165 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
166 gArmTokenSpaceGuid.PcdArmMachineType|2272
167 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"SemiHosting"
168 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/zImage"
169 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
170
171 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
172 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
173 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
174
175 #
176 # ARM Architectural Timer Frequency
177 #
178 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
179
180 [PcdsDynamicDefault.common]
181 #
182 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
183 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
184 # character "empty" string, to allow to be able to set FDT text device paths
185 # up to 128 characters long.
186 #
187 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
188
189 ################################################################################
190 #
191 # Components Section - list of all EDK II Modules needed by this Platform
192 #
193 ################################################################################
194 [Components.common]
195
196 #
197 # SEC
198 #
199 ArmPlatformPkg/Sec/Sec.inf {
200 <LibraryClasses>
201 # Use the implementation which set the Secure bits
202 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
203 }
204
205 #
206 # PEI Phase modules
207 #
208 !ifdef EDK2_SKIP_PEICORE
209 ArmPlatformPkg/PrePi/PeiUniCore.inf {
210 <LibraryClasses>
211 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
212 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
213 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
214 }
215 !else
216 ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf {
217 <LibraryClasses>
218 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
219 }
220 MdeModulePkg/Core/Pei/PeiMain.inf
221 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
222 <LibraryClasses>
223 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
224 }
225 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
226 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
227 ArmPkg/Drivers/CpuPei/CpuPei.inf
228 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
229 Nt32Pkg/BootModePei/BootModePei.inf
230 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
231 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
232 <LibraryClasses>
233 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
234 }
235 !endif
236
237 #
238 # DXE
239 #
240 MdeModulePkg/Core/Dxe/DxeMain.inf {
241 <LibraryClasses>
242 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
243 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
244 }
245
246 #
247 # Architectural Protocols
248 #
249 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
250 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
251 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
252 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
253 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
254 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
255 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
256 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
257 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
258 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
259
260 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
261 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
262 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
263 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
264 EmbeddedPkg/SerialDxe/SerialDxe.inf
265
266 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
267
268 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
269 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
270 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
271 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
272 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
273
274 #
275 # Semi-hosting filesystem
276 #
277 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
278
279 #
280 # Multimedia Card Interface
281 #
282 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
283 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
284
285 #
286 # Platform Driver
287 #
288 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
289 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
290
291 #
292 # FAT filesystem + GPT/MBR partitioning
293 #
294 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
295 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
296 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
297
298 #
299 # Bds
300 #
301 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
302 ArmPlatformPkg/Bds/Bds.inf