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