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