2 # Beagle board package.
4 # Copyright (c) 2009, Apple Inc. All rights reserved.
6 # All rights reserved. This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 ################################################################################
18 # Defines Section - statements that will be processed to create a Makefile.
20 ################################################################################
22 PLATFORM_NAME = BeagleBoardPkg
23 PLATFORM_GUID = 91fa6c28-33df-46ac-aee6-292d6811ea31
24 PLATFORM_VERSION = 0.1
25 DSC_SPECIFICATION = 0x00010005
26 OUTPUT_DIRECTORY = Build/BeagleBoard
27 SUPPORTED_ARCHITECTURES = ARM
28 BUILD_TARGETS = DEBUG|RELEASE
29 SKUID_IDENTIFIER = DEFAULT
30 FLASH_DEFINITION = BeagleBoardPkg/BeagleBoardPkg.fdf
31 DEFINE TARGET_HACK = DEBUG
34 [LibraryClasses.common]
35 !if TARGET_HACK == DEBUG
36 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
38 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
42 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLib.inf
44 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
45 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
47 BeagleBoardSystemLib|BeagleBoardPkg/Library/BeagleBoardSystemLib/BeagleBoardSystemLib.inf
48 EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf
50 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
51 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
52 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
54 EblCmdLib|BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf
56 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
59 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
60 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
61 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
62 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
63 PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
65 SerialPortLib|BeagleBoardPkg/Library/SerialPortLib/SerialPortLib.inf
66 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
68 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
70 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
72 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
73 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
74 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
75 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
76 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
77 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
79 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
80 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
81 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
84 # Assume everything is fixed at build
86 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
88 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
90 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
91 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
93 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
95 TimerLib|BeagleBoardPkg/Library/BeagleBoardTimerLib/BeagleBoardTimerLib.inf
96 OmapLib|BeagleBoardPkg/Library/OmapLib/OmapLib.inf
97 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
99 GdbSerialLib|BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf
102 [LibraryClasses.common.SEC]
103 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLibPrePi.inf
104 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
105 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
106 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
107 ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
108 LzmaDecompressLib|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
110 [LibraryClasses.common.PEI_CORE]
111 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
112 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
114 [LibraryClasses.common.DXE_CORE]
115 HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
116 MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
117 DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
118 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
119 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
120 UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
121 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
123 [LibraryClasses.common.DXE_DRIVER]
124 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
125 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
126 SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
129 [LibraryClasses.common.UEFI_APPLICATION]
130 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
131 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
133 [LibraryClasses.common.UEFI_DRIVER]
134 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
135 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
136 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
138 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
139 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
140 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
141 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
142 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
145 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv6 -march=armv6
146 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv6
147 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv6
149 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A8
150 RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A8
153 ################################################################################
155 # Pcd Section - list of all EDK II PCD Entries defined by this Platform
157 ################################################################################
159 [PcdsFeatureFlag.common]
160 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
161 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
162 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
163 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
166 # Control what commands are supported from the UI
167 # Turn these on and off to add features or save size
169 gEmbeddedTokenSpaceGuid.PcdEmbeddedMacBoot|TRUE
170 gEmbeddedTokenSpaceGuid.PcdEmbeddedDirCmd|TRUE
171 gEmbeddedTokenSpaceGuid.PcdEmbeddedHobCmd|TRUE
172 gEmbeddedTokenSpaceGuid.PcdEmbeddedHwDebugCmd|TRUE
173 gEmbeddedTokenSpaceGuid.PcdEmbeddedPciDebugCmd|TRUE
174 gEmbeddedTokenSpaceGuid.PcdEmbeddedIoEnable|FALSE
175 gEmbeddedTokenSpaceGuid.PcdEmbeddedScriptCmd|FALSE
177 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
179 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
180 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
183 # Beagle board Specific PCDs
186 [PcdsFixedAtBuild.common]
187 gEmbeddedTokenSpaceGuid.PcdEmbeddedPrompt|"BeagleEdk2"
188 gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|32
189 gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|0
190 gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
191 gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
192 gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
193 gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
194 gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
195 gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0
196 gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
197 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
199 # DEBUG_ASSERT_ENABLED 0x01
201 # DEBUG_PRINT_ENABLED 0x02
203 # DEBUG_CODE_ENABLED 0x04
205 # CLEAR_MEMORY_ENABLED 0x08
207 # ASSERT_BREAKPOINT_ENABLED 0x10
209 # ASSERT_DEADLOOP_ENABLED 0x20
211 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
213 # DEBUG_INIT 0x00000001 // Initialization
215 # DEBUG_WARN 0x00000002 // Warnings
217 # DEBUG_LOAD 0x00000004 // Load events
219 # DEBUG_FS 0x00000008 // EFI File system
221 # DEBUG_POOL 0x00000010 // Alloc & Free's
223 # DEBUG_PAGE 0x00000020 // Alloc & Free's
225 # DEBUG_INFO 0x00000040 // Verbose
227 # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
229 # DEBUG_VARIABLE 0x00000100 // Variable
231 # DEBUG_BM 0x00000400 // Boot Manager
233 # DEBUG_BLKIO 0x00001000 // BlkIo Driver
235 # DEBUG_NET 0x00004000 // SNI Driver
237 # DEBUG_UNDI 0x00010000 // UNDI Driver
239 # DEBUG_LOADFILE 0x00020000 // UNDI Driver
241 # DEBUG_EVENT 0x00080000 // Event messages
243 # DEBUG_ERROR 0x80000000 // Error
245 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
247 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
249 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
250 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
251 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
253 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
254 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
255 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
256 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
257 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
260 # Optional feature to help prevent EFI memory map fragments
261 # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
262 # Values are in EFI Pages (4K). DXE Core will make sure that
263 # at least this much of each type of memory can be allocated
264 # from a single memory range. This way you only end up with
265 # maximum of two fragements for each type in the memory map
266 # (the memory used, and the free memory that was prereserved
269 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
270 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
271 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
272 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|80
273 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|40
274 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
275 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|3000
276 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|10
277 gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
281 # Beagle board Specific PCDs
283 gEmbeddedTokenSpaceGuid.PcdPrePiHobBase|0x80001000
284 gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0x87FE0000 # stack at top of memory
285 gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x20000 # 128K stack
286 gBeagleBoardTokenSpaceGuid.PcdBeagleBoardIRAMFullSize|0x00000000
287 gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0x80000000
288 gArmTokenSpaceGuid.PcdCpuResetAddress|0x80008000
290 gBeagleBoardTokenSpaceGuid.PcdBeagleGpmcOffset|0x6E000000
291 gBeagleBoardTokenSpaceGuid.PcdBeagleMMCHS1Base|0x4809C000
294 gBeagleBoardTokenSpaceGuid.PcdBeagleConsoleUart|3
297 # gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|OMAP3530_GPTIMER3
298 gBeagleBoardTokenSpaceGuid.PcdBeagleArchTimer|3
299 # gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|OMAP3530_GPTIMER4
300 gBeagleBoardTokenSpaceGuid.PcdBeagleFreeTimer|4
301 gEmbeddedTokenSpaceGuid.PcdTimerPeriod|100000
302 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterPeriodInNanoseconds|77
303 gEmbeddedTokenSpaceGuid.PcdEmbeddedFdPerformanceCounterFrequencyInHz|13000000
308 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
310 ################################################################################
312 # Components Section - list of all EDK II Modules needed by this Platform
314 ################################################################################
320 BeagleBoardPkg/Sec/Sec.inf
325 MdeModulePkg/Core/Dxe/DxeMain.inf {
327 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
328 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
329 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
332 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
334 MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
335 MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
336 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
337 MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
338 MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
339 EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
340 EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
342 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
343 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
344 EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
347 # Semi-hosting filesystem
349 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
352 # FAT filesystem + GPT/MBR partitioning
354 MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
355 MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
356 FatPkg/EnhancedFatDxe/Fat.inf
357 MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
362 BeagleBoardPkg/PciEmulation/PciEmulation.inf
364 #NOTE: Open source EHCI stack doesn't work on Beagleboard.
365 #NOTE: UsbBus and UsbMassStorage don't work using iPhone SDK tool chain.
366 MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf {
368 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800fffff
370 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
371 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
376 BeagleBoardPkg/Flash/Flash.inf
381 BeagleBoardPkg/MMCHSDxe/MMCHS.inf
386 BeagleBoardPkg/SmbusDxe/Smbus.inf
391 BeagleBoardPkg/Gpio/Gpio.inf
392 BeagleBoardPkg/InterruptDxe/InterruptDxe.inf
393 BeagleBoardPkg/TimerDxe/TimerDxe.inf
398 BeagleBoardPkg/TPS65950Dxe/TPS65950.inf
403 EmbeddedPkg/Ebl/Ebl.inf
408 BeagleBoardPkg/Bds/Bds.inf
413 EmbeddedPkg/GdbStub/GdbStub.inf
414 ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf