0021a0a2354bacf34721876d8b786bb825396395
[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 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/rtsm_ve-cortex_a15x4.dtb"
173
174 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
175 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
176 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
177
178 #
179 # ARM Architectural Timer Frequency
180 #
181 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|100000000
182
183 [PcdsDynamicDefault.common]
184 #
185 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
186 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
187 # character "empty" string, to allow to be able to set FDT text device paths
188 # up to 128 characters long.
189 #
190 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
191
192 ################################################################################
193 #
194 # Components Section - list of all EDK II Modules needed by this Platform
195 #
196 ################################################################################
197 [Components.common]
198
199 #
200 # SEC
201 #
202 ArmPlatformPkg/Sec/Sec.inf {
203 <LibraryClasses>
204 # Use the implementation which set the Secure bits
205 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
206 }
207
208 #
209 # PEI Phase modules
210 #
211 !ifdef EDK2_SKIP_PEICORE
212 ArmPlatformPkg/PrePi/PeiMPCore.inf {
213 <LibraryClasses>
214 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
215 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf
216 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
217 }
218 !else
219 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
220 <LibraryClasses>
221 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
222 }
223 MdeModulePkg/Core/Pei/PeiMain.inf
224 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
225 <LibraryClasses>
226 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
227 }
228 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
229 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
230 ArmPkg/Drivers/CpuPei/CpuPei.inf
231 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
232 Nt32Pkg/BootModePei/BootModePei.inf
233 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
234 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
235 <LibraryClasses>
236 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
237 }
238 !endif
239
240 #
241 # DXE
242 #
243 MdeModulePkg/Core/Dxe/DxeMain.inf {
244 <LibraryClasses>
245 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
246 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
247 }
248
249 #
250 # Architectural Protocols
251 #
252 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
253 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
254 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
255 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
256 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
257 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
258 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
259 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
260 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
261 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
262
263 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
264 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
265 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
266 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
267 EmbeddedPkg/SerialDxe/SerialDxe.inf
268
269 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
270
271 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
272 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
273 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
274 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
275 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
276
277 #
278 # Semi-hosting filesystem
279 #
280 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
281
282 #
283 # Multimedia Card Interface
284 #
285 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
286 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
287
288 #
289 # Platform Driver
290 #
291 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf
292 OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
293
294 #
295 # FAT filesystem + GPT/MBR partitioning
296 #
297 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
298 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
299 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
300
301 #
302 # Bds
303 #
304 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
305 ArmPlatformPkg/Bds/Bds.inf