e765617d692619d3b3bc497a733e200c3dbe0b40
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-CTA15-A7.dsc
1 #
2 # Copyright (c) 2012-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-CTA15-A7
21 PLATFORM_GUID = 0b511920-978d-4b34-acc0-3d9f8e6f9d81
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 OUTPUT_DIRECTORY = Build/ArmVExpress-CTA15-A7
25 SUPPORTED_ARCHITECTURES = ARM
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA15-A7.fdf
29 DEFINE EDK2_SKIP_PEICORE=1
30
31 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
32
33 [LibraryClasses.common]
34 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
35 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
36
37 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
38 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
39
40 #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
41
42 # ARM General Interrupt Driver in Secure and Non-secure
43 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
44
45 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpressLib.inf
46
47 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
48 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
49
50 [BuildOptions]
51 !ifdef ARM_BIGLITTLE_TC2
52 *_*_ARM_ARCHCC_FLAGS = -DARM_BIGLITTLE_TC2=1
53 *_*_ARM_PP_FLAGS = -DARM_BIGLITTLE_TC2=1
54 !endif
55
56 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
57
58 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
59
60 XCODE:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
61
62 ################################################################################
63 #
64 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
65 #
66 ################################################################################
67
68 [PcdsFeatureFlag.common]
69 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
70 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
71
72 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
73 # It could be set FALSE to save size.
74 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
75
76 #
77 # FDT installation : enable the development specific features
78 #
79 gEmbeddedTokenSpaceGuid.PcdOverridePlatformFdt|TRUE
80
81 [PcdsFixedAtBuild.common]
82 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
83 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-CTA15-A7"
84
85 gArmPlatformTokenSpaceGuid.PcdCoreCount|5
86
87 #
88 # NV Storage PCDs. Use base of 0x0C000000 for NOR1
89 #
90 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
91 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
92 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
93 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
94 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
95 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
96
97 gArmTokenSpaceGuid.PcdVFPEnabled|1
98
99 # Stacks for MPCores in Secure World
100 # SRAM (CS1) is only available between 0x14000000 and 0x14001000 on the model
101 # ZBT SRAM is available between 0x2E000000 and 0x2E010000 on the model
102 !ifdef ARM_BIGLITTLE_TC2
103 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x17000000
104 !else
105 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E000000
106 !endif
107 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x8000
108 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x1000
109 # Share Monitor stacks with Secure World
110 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0
111
112 # System Memory (1GB) - An additional 1GB will be added if UEFI is running on a 2GB Test Chip
113 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
114 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
115
116 !ifdef ARM_BIGLITTLE_TC2
117 # TC2 Dual-Cluster profile
118 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
119
120 # Core Ids and Gic values
121 # A15_0 = 0x000, GicCoreId = 0
122 # A15_1 = 0x001, GicCoreId = 1
123 # A7_0 = 0x100, GicCoreId = 2
124 # A7_1 = 0x101, GicCoreId = 3
125 # A7_2 = 0x102, GicCoreId = 4
126 gArmTokenSpaceGuid.PcdArmPrimaryCore|0x100
127 !endif
128
129 #
130 # SEC Phase Global Variables :
131 # - 0x00-0x04: Debugger Exception Handler Pointer address
132 # - 0x04-0x08: Normal Exception Handler Pointer
133 # - 0x0C-0x10: MpSafe Serial Console SpinLock
134 # - 0x10-0x20: KfScb 8 Bakery Locks of 2Bytes each
135 # - 0x20-0x30: CCI 8 Bakery Locks of 2Bytes each
136 # - 0x30-0x48: ARM SMC Events (8 cores * 3 max_event * sizeof(UINT8))
137 gArmPlatformTokenSpaceGuid.PcdSecGlobalVariableSize|0x48
138
139 #
140 # ARM PrimeCell
141 #
142
143 ## SP805 Watchdog - Motherboard Watchdog
144 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
145
146 ## PL011 - Serial Terminal
147 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1C090000
148 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
149
150 ## PL031 RealTimeClock
151 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
152
153 !ifdef ARM_BIGLITTLE_TC2
154 ## PL111 Lcd & HdLcd
155 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
156 gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x2B000000
157 gArmVExpressTokenSpaceGuid.PcdHdLcdVideoModeOscId|5
158 !endif
159
160 #
161 # PL180 MMC/SD card controller
162 #
163 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
164 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
165
166
167 #
168 # ARM General Interrupt Controller
169 #
170 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
171 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
172
173 # ISP1761 USB OTG Controller
174 gEmbeddedTokenSpaceGuid.PcdIsp1761BaseAddress|0x1B000000
175
176 # Ethernet (SMSC LAN9118)
177 gEmbeddedTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x1A000000
178
179 #
180 # Define the device path to the FDT for the platform
181 #
182 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x0E800000,0x0E803000)"
183
184 #
185 # ARM OS Loader
186 #
187 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
188 gArmTokenSpaceGuid.PcdArmMachineType|2272
189 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from NorFlash"
190 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0xE000000,0xE800000)"
191 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0,38400 earlyprintk debug verbose"
192 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
193 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x0E800000,0x0E803000)"
194
195 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
196 # PL111 - CLCD
197 #gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
198 # HDLCD
199 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
200 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
201
202 #
203 # ARM Architectural Timer Frequency
204 #
205 !ifdef ARM_BIGLITTLE_TC2
206 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|24000000
207 !else
208 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|10000000
209 !endif
210
211 ################################################################################
212 #
213 # Components Section - list of all EDK II Modules needed by this Platform
214 #
215 ################################################################################
216 [Components.common]
217 #
218 # PEI Phase modules
219 #
220 ArmPlatformPkg/PrePi/PeiMPCore.inf {
221 <LibraryClasses>
222 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
223 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
224 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
225 }
226
227 #
228 # DXE
229 #
230 MdeModulePkg/Core/Dxe/DxeMain.inf {
231 <LibraryClasses>
232 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
233 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
234 }
235
236 #
237 # Architectural Protocols
238 #
239 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
240 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
241 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
242 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
243 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
244 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
245 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
246 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
247 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
248 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
249
250 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
251 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
252 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
253 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
254 EmbeddedPkg/SerialDxe/SerialDxe.inf
255
256 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
257
258 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
259 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
260 #ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
261 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/HdLcdGraphicsOutputDxe.inf
262 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
263 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
264
265 #
266 # Platform
267 #
268 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.inf
269
270 #
271 # Filesystems
272 #
273 !ifndef ARM_BIGLITTLE_TC2
274 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
275 !endif
276
277 #
278 # Multimedia Card Interface
279 #
280 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
281 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
282
283 # SMSC LAN 9118
284 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
285
286 #
287 # FAT filesystem + GPT/MBR partitioning
288 #
289 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
290 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
291 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
292
293 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
294
295 #
296 # Bds
297 #
298 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
299 ArmPlatformPkg/Bds/Bds.inf