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