]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmJunoPkg/ArmJuno.dsc
09ec5b306524c330449895bd1c2b7a93ddf76056
[mirror_edk2.git] / ArmPlatformPkg / ArmJunoPkg / ArmJuno.dsc
1 #
2 # Copyright (c) 2013-2015, 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 # Defines Section - statements that will be processed to create a Makefile.
16 #
17 ################################################################################
18 [Defines]
19 PLATFORM_NAME = ArmJuno
20 PLATFORM_GUID = ca0722fd-7d3d-45ea-948c-d62b2199807d
21 PLATFORM_VERSION = 0.1
22 DSC_SPECIFICATION = 0x00010005
23 OUTPUT_DIRECTORY = Build/ArmJuno
24 SUPPORTED_ARCHITECTURES = AARCH64|ARM
25 BUILD_TARGETS = DEBUG|RELEASE
26 SKUID_IDENTIFIER = DEFAULT
27 FLASH_DEFINITION = ArmPlatformPkg/ArmJunoPkg/ArmJuno.fdf
28
29 # On RTSM, most peripherals are VExpress Motherboard peripherals
30 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
31
32 [LibraryClasses.common]
33 ArmPlatformLib|ArmPlatformPkg/ArmJunoPkg/Library/ArmJunoLib/ArmJunoLib.inf
34 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
35
36 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
37 NorFlashPlatformLib|ArmPlatformPkg/ArmJunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf
38 EfiResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
39
40 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
41
42 # USB Requirements
43 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
44
45 [LibraryClasses.ARM]
46 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
47
48 [LibraryClasses.AARCH64]
49 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
50
51 [LibraryClasses.common.SEC]
52 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
53 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
54 LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
55 MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
56 HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
57 PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
58 PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
59 PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
60
61 [LibraryClasses.common.SEC, LibraryClasses.common.PEIM]
62 MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
63
64 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
65 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
66
67 [BuildOptions]
68 *_*_*_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmJunoPkg/Include
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
79 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
80 # It could be set FALSE to save size.
81 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
82
83 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
84
85 [PcdsFixedAtBuild.common]
86 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Juno"
87 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmJuno"
88
89 #
90 # NV Storage PCDs. Use base of 0x08000000 for NOR0
91 #
92 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0BFC0000
93 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
94 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0BFD0000
95 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
96 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0BFE0000
97 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
98
99 # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)
100 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
101 gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000
102
103 # Juno Dual-Cluster profile
104 gArmPlatformTokenSpaceGuid.PcdCoreCount|6
105 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
106
107 gArmTokenSpaceGuid.PcdVFPEnabled|1
108
109 #
110 # ARM PrimeCell
111 #
112
113 ## PL011 - Serial Terminal
114 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF80000
115 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
116 gArmPlatformTokenSpaceGuid.PL011UartInteger|4
117 gArmPlatformTokenSpaceGuid.PL011UartFractional|0
118
119 ## PL031 RealTimeClock
120 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
121
122 # LAN9118 Ethernet Driver
123 gEmbeddedTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x18000000
124 gEmbeddedTokenSpaceGuid.PcdLan9118DefaultMacAddress|0x1215161822242628
125
126 #
127 # ARM General Interrupt Controller
128 #
129 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C010000
130 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C02F000
131
132 #
133 # PLDA PCI Root Complex
134 #
135 gArmPlatformTokenSpaceGuid.PcdPciBusMax|255
136 gArmPlatformTokenSpaceGuid.PcdPciIoBase|0x5f800000
137 gArmPlatformTokenSpaceGuid.PcdPciIoSize|0x00800000
138 gArmPlatformTokenSpaceGuid.PcdPciMmio32Base|0x50000000
139 gArmPlatformTokenSpaceGuid.PcdPciMmio32Size|0x08000000
140 gArmPlatformTokenSpaceGuid.PcdPciMmio64Base|0x4000000000
141 gArmPlatformTokenSpaceGuid.PcdPciMmio64Size|0x100000000
142
143 # List of Device Paths that support BootMonFs
144 gArmPlatformTokenSpaceGuid.PcdBootMonFsSupportedDevicePaths|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)"
145
146 #
147 # ARM OS Loader
148 #
149 # Support the Linux EFI stub by default
150 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"EFI Linux from NOR Flash"
151 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/Image"
152 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|L"console=ttyAMA0,115200 earlycon=pl011,0x7ff80000 root=/dev/sda1 rootwait verbose debug"
153
154 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
155 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
156 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi()"
157
158 #
159 # ARM Architectural Timer Frequency
160 #
161 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|50000000
162 gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
163
164 [PcdsPatchableInModule]
165 # Console Resolution (Full HD)
166 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1920
167 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|1080
168
169 [PcdsDynamicDefault.common]
170 #
171 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
172 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
173 # character "empty" string, to allow to be able to set FDT text device paths
174 # up to 128 characters long.
175 #
176 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
177
178 # Not all Juno platforms support PCI. This dynamic PCD disables or enable
179 # PCI support.
180 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
181
182 ################################################################################
183 #
184 # Components Section - list of all EDK II Modules needed by this Platform
185 #
186 ################################################################################
187 [Components.common]
188 #
189 # PEI Phase modules
190 #
191 ArmPlatformPkg/PrePi/PeiMPCore.inf {
192 <LibraryClasses>
193 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
194 }
195
196 #
197 # DXE
198 #
199 MdeModulePkg/Core/Dxe/DxeMain.inf {
200 <LibraryClasses>
201 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
202 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
203 }
204
205 #
206 # Architectural Protocols
207 #
208 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
209 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
210 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
211 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
212 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
213 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
214 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
215 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
216
217 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
218 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
219 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
220 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
221 EmbeddedPkg/SerialDxe/SerialDxe.inf
222
223 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
224 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
225
226 #
227 # ACPI Support
228 #
229 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
230 ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiTables.inf
231
232 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
233
234 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
235 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
236 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
237 ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
238
239 #
240 # Semi-hosting filesystem
241 #
242 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
243
244 #
245 # FAT filesystem + GPT/MBR partitioning
246 #
247 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
248 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
249 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
250
251 # Required by PCI
252 UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
253
254 #
255 # PCI Support
256 #
257 MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
258 ArmPlatformPkg/ArmJunoPkg/Drivers/PciHostBridgeDxe/PciHostBridgeDxe.inf
259
260 #
261 # SATA Controller
262 #
263 MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
264 EmbeddedPkg/Drivers/SataSiI3132Dxe/SataSiI3132Dxe.inf
265
266 #
267 # Networking stack
268 #
269 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
270
271 #
272 # Usb Support
273 #
274 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
275 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
276 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
277 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
278 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
279
280 #
281 # Juno platform driver
282 #
283 ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf
284
285 #
286 # Bds
287 #
288 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
289 ArmPlatformPkg/Bds/Bds.inf
290