]>
Commit | Line | Data |
---|---|---|
0db25ccc | 1 | #\r |
2 | # Copyright (c) 2011, ARM Limited. All rights reserved.\r | |
3 | # \r | |
4 | # This program and the accompanying materials \r | |
5 | # are licensed and made available under the terms and conditions of the BSD License \r | |
6 | # which accompanies this distribution. The full text of the license may be found at \r | |
7 | # http://opensource.org/licenses/bsd-license.php \r | |
8 | #\r | |
9 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | #\r | |
12 | #\r | |
13 | \r | |
14 | ################################################################################\r | |
15 | #\r | |
16 | # Defines Section - statements that will be processed to create a Makefile.\r | |
17 | #\r | |
18 | ################################################################################\r | |
19 | [Defines]\r | |
20 | PLATFORM_NAME = ArmVExpressPkg-RTSM-A9x4\r | |
21 | PLATFORM_GUID = e46039e0-5bb3-11e0-a9d6-0002a5d5c51b\r | |
22 | PLATFORM_VERSION = 0.1\r | |
23 | DSC_SPECIFICATION = 0x00010005\r | |
24 | OUTPUT_DIRECTORY = Build/ArmVExpress-RTSM-A9x4\r | |
25 | SUPPORTED_ARCHITECTURES = ARM\r | |
26 | BUILD_TARGETS = DEBUG|RELEASE\r | |
27 | SKUID_IDENTIFIER = DEFAULT\r | |
28 | FLASH_DEFINITION = ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A9x4.fdf\r | |
29 | \r | |
30 | !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc\r | |
31 | \r | |
32 | [LibraryClasses.common]\r | |
33 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r | |
34 | ArmCpuLib|ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Lib.inf\r | |
35 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r | |
36 | \r | |
37 | ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf\r | |
38 | NorFlashPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/NorFlashArmVExpressLib/NorFlashArmVExpressLib.inf\r | |
39 | LcdPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/PL111LcdArmVExpressLib/PL111LcdArmVExpressLib.inf\r | |
40 | \r | |
41 | #DebugAgentTimerLib|ArmPlatformPkg/ArmVExpressPkg/Library/DebugAgentTimerLib/DebugAgentTimerLib.inf\r | |
42 | \r | |
43 | [LibraryClasses.common.SEC]\r | |
44 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf\r | |
45 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressSecLib.inf\r | |
46 | \r | |
47 | # Uncomment to turn on GDB stub in SEC. \r | |
48 | #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf\r | |
49 | \r | |
50 | # ARM PL390 General Interrupt Driver in Secure and Non-secure\r | |
51 | ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicSecLib.inf\r | |
52 | ArmGicLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf\r | |
53 | \r | |
54 | [BuildOptions]\r | |
55 | RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A9 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
56 | \r | |
57 | GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
58 | \r | |
59 | XCODE:*_*_ARM_PLATFORM_FLAGS == -march=armv7-a -mfpu=neon -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
60 | \r | |
61 | ################################################################################\r | |
62 | #\r | |
63 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform\r | |
64 | #\r | |
65 | ################################################################################\r | |
66 | \r | |
67 | [PcdsFeatureFlag.common]\r | |
68 | \r | |
69 | !ifdef $(EDK2_SKIP_PEICORE)\r | |
70 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE\r | |
71 | gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE\r | |
72 | !endif\r | |
73 | \r | |
74 | ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r | |
75 | # It could be set FALSE to save size.\r | |
76 | gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r | |
77 | \r | |
78 | [PcdsFixedAtBuild.common]\r | |
79 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"\r | |
80 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-RTSM"\r | |
81 | \r | |
82 | #\r | |
83 | # NV Storage PCDs. Use base of 0x0C000000 for NOR1\r | |
84 | #\r | |
85 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000\r | |
86 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000\r | |
87 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000\r | |
88 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000\r | |
89 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000\r | |
90 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000\r | |
91 | \r | |
92 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
93 | \r | |
94 | # Stacks for MPCores in Secure World\r | |
95 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E009000\r | |
96 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r | |
97 | \r | |
98 | # Stacks for MPCores in Monitor Mode\r | |
99 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x2E008000\r | |
100 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x100\r | |
101 | \r | |
102 | # Stacks for MPCores in Normal World\r | |
103 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000\r | |
104 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
105 | \r | |
106 | # System Memory (1GB) \r | |
107 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r | |
108 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000\r | |
109 | \r | |
110 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
111 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
112 | \r | |
113 | #\r | |
114 | # ARM Pcds\r | |
115 | #\r | |
116 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
117 | \r | |
118 | #\r | |
119 | # ARM PrimeCell\r | |
120 | #\r | |
121 | \r | |
122 | ## SP804 Timer\r | |
123 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000\r | |
124 | gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms\r | |
125 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34\r | |
126 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x1c110000\r | |
127 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x1c110020\r | |
128 | gArmPlatformTokenSpaceGuid.PcdSP804TimerDebugAgentTimerBase|0x1c120000\r | |
129 | gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x1c120020\r | |
130 | \r | |
131 | ## SP805 Watchdog - Motherboard Watchdog\r | |
132 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000\r | |
133 | \r | |
134 | ## PL011 - Serial Terminal\r | |
135 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r | |
136 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
137 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|8\r | |
138 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|1\r | |
139 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|1\r | |
140 | gArmPlatformTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|32\r | |
141 | gArmPlatformTokenSpaceGuid.PcdUartDefaultTimeout|1000000\r | |
142 | \r | |
143 | ## PL031 RealTimeClock\r | |
144 | gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000\r | |
145 | \r | |
146 | ## PL111 Versatile Express Motherboard controller\r | |
147 | gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000\r | |
148 | \r | |
149 | ## PL180 MMC/SD card controller\r | |
150 | gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048\r | |
151 | gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000\r | |
152 | \r | |
153 | #\r | |
154 | # ARM PL390 General Interrupt Controller\r | |
155 | #\r | |
156 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r | |
157 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C000100\r | |
158 | \r | |
159 | #\r | |
160 | # ARM OS Loader\r | |
161 | #\r | |
162 | # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux: \r | |
163 | gArmTokenSpaceGuid.PcdArmMachineType|2272\r | |
164 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"SemiHosting"\r | |
165 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/zImage"\r | |
166 | gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|""\r | |
167 | gArmPlatformTokenSpaceGuid.PcdDefaultBootType|1\r | |
168 | \r | |
169 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
170 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r | |
171 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
172 | \r | |
173 | #\r | |
174 | # ARM L2x0 PCDs\r | |
175 | #\r | |
176 | gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000\r | |
177 | \r | |
178 | ################################################################################\r | |
179 | #\r | |
180 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
181 | #\r | |
182 | ################################################################################\r | |
183 | [Components.common]\r | |
184 | \r | |
185 | #\r | |
186 | # SEC\r | |
187 | #\r | |
188 | ArmPlatformPkg/Sec/Sec.inf\r | |
189 | \r | |
190 | #\r | |
191 | # PEI Phase modules\r | |
192 | #\r | |
193 | !ifdef $(EDK2_SKIP_PEICORE)\r | |
194 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
195 | <LibraryClasses>\r | |
196 | ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf\r | |
197 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r | |
198 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r | |
199 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r | |
200 | }\r | |
201 | !else\r | |
202 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r | |
203 | <LibraryClasses>\r | |
204 | ArmGicSecLib|ArmPkg/Drivers/PL390Gic/PL390GicLib.inf\r | |
205 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
206 | }\r | |
207 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
208 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
209 | <LibraryClasses>\r | |
210 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
211 | }\r | |
212 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
213 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
214 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
215 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
216 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
217 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
218 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
219 | <LibraryClasses>\r | |
220 | NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r | |
221 | }\r | |
222 | !endif\r | |
223 | \r | |
224 | #\r | |
225 | # DXE\r | |
226 | #\r | |
227 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
228 | <LibraryClasses>\r | |
229 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
230 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
231 | }\r | |
232 | \r | |
233 | #\r | |
234 | # Architectural Protocols\r | |
235 | #\r | |
236 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf \r | |
237 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
238 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
239 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
240 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r | |
241 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
242 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf \r | |
243 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
244 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
245 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
246 | \r | |
247 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
248 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
249 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
250 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
251 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
252 | \r | |
253 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
254 | \r | |
255 | ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf\r | |
256 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r | |
257 | ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf\r | |
258 | ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r | |
259 | ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r | |
260 | \r | |
261 | #\r | |
262 | # Semi-hosting filesystem\r | |
263 | #\r | |
264 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
265 | \r | |
266 | #\r | |
267 | # Multimedia Card Interface\r | |
268 | #\r | |
269 | EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r | |
270 | ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r | |
271 | \r | |
272 | #\r | |
273 | # FAT filesystem + GPT/MBR partitioning\r | |
274 | #\r | |
275 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
276 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
277 | FatPkg/EnhancedFatDxe/Fat.inf\r | |
278 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
279 | \r | |
280 | #\r | |
281 | # Application\r | |
282 | # \r | |
283 | EmbeddedPkg/Ebl/Ebl.inf\r | |
284 | \r | |
285 | !ifdef $(EDK2_ARMVE_UEFI2_SHELL)\r | |
286 | ShellPkg/Application/Shell/Shell.inf {\r | |
287 | <LibraryClasses>\r | |
288 | ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r | |
289 | NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r | |
290 | NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf\r | |
291 | NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf\r | |
292 | NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf\r | |
293 | NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf\r | |
294 | NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf\r | |
295 | NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf\r | |
296 | HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf\r | |
297 | FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r | |
298 | ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r | |
299 | SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf\r | |
300 | \r | |
301 | <PcdsFixedAtBuild>\r | |
302 | gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF\r | |
303 | gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE\r | |
304 | gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000\r | |
305 | }\r | |
306 | !endif\r | |
307 | \r | |
308 | #\r | |
309 | # Bds\r | |
310 | #\r | |
311 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
312 | ArmPlatformPkg/Bds/Bds.inf\r |