]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/BeagleBoardPkg.dsc
Fixed a bug in the HardwareInterrupt handler that would blow the stack if you reenabl...
[mirror_edk2.git] / BeagleBoardPkg / BeagleBoardPkg.dsc
CommitLineData
2ef2b01e
A
1#/** @file
2# Beagle board package.
3#
4# Copyright (c) 2009, Apple Inc. All rights reserved.
5#
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
10#
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.
13#
14#**/
15
16################################################################################
17#
18# Defines Section - statements that will be processed to create a Makefile.
19#
20################################################################################
21[Defines]
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
32
33
34[LibraryClasses.common]
35!if TARGET_HACK == DEBUG
36 DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
37!else
38 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
39!endif
40
41
42 ArmLib|ArmPkg/Library/ArmLib/ArmCortexA/ArmCortexArmLib.inf
43
44 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
45 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
46
47 BeagleBoardSystemLib|BeagleBoardPkg/Library/BeagleBoardSystemLib/BeagleBoardSystemLib.inf
48 EfiResetSystemLib|BeagleBoardPkg/Library/ResetSystemLib/ResetSystemLib.inf
49
50 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
51 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
52 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
53
54 EblCmdLib|BeagleBoardPkg/Library/EblCmdLib/EblCmdLib.inf
55
56 EfiFileLib|EmbeddedPkg/Library/EfiFileLib/EfiFileLib.inf
57
58
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
64
65 SerialPortLib|BeagleBoardPkg/Library/SerialPortLib/SerialPortLib.inf
66 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
67
68 RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
69
70 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
71
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
78
79 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
80 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
81 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
82
83#
84# Assume everything is fixed at build
85#
86 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
87
88 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
89
90 UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
91 EblAddExternalCommandLib|EmbeddedPkg/Library/EblAddExternalCommandLib/EblAddExternalCommandLib.inf
92
93 UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
94
95 TimerLib|BeagleBoardPkg/Library/BeagleBoardTimerLib/BeagleBoardTimerLib.inf
96 OmapLib|BeagleBoardPkg/Library/OmapLib/OmapLib.inf
97 EblNetworkLib|EmbeddedPkg/Library/EblNetworkLib/EblNetworkLib.inf
98
99 GdbSerialLib|BeagleBoardPkg/Library/GdbSerialLib/GdbSerialLib.inf
100
101
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
109
110[LibraryClasses.common.PEI_CORE]
111 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
112 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
113
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
122
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
127
128
129[LibraryClasses.common.UEFI_APPLICATION]
130 ReportStatusCodeLib|IntelFrameworkModulePkg/Library/DxeReportStatusCodeLibFramework/DxeReportStatusCodeLib.inf
131 UefiDecompressLib|IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.inf
132
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
137
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
143
144[BuildOptions]
145 XCODE:*_*_ARM_ARCHCC_FLAGS == -arch armv6 -march=armv6
146 XCODE:*_*_ARM_ARCHASM_FLAGS == -arch armv6
147 XCODE:*_*_ARM_ARCHDLINK_FLAGS == -arch armv6
148
149 RVCT:*_*_ARM_ARCHCC_FLAGS == --cpu Cortex-A8
150 RVCT:*_*_ARM_ARCHASM_FLAGS == --cpu Cortex-A8
151
152
153################################################################################
154#
155# Pcd Section - list of all EDK II PCD Entries defined by this Platform
156#
157################################################################################
158
159[PcdsFeatureFlag.common]
160 gEfiMdePkgTokenSpaceGuid.PcdComponentNameDisable|TRUE
161 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnosticsDisable|TRUE
162 gEfiMdePkgTokenSpaceGuid.PcdComponentName2Disable|TRUE
163 gEfiMdePkgTokenSpaceGuid.PcdDriverDiagnostics2Disable|TRUE
164
165 #
166 # Control what commands are supported from the UI
167 # Turn these on and off to add features or save size
168 #
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
176
177 gEmbeddedTokenSpaceGuid.PcdCacheEnable|TRUE
178
179 gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
180 gArmTokenSpaceGuid.PcdCpuDxeProduceDebugSupport|FALSE
181
182 #
183 # Beagle board Specific PCDs
184 #
185
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
198
199# DEBUG_ASSERT_ENABLED 0x01
200
201# DEBUG_PRINT_ENABLED 0x02
202
203# DEBUG_CODE_ENABLED 0x04
204
205# CLEAR_MEMORY_ENABLED 0x08
206
207# ASSERT_BREAKPOINT_ENABLED 0x10
208
209# ASSERT_DEADLOOP_ENABLED 0x20
210
211 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
212
213# DEBUG_INIT 0x00000001 // Initialization
214
215# DEBUG_WARN 0x00000002 // Warnings
216
217# DEBUG_LOAD 0x00000004 // Load events
218
219# DEBUG_FS 0x00000008 // EFI File system
220
221# DEBUG_POOL 0x00000010 // Alloc & Free's
222
223# DEBUG_PAGE 0x00000020 // Alloc & Free's
224
225# DEBUG_INFO 0x00000040 // Verbose
226
227# DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
228
229# DEBUG_VARIABLE 0x00000100 // Variable
230
231# DEBUG_BM 0x00000400 // Boot Manager
232
233# DEBUG_BLKIO 0x00001000 // BlkIo Driver
234
235# DEBUG_NET 0x00004000 // SNI Driver
236
237# DEBUG_UNDI 0x00010000 // UNDI Driver
238
239# DEBUG_LOADFILE 0x00020000 // UNDI Driver
240
241# DEBUG_EVENT 0x00080000 // Event messages
242
243# DEBUG_ERROR 0x80000000 // Error
244
245 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000004
246
247 gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
248
249 gEmbeddedTokenSpaceGuid.PcdEmbeddedAutomaticBootCommand|""
250 gEmbeddedTokenSpaceGuid.PcdEmbeddedDefaultTextColor|0x07
251 gEmbeddedTokenSpaceGuid.PcdEmbeddedMemVariableStoreSize|0x10000
252
253 gEmbeddedTokenSpaceGuid.PcdPrePiTempMemorySize|0
254 gEmbeddedTokenSpaceGuid.PcdPrePiBfvBaseAddress|0
255 gEmbeddedTokenSpaceGuid.PcdPrePiBfvSize|0
256 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|0
257 gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize|0
258
259#
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
267# but not used).
268#
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
278
279
280#
281# Beagle board Specific PCDs
282#
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
289
290 gBeagleBoardTokenSpaceGuid.PcdBeagleGpmcOffset|0x6E000000
291 gBeagleBoardTokenSpaceGuid.PcdBeagleMMCHS1Base|0x4809C000
292
293 # Console
294 gBeagleBoardTokenSpaceGuid.PcdBeagleConsoleUart|3
295
296 # Timers
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
304
305 #
306 # ARM Pcds
307 #
308 gArmTokenSpaceGuid.PcdArmUncachedMemoryMask|0x0000000040000000
309
310################################################################################
311#
312# Components Section - list of all EDK II Modules needed by this Platform
313#
314################################################################################
315[Components.common]
316
317#
318# SEC
319#
320 BeagleBoardPkg/Sec/Sec.inf
321
322#
323# DXE
324#
325 MdeModulePkg/Core/Dxe/DxeMain.inf {
326 <LibraryClasses>
327 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
328 NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
329 NULL|IntelFrameworkModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
330 }
331
332 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
333
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
341
342 EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
343 EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
344 EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
345
346 #
347 # Semi-hosting filesystem
348 #
349 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
350
351 #
352 # FAT filesystem + GPT/MBR partitioning
353 #
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
358
359 #
360 # USB
361 #
362 BeagleBoardPkg/PciEmulation/PciEmulation.inf
363
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 {
367 <PcdsFixedAtBuild>
368 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x800fffff
369 }
370 MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
371 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
372
373 #
374 # Nand Flash
375 #
376 BeagleBoardPkg/Flash/Flash.inf
377
378 #
379 # MMC/SD
380 #
381 BeagleBoardPkg/MMCHSDxe/MMCHS.inf
382
383 #
384 # I2C
385 #
386 BeagleBoardPkg/SmbusDxe/Smbus.inf
387
388 #
389 # SoC Drivers
390 #
391 BeagleBoardPkg/Gpio/Gpio.inf
392 BeagleBoardPkg/InterruptDxe/InterruptDxe.inf
393 BeagleBoardPkg/TimerDxe/TimerDxe.inf
394
395 #
396 # Power IC
397 #
398 BeagleBoardPkg/TPS65950Dxe/TPS65950.inf
399
400 #
401 # Application
402 #
403 EmbeddedPkg/Ebl/Ebl.inf
404
405 #
406 # Bds
407 #
408 BeagleBoardPkg/Bds/Bds.inf
409
410 #
411 # Gdb Stub
412 #
413 EmbeddedPkg/GdbStub/GdbStub.inf
414 ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf
415