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