blob: 521f4ed8132c8aca315bd5a2d3fe4bd138cf3c89 [file] [log] [blame]
Vishal Bhoj82c80712015-12-15 21:13:33 +05301#
2# Copyright (c) 2012-2014, 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[PcdsFixedAtBuild.common]
77 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
78 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-CTA15-A7"
79
80 gArmPlatformTokenSpaceGuid.PcdCoreCount|5
81
82 #
83 # NV Storage PCDs. Use base of 0x0C000000 for NOR1
84 #
85 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
86 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
87 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
88 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
89 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
90 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
91
92 gArmTokenSpaceGuid.PcdVFPEnabled|1
93
94 # Stacks for MPCores in Secure World
95 # SRAM (CS1) is only available between 0x14000000 and 0x14001000 on the model
96 # ZBT SRAM is available between 0x2E000000 and 0x2E010000 on the model
97!ifdef ARM_BIGLITTLE_TC2
98 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x17000000
99!else
100 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E000000
101!endif
102 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x8000
103 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x1000
104 # Share Monitor stacks with Secure World
105 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0
106
107 # System Memory (1GB) - An additional 1GB will be added if UEFI is running on a 2GB Test Chip
108 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
109 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
110
111!ifdef ARM_BIGLITTLE_TC2
112 # TC2 Dual-Cluster profile
113 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
114
115 # Core Ids and Gic values
116 # A15_0 = 0x000, GicCoreId = 0
117 # A15_1 = 0x001, GicCoreId = 1
118 # A7_0 = 0x100, GicCoreId = 2
119 # A7_1 = 0x101, GicCoreId = 3
120 # A7_2 = 0x102, GicCoreId = 4
121 gArmTokenSpaceGuid.PcdArmPrimaryCore|0x100
122!endif
123
124 #
125 # SEC Phase Global Variables :
126 # - 0x00-0x04: Debugger Exception Handler Pointer address
127 # - 0x04-0x08: Normal Exception Handler Pointer
128 # - 0x0C-0x10: MpSafe Serial Console SpinLock
129 # - 0x10-0x20: KfScb 8 Bakery Locks of 2Bytes each
130 # - 0x20-0x30: CCI 8 Bakery Locks of 2Bytes each
131 # - 0x30-0x48: ARM SMC Events (8 cores * 3 max_event * sizeof(UINT8))
132 gArmPlatformTokenSpaceGuid.PcdSecGlobalVariableSize|0x48
133
134 #
135 # ARM PrimeCell
136 #
137
138 ## SP805 Watchdog - Motherboard Watchdog
139 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
140
141 ## PL011 - Serial Terminal
142 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1C090000
143 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
144
145 ## PL031 RealTimeClock
146 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
147
148!ifdef ARM_BIGLITTLE_TC2
149 ## PL111 Lcd & HdLcd
150 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
151 gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x2B000000
152 gArmVExpressTokenSpaceGuid.PcdHdLcdVideoModeOscId|5
153!endif
154
155 #
156 # PL180 MMC/SD card controller
157 #
158 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
159 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
160
161
162 #
163 # ARM General Interrupt Controller
164 #
165 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
166 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
167
168 # ISP1761 USB OTG Controller
169 gEmbeddedTokenSpaceGuid.PcdIsp1761BaseAddress|0x1B000000
170
171 # Ethernet (SMSC LAN9118)
172 gEmbeddedTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x1A000000
173
174 #
175 # ARM OS Loader
176 #
177 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
178 gArmTokenSpaceGuid.PcdArmMachineType|2272
179 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from NorFlash"
180 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0xE000000,0xE800000)"
181 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0,38400 earlyprintk debug verbose"
182 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
183 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x0E800000,0x0E803000)"
184
185 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
186 # PL111 - CLCD
187 #gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
188 # HDLCD
189 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
190 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
191
192 #
193 # ARM Architectural Timer Frequency
194 #
195!ifdef ARM_BIGLITTLE_TC2
196 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|24000000
197!else
198 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|10000000
199!endif
200
201################################################################################
202#
203# Components Section - list of all EDK II Modules needed by this Platform
204#
205################################################################################
206[Components.common]
207 #
208 # PEI Phase modules
209 #
210 ArmPlatformPkg/PrePi/PeiMPCore.inf {
211 <LibraryClasses>
212 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
213 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
214 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
215 }
216
217 #
218 # DXE
219 #
220 MdeModulePkg/Core/Dxe/DxeMain.inf {
221 <LibraryClasses>
222 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
223 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
224 }
225
226 #
227 # Architectural Protocols
228 #
229 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
230 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
231 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
232 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
233 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
234 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
235 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
236 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
237 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
238 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
239
240 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
241 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
242 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
243 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
244 EmbeddedPkg/SerialDxe/SerialDxe.inf
245
246 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
247
248 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
249 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
250 #ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
251 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/HdLcdGraphicsOutputDxe.inf
252 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
253 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
254
255 #
256 # Platform
257 #
258 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.inf
259
260 #
261 # Filesystems
262 #
263!ifndef ARM_BIGLITTLE_TC2
264 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
265!endif
266
267 #
268 # Multimedia Card Interface
269 #
270 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
271 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
272
273 # SMSC LAN 9118
274 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
275
276 #
277 # FAT filesystem + GPT/MBR partitioning
278 #
279 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
280 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
281 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
282
283 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
284
285 #
286 # Bds
287 #
288 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
289 ArmPlatformPkg/Bds/Bds.inf