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