9b125289228b611117ecfba28c16dd5a8c2efc11
[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|IntelFrameworkModulePkg/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 MemoryInitPeiLib|ArmPlatformPkg/MemoryInitPei/MemoryInitPeiLib.inf
61
62 [LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_DRIVER]
63 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
64
65 [BuildOptions]
66 *_*_*_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmJunoPkg/Include
67
68 ################################################################################
69 #
70 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
71 #
72 ################################################################################
73
74 [PcdsFeatureFlag.common]
75 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
76
77 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
78 # It could be set FALSE to save size.
79 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
80
81 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
82
83 #
84 # FDT installation : enable the development specific features
85 #
86 gEmbeddedTokenSpaceGuid.PcdOverridePlatformFdt|TRUE
87
88 [PcdsFixedAtBuild.common]
89 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Juno"
90 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmJuno"
91
92 #
93 # NV Storage PCDs. Use base of 0x08000000 for NOR0
94 #
95 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0BFC0000
96 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
97 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0BFD0000
98 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
99 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0BFE0000
100 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
101
102 # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)
103 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
104 gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000
105
106 # Juno Dual-Cluster profile
107 gArmPlatformTokenSpaceGuid.PcdCoreCount|6
108 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
109
110 gArmTokenSpaceGuid.PcdVFPEnabled|1
111
112 #
113 # ARM PrimeCell
114 #
115
116 ## PL011 - Serial Terminal
117 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF80000
118 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
119 gArmPlatformTokenSpaceGuid.PL011UartInteger|4
120 gArmPlatformTokenSpaceGuid.PL011UartFractional|0
121
122 ## PL031 RealTimeClock
123 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
124
125 # LAN9118 Ethernet Driver
126 gEmbeddedTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x18000000
127 gEmbeddedTokenSpaceGuid.PcdLan9118DefaultMacAddress|0x1215161822242628
128
129 #
130 # ARM General Interrupt Controller
131 #
132 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C010000
133 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C02F000
134
135 # List of Device Paths that support BootMonFs
136 gArmPlatformTokenSpaceGuid.PcdBootMonFsSupportedDevicePaths|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)"
137
138 #
139 # ARM OS Loader
140 #
141 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from NOR Flash"
142 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/Image"
143 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/juno.dtb"
144
145 # Support the Linux EFI stub by default
146 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|L"console=ttyAMA0,115200 earlycon=pl011,0x7ff80000 root=/dev/sda1 rootwait verbose debug"
147 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0
148
149 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
150 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
151 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi()"
152
153 #
154 # ARM Architectural Timer Frequency
155 #
156 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|50000000
157 gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
158
159 [PcdsPatchableInModule]
160 # Console Resolution (Full HD)
161 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1920
162 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|1080
163
164 [PcdsDynamicDefault.common]
165 #
166 # The size of a dynamic PCD of the (VOID*) type can not be increased at run
167 # time from its size at build time. Set the "PcdFdtDevicePaths" PCD to a 128
168 # character "empty" string, to allow to be able to set FDT text device paths
169 # up to 128 characters long.
170 #
171 gEmbeddedTokenSpaceGuid.PcdFdtDevicePaths|L" "
172
173 ################################################################################
174 #
175 # Components Section - list of all EDK II Modules needed by this Platform
176 #
177 ################################################################################
178 [Components.common]
179 #
180 # PEI Phase modules
181 #
182 ArmPlatformPkg/PrePi/PeiMPCore.inf {
183 <LibraryClasses>
184 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
185 }
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/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
203 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
204 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
205 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
206 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
207
208 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
209 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
210 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
211 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
212 EmbeddedPkg/SerialDxe/SerialDxe.inf
213
214 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
215 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
216
217 #
218 # ACPI Support
219 #
220 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
221 ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiTables.inf
222
223 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
224
225 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
226 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
227 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
228 ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
229
230 #
231 # Semi-hosting filesystem
232 #
233 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
234
235 #
236 # FAT filesystem + GPT/MBR partitioning
237 #
238 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
239 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
240 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
241
242 # Networking stack
243 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
244
245 #
246 # Usb Support
247 #
248 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
249 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
250 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
251 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
252 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
253
254 #
255 # Juno platform driver
256 #
257 ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf
258
259 #
260 # Bds
261 #
262 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
263 ArmPlatformPkg/Bds/Bds.inf
264