]>
Commit | Line | Data |
---|---|---|
1d5d0ae9 | 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 | |
4103bc94 | 24 | !ifdef $(EDK2_ARMVE_STANDALONE) |
1d5d0ae9 | 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 | ||
4463f706 | 34 | !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc |
1d5d0ae9 | 35 | |
4463f706 | 36 | [LibraryClasses.common] |
aa84fef5 | 37 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf |
90d6a1bb | 38 | ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Lib.inf |
1d5d0ae9 | 39 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf |
40 | ArmTrustZoneLib|ArmPkg/Library/ArmTrustZoneLib/ArmTrustZoneLib.inf | |
1d5d0ae9 | 41 | |
8e06b586 | 42 | # ARM PL310 L2 Cache Driver |
5cc45b70 | 43 | L2X0CacheLib|ArmPlatformPkg/Drivers/PL310L2Cache/PL310L2CacheSec.inf |
e7f7105b | 44 | # ARM PL354 SMC Driver |
5cc45b70 | 45 | PL35xSmcLib|ArmPlatformPkg/Drivers/PL35xSmc/PL35xSmc.inf |
1d5d0ae9 | 46 | # ARM PL341 DMC Driver |
5cc45b70 | 47 | PL341DmcLib|ArmPlatformPkg/Drivers/PL34xDmc/PL341Dmc.inf |
1d5d0ae9 | 48 | # ARM PL301 Axi Driver |
5cc45b70 | 49 | PL301AxiLib|ArmPlatformPkg/Drivers/PL301Axi/PL301Axi.inf |
d5e12da4 | 50 | |
7b80d1a3 | 51 | ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf |
d5e12da4 | 52 | NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf |
7d0f2f23 | 53 | LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf |
1d5d0ae9 | 54 | |
1d5d0ae9 | 55 | [LibraryClasses.common.SEC] |
aa84fef5 | 56 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf |
1d5d0ae9 | 57 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressSecLib.inf |
1d5d0ae9 | 58 | |
59 | # Uncomment to turn on GDB stub in SEC. | |
60 | #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf | |
61 | ||
1d5d0ae9 | 62 | # ARM PL390 General Interrupt Driver in Secure and Non-secure |
55a0d64b | 63 | ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf |
64 | ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf | |
1d5d0ae9 | 65 | |
66 | [BuildOptions] | |
4463f706 | 67 | RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A9 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4 |
1d5d0ae9 | 68 | |
4463f706 | 69 | GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4 |
1d5d0ae9 | 70 | |
4463f706 | 71 | XCODE:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA9x4 |
1d5d0ae9 | 72 | |
73 | ################################################################################ | |
74 | # | |
75 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform | |
76 | # | |
77 | ################################################################################ | |
78 | ||
79 | [PcdsFeatureFlag.common] | |
4103bc94 | 80 | !ifdef $(EDK2_ARMVE_STANDALONE) |
a6caee65 | 81 | gArmPlatformTokenSpaceGuid.PcdStandalone|TRUE |
82 | !else | |
83 | gArmPlatformTokenSpaceGuid.PcdStandalone|FALSE | |
84 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE | |
85 | gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE | |
1d5d0ae9 | 86 | !endif |
87 | ||
4103bc94 | 88 | !ifdef $(EDK2_SKIP_PEICORE) |
a6caee65 | 89 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE |
90 | gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE | |
91 | !endif | |
936eff09 | 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 | ||
1d5d0ae9 | 97 | [PcdsFixedAtBuild.common] |
4463f706 | 98 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express" |
e6b3b508 | 99 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress" |
1d5d0ae9 | 100 | |
6acb379f | 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 | ||
1d5d0ae9 | 111 | gArmTokenSpaceGuid.PcdVFPEnabled|1 |
112 | ||
113 | # Stacks for MPCores in Secure World | |
2dbcb8f0 | 114 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x49E00000 |
1d5d0ae9 | 115 | # Stacks for MPCores in Monitor Mode |
2dbcb8f0 | 116 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x49D00000 |
1d5d0ae9 | 117 | # Stacks for MPCores in Normal World |
2dbcb8f0 | 118 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x48000000 |
1d5d0ae9 | 119 | |
964680c1 | 120 | # System Memory (1GB) |
121 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x60000000 | |
122 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000 | |
5cc45b70 | 123 | |
1d5d0ae9 | 124 | # |
125 | # ARM Pcds | |
126 | # | |
127 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000 | |
5cc45b70 | 128 | |
1d5d0ae9 | 129 | # |
130 | # ARM PrimeCell | |
131 | # | |
1d5d0ae9 | 132 | |
5cc45b70 | 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 | |
4463f706 | 138 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10011020 |
139 | gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10012020 | |
5cc45b70 | 140 | |
141 | ## SP805 Watchdog - Motherboard Watchdog | |
142 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1000F000 | |
143 | ## SP805 Watchdog - CoreTile Watchdog | |
144 | #gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x100E5000 | |
145 | ||
146 | ## PL011 - Serial Terminal | |
9dcfb8e5 | 147 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x10009000 |
148 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400 | |
5cc45b70 | 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 | |
9dcfb8e5 | 162 | |
1d5d0ae9 | 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 | |
ea46ebbe | 174 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"NorFlash" |
175 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x46000000,0x46400000)" | |
cb5bf269 | 176 | gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"" |
ea46ebbe | 177 | gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1 |
1d5d0ae9 | 178 | |
936eff09 | 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()" | |
936eff09 | 182 | |
1d5d0ae9 | 183 | # |
184 | # ARM L2x0 PCDs | |
185 | # | |
186 | gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000 | |
187 | ||
1d5d0ae9 | 188 | ################################################################################ |
189 | # | |
190 | # Components Section - list of all EDK II Modules needed by this Platform | |
191 | # | |
192 | ################################################################################ | |
193 | [Components.common] | |
194 | ||
4463f706 | 195 | # |
196 | # SEC | |
197 | # | |
1d5d0ae9 | 198 | ArmPlatformPkg/Sec/Sec.inf |
1d5d0ae9 | 199 | |
4463f706 | 200 | # |
201 | # PEI Phase modules | |
202 | # | |
4103bc94 | 203 | !ifdef $(EDK2_SKIP_PEICORE) |
64e03133 | 204 | ArmPlatformPkg/PrePi/PeiMPCore.inf { |
205 | <LibraryClasses> | |
55a0d64b | 206 | ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf |
aa84fef5 | 207 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf |
64e03133 | 208 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA9x4/ArmVExpressLib.inf |
4463f706 | 209 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf |
64e03133 | 210 | } |
211 | !else | |
a6caee65 | 212 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf { |
213 | <LibraryClasses> | |
55a0d64b | 214 | ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf |
4463f706 | 215 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf |
a6caee65 | 216 | } |
1d5d0ae9 | 217 | MdeModulePkg/Core/Pei/PeiMain.inf |
218 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf { | |
219 | <LibraryClasses> | |
220 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf | |
221 | } | |
64e03133 | 222 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf |
223 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf | |
44788bae | 224 | ArmPkg/Drivers/CpuPei/CpuPei.inf |
1d5d0ae9 | 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 | } | |
64e03133 | 232 | !endif |
1d5d0ae9 | 233 | |
4463f706 | 234 | # |
235 | # DXE | |
236 | # | |
1d5d0ae9 | 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 | |
1d5d0ae9 | 249 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf |
250 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf | |
251 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf | |
9d074e73 | 252 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf |
1d5d0ae9 | 253 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf |
254 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf | |
255 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf | |
936eff09 | 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 | |
1d5d0ae9 | 262 | |
263 | ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf | |
d5e12da4 | 264 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf |
1d5d0ae9 | 265 | ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf |
7d0f2f23 | 266 | ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf |
33e7c2ab | 267 | ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf |
1d5d0ae9 | 268 | |
269 | # | |
270 | # Semi-hosting filesystem | |
271 | # | |
272 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf | |
273 | ||
274 | # | |
275 | # Multimedia Card Interface | |
276 | # | |
ce73d60a | 277 | EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf |
5cc45b70 | 278 | ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf |
1d5d0ae9 | 279 | |
280 | # | |
281 | # FAT filesystem + GPT/MBR partitioning | |
282 | # | |
283 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf | |
284 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf | |
285 | FatPkg/EnhancedFatDxe/Fat.inf | |
286 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf | |
287 | ||
288 | # | |
289 | # Application | |
290 | # | |
291 | EmbeddedPkg/Ebl/Ebl.inf | |
292 | ||
293 | # | |
294 | # Bds | |
295 | # | |
296 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf | |
297 | ArmPlatformPkg/Bds/Bds.inf |