]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-A9x2.dsc
ArmPlatformPkg/ArmRealViewEbPkg: Introduce 'ArmRealViewEb.dsc.inc' to avoid duplicati...
[mirror_edk2.git] / ArmPlatformPkg / ArmRealViewEbPkg / ArmRealViewEb-RTSM-A9x2.dsc
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 = ArmRealViewEb-RTSM-A9x2
21 PLATFORM_GUID = f6c2f4a0-2027-11e0-a2a1-0002a5d5c51b
22 PLATFORM_VERSION = 0.1
23 DSC_SPECIFICATION = 0x00010005
24 OUTPUT_DIRECTORY = Build/ArmRealViewEb-RTSM-A9x2
25 SUPPORTED_ARCHITECTURES = ARM
26 BUILD_TARGETS = DEBUG|RELEASE
27 SKUID_IDENTIFIER = DEFAULT
28 FLASH_DEFINITION = ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-MPCore.fdf
29
30 !include ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb.dsc.inc
31
32 [LibraryClasses.common]
33 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLib.inf
34 ArmPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbLib.inf
35
36 # ARM PL390 General Interrupt Driver in Secure and Non-secure
37 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf
38 ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
39
40 [LibraryClasses.common.SEC]
41 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLibSec.inf
42 ArmPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbSecLib.inf
43
44 [BuildOptions]
45 RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A9 --fpu=softvfp -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
46
47 GCC:*_*_ARM_PLATFORM_FLAGS == -march=armv7-a -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
48
49 XCODE:*_*_ARM_PLATFORM_FLAGS == -arch armv7 -I$(WORKSPACE)/ArmPlatformPkg/ArmRealViewEbPkg/Include/Platform
50
51
52 ################################################################################
53 #
54 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
55 #
56 ################################################################################
57
58 [PcdsFeatureFlag.common]
59 !if $(EDK2_SKIP_PEICORE) == 1
60 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
61 gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE
62 !endif
63
64 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
65 # It could be set FALSE to save size.
66 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
67
68 [PcdsFixedAtBuild.common]
69 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM RealView Emulation Board"
70 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmRealViewEb-A9x2"
71
72 #
73 # NV Storage PCDs. Use base of 0x43F00000 for NOR0
74 #
75 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x43F00000
76 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x000C0000
77 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x43FC0000
78 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00020000
79 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x43FE0000
80 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00020000
81
82 gArmPlatformTokenSpaceGuid.PcdMPCoreSupport|1
83
84 # Stacks for MPCores in Secure World
85 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x4B000000
86 # Stacks for MPCores in Monitor Mode
87 gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x4A000000
88 # Stacks for MPCores in Normal World
89 gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x48000000
90
91 # System Memory (256MB)
92 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x70000000
93 gArmTokenSpaceGuid.PcdSystemMemorySize|0x10000000
94
95 # Size of the region used by UEFI in permanent memory (Reserved 64MB)
96 gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
97
98 #
99 # ARM Pcds
100 #
101 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
102
103 #
104 # ARM EB PCDS
105 #
106 gArmRealViewEbPkgTokenSpaceGuid.PcdGdbUartBase|0x1000a000
107
108 #
109 # ARM PrimeCells
110 #
111
112 ## SP804 Timer
113 gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000
114 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms
115 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|33
116 gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x10011000
117 gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x10011020
118 gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x10012020
119
120 ## PL031 RealTimeClock
121 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x10017000
122
123 ## PL111 Lcd
124 gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x10020000
125
126 #
127 # ARM PL011 - Serial Terminal
128 #
129 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x10009000
130
131 #
132 # ARM PL390 General Interrupt Controller
133 #
134 gArmTokenSpaceGuid.PcdGicDistributorBase|0x1F001000
135 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x1F000100
136 gArmTokenSpaceGuid.PcdGicNumInterrupts|96
137
138 #
139 # ARM L2x0 PCDs
140 #
141 gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1F002000
142
143 ################################################################################
144 #
145 # Components Section - list of all EDK II Modules needed by this Platform
146 #
147 ################################################################################
148 [Components.common]
149
150 #
151 # SEC
152 #
153 ArmPlatformPkg/Sec/Sec.inf
154
155 #
156 # PEI Phase modules
157 #
158 !if $(EDK2_SKIP_PEICORE) == 1
159 ArmPlatformPkg/PrePi/PeiMPCore.inf {
160 <LibraryClasses>
161 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
162 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7MPCoreLib.inf
163 ArmPlatformLib|ArmPlatformPkg/ArmRealViewEbPkg/Library/ArmRealViewEbLibRTSM/ArmRealViewEbLib.inf
164 }
165 !else
166 ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {
167 <LibraryClasses>
168 ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf
169 }
170 MdeModulePkg/Core/Pei/PeiMain.inf
171 MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
172 <LibraryClasses>
173 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
174 }
175 ArmPlatformPkg/PlatformPei/PlatformPeim.inf
176 ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
177 ArmPkg/Drivers/CpuPei/CpuPei.inf
178 IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
179 Nt32Pkg/BootModePei/BootModePei.inf
180 MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
181 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
182 <LibraryClasses>
183 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
184 }
185 !endif
186
187 #
188 # DXE
189 #
190 MdeModulePkg/Core/Dxe/DxeMain.inf {
191 <LibraryClasses>
192 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
193 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
194 }
195
196 #
197 # Architectural Protocols
198 #
199 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
200 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
201 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
202 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
203 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
204 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
205 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
206 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
207
208 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
209 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
210 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
211
212 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
213 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
214 ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
215
216 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
217 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
218 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
219 EmbeddedPkg/SerialDxe/SerialDxe.inf
220
221 ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
222 ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
223
224 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
225
226 #
227 # Semi-hosting filesystem
228 #
229 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
230
231 #
232 # FAT filesystem + GPT/MBR partitioning
233 #
234 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
235 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
236 FatPkg/EnhancedFatDxe/Fat.inf
237 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
238
239 #
240 # Application
241 #
242 EmbeddedPkg/Ebl/Ebl.inf
243
244 #
245 # Bds
246 #
247 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
248 ArmPlatformPkg/Bds/Bds.inf