]>
Commit | Line | Data |
---|---|---|
1 | #\r | |
2 | # Copyright (c) 2011-2015, 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 | \r | |
44 | # Virtio Support\r | |
45 | VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf\r | |
46 | VirtioMmioDeviceLib|OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDeviceLib.inf\r | |
47 | \r | |
48 | [LibraryClasses.common.SEC]\r | |
49 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7LibSec.inf\r | |
50 | ArmPlatformSecLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/ArmVExpressSecLib.inf\r | |
51 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLibSec.inf\r | |
52 | \r | |
53 | # Uncomment to turn on GDB stub in SEC.\r | |
54 | #DebugAgentLib|EmbeddedPkg/Library/GdbDebugAgent/GdbDebugAgent.inf\r | |
55 | \r | |
56 | [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]\r | |
57 | PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r | |
58 | \r | |
59 | [BuildOptions]\r | |
60 | RVCT:*_*_ARM_PLATFORM_FLAGS == --cpu Cortex-A9 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
61 | \r | |
62 | GCC:*_*_ARM_PLATFORM_FLAGS == -mcpu=cortex-a9 -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
63 | \r | |
64 | XCODE:*_*_ARM_PLATFORM_FLAGS == -march=armv7-a -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include/Platform/RTSM\r | |
65 | \r | |
66 | ################################################################################\r | |
67 | #\r | |
68 | # Pcd Section - list of all EDK II PCD Entries defined by this Platform\r | |
69 | #\r | |
70 | ################################################################################\r | |
71 | \r | |
72 | [PcdsFeatureFlag.common]\r | |
73 | \r | |
74 | !ifdef EDK2_SKIP_PEICORE\r | |
75 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE\r | |
76 | gArmPlatformTokenSpaceGuid.PcdSendSgiToBringUpSecondaryCores|TRUE\r | |
77 | !endif\r | |
78 | \r | |
79 | ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.\r | |
80 | # It could be set FALSE to save size.\r | |
81 | gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE\r | |
82 | \r | |
83 | #\r | |
84 | # FDT installation : enable the development specific features\r | |
85 | #\r | |
86 | gEmbeddedTokenSpaceGuid.PcdOverridePlatformFdt|TRUE\r | |
87 | \r | |
88 | [PcdsFixedAtBuild.common]\r | |
89 | gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Versatile Express"\r | |
90 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmVExpress-RTSM"\r | |
91 | \r | |
92 | gArmPlatformTokenSpaceGuid.PcdCoreCount|4\r | |
93 | \r | |
94 | #\r | |
95 | # NV Storage PCDs. Use base of 0x0C000000 for NOR1\r | |
96 | #\r | |
97 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0FFC0000\r | |
98 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000\r | |
99 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0FFD0000\r | |
100 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000\r | |
101 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0FFE0000\r | |
102 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000\r | |
103 | \r | |
104 | gArmTokenSpaceGuid.PcdVFPEnabled|1\r | |
105 | \r | |
106 | # Stacks for MPCores in Secure World\r | |
107 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecStackBase|0x2E009000\r | |
108 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecPrimaryStackSize|0x1000\r | |
109 | \r | |
110 | # Stacks for MPCores in Monitor Mode\r | |
111 | gArmPlatformTokenSpaceGuid.PcdCPUCoresSecMonStackBase|0x2E008000\r | |
112 | gArmPlatformTokenSpaceGuid.PcdCPUCoreSecMonStackSize|0x100\r | |
113 | \r | |
114 | # Stacks for MPCores in Normal World\r | |
115 | gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000\r | |
116 | gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000\r | |
117 | \r | |
118 | # System Memory (1GB)\r | |
119 | gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000\r | |
120 | gArmTokenSpaceGuid.PcdSystemMemorySize|0x40000000\r | |
121 | \r | |
122 | # Size of the region used by UEFI in permanent memory (Reserved 64MB)\r | |
123 | gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000\r | |
124 | \r | |
125 | #\r | |
126 | # ARM Pcds\r | |
127 | #\r | |
128 | gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000\r | |
129 | \r | |
130 | #\r | |
131 | # ARM PrimeCell\r | |
132 | #\r | |
133 | \r | |
134 | ## SP804 Timer\r | |
135 | gEmbeddedTokenSpaceGuid.PcdEmbeddedPerformanceCounterFrequencyInHz|1000000\r | |
136 | gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000 # expressed in 100ns units, 100,000 x 100 ns = 10,000,000 ns = 10 ms\r | |
137 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicInterruptNum|34\r | |
138 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPeriodicBase|0x1c110000\r | |
139 | gArmPlatformTokenSpaceGuid.PcdSP804TimerPerformanceBase|0x1c110020\r | |
140 | gArmPlatformTokenSpaceGuid.PcdSP804TimerMetronomeBase|0x1c120020\r | |
141 | \r | |
142 | ## SP805 Watchdog - Motherboard Watchdog\r | |
143 | gArmPlatformTokenSpaceGuid.PcdSP805WatchdogBase|0x1C0F0000\r | |
144 | \r | |
145 | ## PL011 - Serial Terminal\r | |
146 | gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x1c090000\r | |
147 | gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|38400\r | |
148 | \r | |
149 | ## PL031 RealTimeClock\r | |
150 | gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000\r | |
151 | \r | |
152 | ## PL111 Versatile Express Motherboard controller\r | |
153 | gArmPlatformTokenSpaceGuid.PcdPL111LcdBase|0x1C1F0000\r | |
154 | \r | |
155 | ## PL180 MMC/SD card controller\r | |
156 | gArmPlatformTokenSpaceGuid.PcdPL180SysMciRegAddress|0x1C010048\r | |
157 | gArmPlatformTokenSpaceGuid.PcdPL180MciBaseAddress|0x1C050000\r | |
158 | \r | |
159 | #\r | |
160 | # ARM General Interrupt Controller\r | |
161 | #\r | |
162 | gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C001000\r | |
163 | gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C000100\r | |
164 | \r | |
165 | #\r | |
166 | # ARM OS Loader\r | |
167 | #\r | |
168 | # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux:\r | |
169 | gArmTokenSpaceGuid.PcdArmMachineType|2272\r | |
170 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"SemiHosting"\r | |
171 | gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/zImage"\r | |
172 | gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2\r | |
173 | gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/rtsm_ve-cortex_a9x4.dtb"\r | |
174 | \r | |
175 | # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)\r | |
176 | gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)"\r | |
177 | gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi()"\r | |
178 | \r | |
179 | #\r | |
180 | # ARM L2x0 PCDs\r | |
181 | #\r | |
182 | gArmTokenSpaceGuid.PcdL2x0ControllerBase|0x1E00A000\r | |
183 | \r | |
184 | [PcdsDynamicDefault.common]\r | |
185 | #\r | |
186 | # The size of a dynamic PCD of the (VOID*) type can not be increased at run\r | |
187 | # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128\r | |
188 | # character "empty" string, to allow to be able to set FDT text device paths\r | |
189 | # up to 128 characters long.\r | |
190 | #\r | |
191 | gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "\r | |
192 | \r | |
193 | ################################################################################\r | |
194 | #\r | |
195 | # Components Section - list of all EDK II Modules needed by this Platform\r | |
196 | #\r | |
197 | ################################################################################\r | |
198 | [Components.common]\r | |
199 | \r | |
200 | #\r | |
201 | # SEC\r | |
202 | #\r | |
203 | ArmPlatformPkg/Sec/Sec.inf {\r | |
204 | <LibraryClasses>\r | |
205 | # Use the implementation which set the Secure bits\r | |
206 | ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf\r | |
207 | }\r | |
208 | \r | |
209 | #\r | |
210 | # PEI Phase modules\r | |
211 | #\r | |
212 | !ifdef EDK2_SKIP_PEICORE\r | |
213 | ArmPlatformPkg/PrePi/PeiMPCore.inf {\r | |
214 | <LibraryClasses>\r | |
215 | ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf\r | |
216 | ArmPlatformLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/ArmVExpressLib.inf\r | |
217 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf\r | |
218 | }\r | |
219 | !else\r | |
220 | ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf {\r | |
221 | <LibraryClasses>\r | |
222 | ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/Pei/PeiArmPlatformGlobalVariableLib.inf\r | |
223 | }\r | |
224 | MdeModulePkg/Core/Pei/PeiMain.inf\r | |
225 | MdeModulePkg/Universal/PCD/Pei/Pcd.inf {\r | |
226 | <LibraryClasses>\r | |
227 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
228 | }\r | |
229 | ArmPlatformPkg/PlatformPei/PlatformPeim.inf\r | |
230 | ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf\r | |
231 | ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
232 | IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
233 | Nt32Pkg/BootModePei/BootModePei.inf\r | |
234 | MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
235 | MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {\r | |
236 | <LibraryClasses>\r | |
237 | NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r | |
238 | }\r | |
239 | !endif\r | |
240 | \r | |
241 | #\r | |
242 | # DXE\r | |
243 | #\r | |
244 | MdeModulePkg/Core/Dxe/DxeMain.inf {\r | |
245 | <LibraryClasses>\r | |
246 | PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r | |
247 | NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf\r | |
248 | }\r | |
249 | \r | |
250 | #\r | |
251 | # Architectural Protocols\r | |
252 | #\r | |
253 | ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
254 | MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
255 | MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
256 | MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
257 | MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf\r | |
258 | MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf\r | |
259 | MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r | |
260 | EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
261 | EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
262 | EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
263 | \r | |
264 | MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r | |
265 | MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
266 | MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r | |
267 | MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r | |
268 | EmbeddedPkg/SerialDxe/SerialDxe.inf\r | |
269 | \r | |
270 | MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
271 | \r | |
272 | ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r | |
273 | ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf\r | |
274 | ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf\r | |
275 | ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf\r | |
276 | ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf\r | |
277 | \r | |
278 | #\r | |
279 | # Semi-hosting filesystem\r | |
280 | #\r | |
281 | ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
282 | \r | |
283 | #\r | |
284 | # Multimedia Card Interface\r | |
285 | #\r | |
286 | EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r | |
287 | ArmPlatformPkg/Drivers/PL180MciDxe/PL180MciDxe.inf\r | |
288 | \r | |
289 | #\r | |
290 | # Platform Driver\r | |
291 | #\r | |
292 | ArmPlatformPkg/ArmVExpressPkg/ArmVExpressDxe/ArmFvpDxe.inf\r | |
293 | OvmfPkg/VirtioBlkDxe/VirtioBlk.inf\r | |
294 | \r | |
295 | #\r | |
296 | # FAT filesystem + GPT/MBR partitioning\r | |
297 | #\r | |
298 | MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
299 | MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
300 | MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
301 | \r | |
302 | #\r | |
303 | # Bds\r | |
304 | #\r | |
305 | MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
306 | ArmPlatformPkg/Bds/Bds.inf\r |