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