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