• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Copyright (c) 2012-2015, ARM Limited. All rights reserved.
3#  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
4#
5#  This program and the accompanying materials
6#  are licensed and made available under the terms and conditions of the BSD License
7#  which accompanies this distribution.  The full text of the license may be found at
8#  http://opensource.org/licenses/bsd-license.php
9#
10#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12#
13#
14
15################################################################################
16#
17# Defines Section - statements that will be processed to create a Makefile.
18#
19################################################################################
20[Defines]
21  PLATFORM_NAME                  = ArmVExpressPkg-CTA15-A7
22  PLATFORM_GUID                  = 0b511920-978d-4b34-acc0-3d9f8e6f9d81
23  PLATFORM_VERSION               = 0.1
24  DSC_SPECIFICATION              = 0x00010005
25!ifdef $(EDK2_OUT_DIR)
26  OUTPUT_DIRECTORY               = $(EDK2_OUT_DIR)
27!else
28  OUTPUT_DIRECTORY               = Build/ArmVExpress-CTA15-A7
29!endif
30  SUPPORTED_ARCHITECTURES        = ARM
31  BUILD_TARGETS                  = DEBUG|RELEASE
32  SKUID_IDENTIFIER               = DEFAULT
33  FLASH_DEFINITION               = OpenPlatformPkg/Platforms/ARM/VExpress/ArmVExpress-CTA15-A7.fdf
34
35  DEFINE EDK2_SKIP_PEICORE = 1
36  DEFINE ARM_BIGLITTLE_TC2 = 1 # We build for the TC2 hardware by default
37
38!include OpenPlatformPkg/Platforms/ARM/VExpress/ArmVExpress.dsc.inc
39
40[LibraryClasses.common]
41  ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
42  ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
43  ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
44
45  ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
46  NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf
47
48  #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf
49
50  # ARM General Interrupt Driver in Secure and Non-secure
51  ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
52
53  LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/HdLcdArmVExpressLib/HdLcdArmVExpressLib.inf
54
55  TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
56  ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
57
58[BuildOptions]
59!ifdef ARM_BIGLITTLE_TC2
60  *_*_ARM_ARCHCC_FLAGS  = -DARM_BIGLITTLE_TC2=1
61  *_*_ARM_PP_FLAGS  = -DARM_BIGLITTLE_TC2=1
62!endif
63
64  RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
65
66  GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a15 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
67
68  XCODE:*_*_ARM_PLATFORM_FLAGS = -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/CTA15-A7
69
70################################################################################
71#
72# Pcd Section - list of all EDK II PCD Entries defined by this Platform
73#
74################################################################################
75
76[PcdsFeatureFlag.common]
77  gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
78  gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
79
80  ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
81  #  It could be set FALSE to save size.
82  gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
83
84[PcdsFixedAtBuild.common]
85  gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"
86  gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-CTA15-A7"
87
88  gArmPlatformTokenSpaceGuid.PcdCoreCount|5
89
90  #
91  # NV Storage PCDs. Use base of 0x0C000000 for NOR1
92  #
93  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000
94  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
95  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000
96  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
97  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000
98  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
99
100  gArmTokenSpaceGuid.PcdVFPEnabled|1
101
102  # Stacks for MPCores in Secure World
103  # SRAM (CS1) is only available between 0x14000000 and 0x14001000 on the model
104  # ZBT SRAM is available between 0x2E000000 and 0x2E010000 on the model
105!ifdef ARM_BIGLITTLE_TC2
106  gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x17000000
107!else
108  gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E000000
109!endif
110  gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x8000
111  gArmPlatformTokenSpaceGuid.PcdCPUCoreSecSecondaryStackSize|0x1000
112  # Share Monitor stacks with Secure World
113  gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0
114
115  # System Memory (1GB) - An additional 1GB will be added if UEFI is running on a 2GB Test Chip
116  gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
117  gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000
118
119!ifdef ARM_BIGLITTLE_TC2
120  # TC2 Dual-Cluster profile
121  gArmPlatformTokenSpaceGuid.PcdClusterCount|2
122
123  # Core Ids and Gic values
124  # A15_0 = 0x000, GicCoreId = 0
125  # A15_1 = 0x001, GicCoreId = 1
126  #  A7_0 = 0x100, GicCoreId = 2
127  #  A7_1 = 0x101, GicCoreId = 3
128  #  A7_2 = 0x102, GicCoreId = 4
129  gArmTokenSpaceGuid.PcdArmPrimaryCore|0x100
130!endif
131
132  #
133  # ARM PrimeCell
134  #
135
136  ## SP805 Watchdog - Motherboard Watchdog
137  gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000
138
139  ## PL011 - Serial Terminal
140  gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1C090000
141  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400
142  gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
143
144  ## PL031 RealTimeClock
145  gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
146
147!ifdef ARM_BIGLITTLE_TC2
148  ## PL111 Lcd & HdLcd
149  gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000
150  gArmPlatformTokenSpaceGuid.PcdArmHdLcdBase|0x2B000000
151  gArmVExpressTokenSpaceGuid.PcdHdLcdVideoModeOscId|5
152!endif
153
154  #
155  # PL180 MMC/SD card controller
156  #
157  gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048
158  gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000
159
160
161  #
162  # ARM General Interrupt Controller
163  #
164  gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000
165  gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C002000
166
167  # ISP1761 USB OTG Controller
168  gEmbeddedTokenSpaceGuid.PcdIsp1761BaseAddress|0x1B000000
169
170  # Ethernet (SMSC LAN9118)
171  gEmbeddedTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x1A000000
172  gEmbeddedTokenSpaceGuid.PcdLan9118DefaultNegotiationTimeout|400000
173
174  #
175  # Define the device path to the FDT for the platform
176  #
177  gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/ca15a7"
178
179  #
180  # ARM Architectural Timer Frequency
181  #
182!ifdef ARM_BIGLITTLE_TC2
183  gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|24000000
184!else
185  gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|10000000
186!endif
187
188################################################################################
189#
190# Components Section - list of all EDK II Modules needed by this Platform
191#
192################################################################################
193[Components.common]
194  #
195  # PEI Phase modules
196  #
197  ArmPlatformPkg/PrePi/PeiMPCore.inf {
198    <LibraryClasses>
199      ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15-A7/ArmVExpressLib.inf
200  }
201
202  #
203  # DXE
204  #
205  MdeModulePkg/Core/Dxe/DxeMain.inf {
206    <LibraryClasses>
207      PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
208      NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
209  }
210
211  #
212  # Architectural Protocols
213  #
214  ArmPkg/Drivers/CpuDxe/CpuDxe.inf
215  MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
216  MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
217  MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
218  MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
219    <LibraryClasses>
220      NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
221  }
222  MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
223  MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
224  EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
225  EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
226  EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
227
228  MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
229  MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
230  MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
231  MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
232  MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
233
234  MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
235
236  ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
237  ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
238  #ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
239  ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/HdLcdGraphicsOutputDxe.inf
240  ArmPkg/Drivers/TimerDxe/TimerDxe.inf
241  ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
242
243  #
244  # Platform
245  #
246  ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmHwDxe.inf {
247    <LibraryClasses>
248      BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
249  }
250
251  #
252  # Filesystems
253  #
254!ifndef ARM_BIGLITTLE_TC2
255  ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
256!endif
257
258  #
259  # Multimedia Card Interface
260  #
261  EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
262  ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
263
264  # SMSC LAN 9118
265  EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
266
267  #
268  # FAT filesystem + GPT/MBR partitioning
269  #
270  MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
271  MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
272  MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
273
274  MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
275
276  #
277  # Bds
278  #
279  MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
280  MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
281  MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
282  MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
283  MdeModulePkg/Application/UiApp/UiApp.inf {
284    <LibraryClasses>
285      NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
286      NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
287      NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
288  }
289