2 # Copyright (c) 2013-2014, ARM Limited. All rights reserved.
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
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.
13 ################################################################################
15 # Defines Section - statements that will be processed to create a Makefile.
17 ################################################################################
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
29 # On RTSM, most peripherals are VExpress Motherboard peripherals
30 !include ArmPlatformPkg/ArmVExpressPkg/ArmVExpress.dsc.inc
32 [LibraryClasses.common]
33 ArmPlatformLib|ArmPlatformPkg/ArmJunoPkg/Library/ArmJunoLib/ArmJunoLib.inf
34 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
36 ArmPlatformSysConfigLib|ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSysConfigLib/ArmVExpressSysConfigLib.inf
37 NorFlashPlatformLib|ArmPlatformPkg/ArmJunoPkg/Library/NorFlashJunoLib/NorFlashJunoLib.inf
38 EfiResetSystemLib|ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
40 TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
43 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
46 ArmLib|ArmPkg/Library/ArmLib/ArmV7/ArmV7Lib.inf
48 [LibraryClasses.AARCH64]
49 ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
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
63 *_*_*_PLATFORM_FLAGS == -I$(WORKSPACE)/ArmPlatformPkg/ArmVExpressPkg/Include -I$(WORKSPACE)/ArmPlatformPkg/ArmJunoPkg/Include
65 ################################################################################
67 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
69 ################################################################################
71 [PcdsFeatureFlag.common]
72 gArmPlatformTokenSpaceGuid.PcdSystemMemoryInitializeInSec|TRUE
74 ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
75 # It could be set FALSE to save size.
76 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
78 gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
80 [PcdsFixedAtBuild.common]
81 gArmPlatformTokenSpaceGuid.PcdFirmwareVendor|"ARM Juno"
82 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"ArmJuno"
85 # NV Storage PCDs. Use base of 0x08000000 for NOR0
87 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x0BFC0000
88 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
89 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x0BFD0000
90 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
91 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x0BFE0000
92 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
94 # System Memory (2GB - 16MB of Trusted DRAM at the top of the 32bit address space)
95 gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000
96 gArmTokenSpaceGuid.PcdSystemMemorySize|0x7F000000
98 # Juno Dual-Cluster profile
99 gArmPlatformTokenSpaceGuid.PcdCoreCount|6
100 gArmPlatformTokenSpaceGuid.PcdClusterCount|2
102 gArmTokenSpaceGuid.PcdVFPEnabled|1
108 ## PL011 - Serial Terminal
109 gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x7FF80000
110 gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
111 gArmPlatformTokenSpaceGuid.PL011UartInteger|4
112 gArmPlatformTokenSpaceGuid.PL011UartFractional|0
114 ## PL031 RealTimeClock
115 gArmPlatformTokenSpaceGuid.PcdPL031RtcBase|0x1C170000
117 # LAN9118 Ethernet Driver
118 gEmbeddedTokenSpaceGuid.PcdLan9118DxeBaseAddress|0x18000000
119 gEmbeddedTokenSpaceGuid.PcdLan9118DefaultMacAddress|0x1215161822242628
122 # ARM General Interrupt Controller
124 gArmTokenSpaceGuid.PcdGicDistributorBase|0x2C010000
125 gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0x2C02F000
127 # List of Device Paths that support BootMonFs
128 gArmPlatformTokenSpaceGuid.PcdBootMonFsSupportedDevicePaths|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)"
133 gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from NOR Flash"
134 gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/Image"
135 gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)/juno.dtb"
136 gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0,115200 earlyprintk=pl011,0x7ff80000 root=/dev/sda1 rootwait verbose debug"
137 gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2
139 # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut)
140 gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi();VenHw(CE660500-824D-11E0-AC72-0002A5D5C51B)"
141 gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(115200,8,N,1)/VenPcAnsi()"
144 # ARM Architectural Timer Frequency
146 gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|50000000
147 gEmbeddedTokenSpaceGuid.PcdMetronomeTickPeriod|1000
149 [PcdsPatchableInModule]
150 # Console Resolution (Full HD)
151 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1920
152 gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|1080
155 ################################################################################
157 # Components Section - list of all EDK II Modules needed by this Platform
159 ################################################################################
164 ArmPlatformPkg/PrePi/PeiMPCore.inf {
166 ArmPlatformGlobalVariableLib|ArmPlatformPkg/Library/ArmPlatformGlobalVariableLib/PrePi/PrePiArmPlatformGlobalVariableLib.inf
172 MdeModulePkg/Core/Dxe/DxeMain.inf {
174 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
175 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
179 # Architectural Protocols
181 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
182 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
183 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
184 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
185 MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
186 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
187 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
188 EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
190 MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
191 MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
192 MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
193 MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
194 EmbeddedPkg/SerialDxe/SerialDxe.inf
196 MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
197 MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
202 MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
203 ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiTables.inf
205 MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
207 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
208 ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
209 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
210 ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
213 # Semi-hosting filesystem
215 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
218 # FAT filesystem + GPT/MBR partitioning
220 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
221 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
222 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
225 EmbeddedPkg/Drivers/Lan9118Dxe/Lan9118Dxe.inf
230 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
231 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
232 MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
233 MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
234 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
237 # Juno platform driver
239 ArmPlatformPkg/ArmJunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.inf
244 MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
245 ArmPlatformPkg/Bds/Bds.inf