]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.dsc
ArmPlatformPkg: Introduced 'ArmPlatformSecLib'
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-CTA9x4.dsc
1 #
2 # Copyright (c) 2011-2012, 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-CTA9x4
21 PLATFORM_GUID = eb2bd5ff-2379-4a06-9c12-db905cdee9ea
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 !ifdef $(EDK2_ARMVE_STANDALONE)
25 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4-Standalone
26 !else
27 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA9x4
28 !endif
29 SUPPORTED_ARCHITECTURES = ARM
30 BUILD_TARGETS = DEBUG|RELEASE
31 SKUID_IDENTIFIER = DEFAULT
32 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf
33
34 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
35
36 [LibraryClasses.common]
37 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
38 ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Lib.inf
39 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf
40 ArmTrustZoneLib|ArmPlatformPkg/Drivers/ArmTrustZone/ArmTrustZone.inf
41
42 # ARM PL310 L2 Cache Driver
43 L2X0CacheLib|ArmPlatformPkg/Drivers/PL310L2Cache/PL310L2CacheSec.inf
44 # ARM PL354 SMC Driver
45 PL35xSmcLib|ArmPlatformPkg/Drivers/PL35xSmc/PL35xSmc.inf
46 # ARM PL341 DMC Driver
47 PL341DmcLib|ArmPlatformPkg/Drivers/PL34xDmc/PL341Dmc.inf
48 # ARM PL301 Axi Driver
49 PL301AxiLib|ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf
50
51 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
52 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
53 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf
54
55 [LibraryClasses.common.SEC]
56 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf
57 ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibCTA9x4/ArmVExpressSecLib.inf
58 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLibSec.inf
59
60 # Uncomment to turn on GDB stub in SEC.
61 #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf
62
63 # ARM PL390 General Interrupt Driver in Secure and Non-secure
64 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf
65 ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
66
67 [BuildOptions]
68 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A9 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
69
70 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
71
72 XCODE:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4
73
74 ################################################################################
75 #
76 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
77 #
78 ################################################################################
79
80 [PcdsFeatureFlag.common]
81 !ifdef $(EDK2_ARMVE_STANDALONE)
82 gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE
83 !else
84 gArmPlatformTokenSpaceGuid.PcdStandalone|FALSE
85 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
86 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
87 !endif
88
89 !ifdef $(EDK2_SKIP_PEICORE)
90 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
91 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
92 !endif
93
94 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
95 # It could be set FALSE to save size.
96 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
97
98 [PcdsFixedAtBuild.common]
99 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
100 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress"
101
102 #
103 # NV Storage PCDs. Use base of 0x43FC0000 for NOR0 or 0x47FC0000 for NOR1 on Versatile Express
104 #
105 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x47FC0000
106 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
107 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x47FD0000
108 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
109 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x47FE0000
110 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
111
112 gArmTokenSpaceGuid.PcdVFPEnabled|1
113
114 # Stacks for MPCores in Secure World
115 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x49E00000
116 # Stacks for MPCores in Monitor Mode
117 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x49D00000
118 # Stacks for MPCores in Normal World
119 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x48000000
120
121 # System Memory (1GB)
122 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x60000000
123 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
124
125 #
126 # ARM Pcds
127 #
128 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
129
130 #
131 # ARM PrimeCell
132 #
133
134 ## SP804 Timer
135 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
136 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
137 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34
138 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000
139 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10011020
140 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10012020
141
142 ## SP805 Watchdog - Motherboard Watchdog
143 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1000F000
144 ## SP805 Watchdog - CoreTile Watchdog
145 #gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x100E5000
146
147 ## PL011 - Serial Terminal
148 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x10009000
149 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
150
151 ## PL031 RealTimeClock
152 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x10017000
153
154 ## PL111 Lcd
155 # PL111 CoreTile or Tuscan Standalone controller
156 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x10020000
157 # PL111 Versatile Express Motherboard controller
158 #gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1001F000
159
160 ## PL180 MMC/SD card controller
161 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x10000048
162 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x10005000
163
164 #
165 # ARM PL390 General Interrupt Controller
166 #
167 gArmTokenSpaceGuid.PcdGicDistributorBase|0x1e001000
168 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x1e000100
169
170 #
171 # ARM OS Loader
172 #
173 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
174 gArmTokenSpaceGuid.PcdArmMachineType|2272
175 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"NorFlash"
176 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x46000000,0x46400000)"
177 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""
178 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1
179
180 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
181 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
182 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
183
184 #
185 # ARM L2x0 PCDs
186 #
187 gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000
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
201 #
202 # PEI Phase modules
203 #
204 !ifdef $(EDK2_SKIP_PEICORE)
205 ArmPlatformPkg/PrePi/PeiMPCore.inf {
206 <LibraryClasses>
207 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
208 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
209 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf
210 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
211 }
212 !else
213 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
214 <LibraryClasses>
215 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
216 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf
217 }
218 MdeModulePkg/Core/Pei/PeiMain.inf
219 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
220 <LibraryClasses>
221 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
222 }
223 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
224 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
225 ArmPkg/Drivers/CpuPei/CpuPei.inf
226 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
227 Nt32Pkg/BootModePei/BootModePei.inf
228 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
229 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
230 <LibraryClasses>
231 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
232 }
233 !endif
234
235 #
236 # DXE
237 #
238 MdeModulePkg/Core/Dxe/DxeMain.inf {
239 <LibraryClasses>
240 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
241 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
242 }
243
244 #
245 # Architectural Protocols
246 #
247 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
248 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
249 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
250 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
251 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
252 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
253 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
254 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
255 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
256 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
257
258 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
259 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
260 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
261 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
262 EmbeddedPkg/SerialDxe/SerialDxe.inf
263
264 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
265
266 ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
267 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
268 ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
269 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
270 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
271
272 #
273 # Semi-hosting filesystem
274 #
275 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
276
277 #
278 # Multimedia Card Interface
279 #
280 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
281 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
282
283 #
284 # FAT filesystem + GPT/MBR partitioning
285 #
286 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
287 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
288 FatPkg/EnhancedFatDxe/Fat.inf
289 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
290
291 #
292 # Application
293 #
294 EmbeddedPkg/Ebl/Ebl.inf
295
296 #
297 # Bds
298 #
299 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
300 ArmPlatformPkg/Bds/Bds.inf