2 # Copyright (c) 2012-2014, ARM Limited. All rights reserved.
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
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.
14 ################################################################################
16 # Defines Section - statements that will be processed to create a Makefile.
18 ################################################################################
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
31 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
33 [LibraryClasses.common]
34 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
35 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
37 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
38 NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
40 #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
42 # ARM General Interrupt Driver in Secure and Non-secure
43 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
45 LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpressLib.inf
47 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
48 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
51 !ifdef ARM_BIGLITTLE_TC2
52 RVCT:*_*_ARM_ARCHCC_FLAGS = -DARM_BIGLITTLE_TC2=1
53 RVCT:*_*_ARM_PP_FLAGS = -DARM_BIGLITTLE_TC2=1
55 GCC:*_*_ARM_ARCHCC_FLAGS = -DARM_BIGLITTLE_TC2=1
56 GCC:*_*_ARM_PP_FLAGS = -DARM_BIGLITTLE_TC2=1
59 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
61 GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
63 XCODE:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
65 ################################################################################
67 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
69 ################################################################################
71 [PcdsFeatureFlag.common]
72 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
73 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
75 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
76 # It could be set FALSE to save size.
77 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
79 [PcdsFixedAtBuild.common]
80 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
81 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-CTA15-A7"
83 gArmPlatformTokenSpaceGuid.PcdCoreCount|5
86 # NV Storage PCDs. Use base of 0x0C000000 for NOR1
88 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
89 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
90 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
91 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
92 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
93 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
95 gArmTokenSpaceGuid.PcdVFPEnabled|1
97 # Stacks for MPCores in Secure World
98 # SRAM (CS1) is only available between 0x14000000 and 0x14001000 on the model
99 # ZBT SRAM is available between 0x2E000000 and 0x2E010000 on the model
100 !ifdef ARM_BIGLITTLE_TC2
101 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x17000000
103 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E000000
105 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x8000
106 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x1000
107 # Share Monitor stacks with Secure World
108 gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0
110 # System Memory (1GB) - An additional 1GB will be added if UEFI is running on a 2GB Test Chip
111 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
112 gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
114 !ifdef ARM_BIGLITTLE_TC2
115 # TC2 Dual-Cluster profile
116 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
118 # Core Ids and Gic values
119 # A15_0 = 0x000, GicCoreId = 0
120 # A15_1 = 0x001, GicCoreId = 1
121 # A7_0 = 0x100, GicCoreId = 2
122 # A7_1 = 0x101, GicCoreId = 3
123 # A7_2 = 0x102, GicCoreId = 4
124 gArmTokenSpaceGuid.PcdArmPrimaryCore|0x100
128 # SEC Phase Global Variables :
129 # - 0x00-0x04: Debugger Exception Handler Pointer address
130 # - 0x04-0x08: Normal Exception Handler Pointer
131 # - 0x0C-0x10: MpSafe Serial Console SpinLock
132 # - 0x10-0x20: KfScb 8 Bakery Locks of 2Bytes each
133 # - 0x20-0x30: CCI 8 Bakery Locks of 2Bytes each
134 # - 0x30-0x48: ARM SMC Events (8 cores * 3 max_event * sizeof(UINT8))
135 gArmPlatformTokenSpaceGuid.PcdSecGlobalVariableSize|0x48
141 ## SP805 Watchdog - Motherboard Watchdog
142 gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
144 ## PL011 - Serial Terminal
145 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1C090000
146 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
148 ## PL031 RealTimeClock
149 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
151 !ifdef ARM_BIGLITTLE_TC2
153 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
154 gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x2B000000
155 gArmVExpressTokenSpaceGuid.PcdHdLcdVideoModeOscId|5
159 # PL180 MMC/SD card controller
161 gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
162 gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
166 # ARM General Interrupt Controller
168 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
169 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
174 # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:
175 gArmTokenSpaceGuid.PcdArmMachineType|2272
176 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from NorFlash"
177 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0xE000000,0xE800000)"
178 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0,38400 earlyprintk debug verbose"
179 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
180 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)/MemoryMapped(0x0,0x0E800000,0x0E803000)"
182 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
184 #gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"
186 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
187 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"
190 # ARM Architectural Timer Frequency
192 !ifdef ARM_BIGLITTLE_TC2
193 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|24000000
195 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|10000000
198 ################################################################################
200 # Components Section - list of all EDK II Modules needed by this Platform
202 ################################################################################
207 ArmPlatformPkg/PrePi/PeiMPCore.inf {
209 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
210 ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
211 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
217 MdeModulePkg/Core/Dxe/DxeMain.inf {
219 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
220 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
224 # Architectural Protocols
226 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
227 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
228 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
229 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
230 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
231 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
232 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
233 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
234 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
235 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
237 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
238 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
239 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
240 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
241 EmbeddedPkg/SerialDxe/SerialDxe.inf
243 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
245 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
246 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
247 #ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
248 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/HdLcdGraphicsOutputDxe.inf
249 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
250 ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
255 ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.inf
260 !ifndef ARM_BIGLITTLE_TC2
261 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
265 # Multimedia Card Interface
267 EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
268 ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
271 # FAT filesystem + GPT/MBR partitioning
273 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
274 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
275 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
277 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
282 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
283 ArmPlatformPkg/Bds/Bds.inf