RPi4.dsc 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. # @file
  2. #
  3. # Copyright (c) 2011 - 2020, ARM Limited. All rights reserved.
  4. # Copyright (c) 2017 - 2018, Andrei Warkentin <andrey.warkentin@gmail.com>
  5. # Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.
  6. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  7. #
  8. # SPDX-License-Identifier: BSD-2-Clause-Patent
  9. #
  10. ##
  11. ################################################################################
  12. #
  13. # Defines Section - statements that will be processed to create a Makefile.
  14. #
  15. ################################################################################
  16. [Defines]
  17. PLATFORM_NAME = RPi4
  18. PLATFORM_GUID = a7eca3b4-21b0-4989-8c18-c08f3ae87837
  19. PLATFORM_VERSION = 1.0
  20. DSC_SPECIFICATION = 0x0001001A
  21. OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
  22. SUPPORTED_ARCHITECTURES = AARCH64
  23. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  24. SKUID_IDENTIFIER = DEFAULT
  25. FLASH_DEFINITION = Platform/RaspberryPi/$(PLATFORM_NAME)/$(PLATFORM_NAME).fdf
  26. #
  27. # Defines for default states. These can be changed on the command line.
  28. # -D FLAG=VALUE
  29. #
  30. DEFINE SECURE_BOOT_ENABLE = FALSE
  31. DEFINE INCLUDE_TFTP_COMMAND = FALSE
  32. DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
  33. !ifndef TFA_BUILD_ARTIFACTS
  34. #
  35. # Default TF-A binary checked into edk2-non-osi.
  36. #
  37. DEFINE TFA_BUILD_BL31 = Platform/RaspberryPi/$(PLATFORM_NAME)/TrustedFirmware/bl31.bin
  38. !else
  39. #
  40. # Usually we use the checked-in binaries, but for developers working
  41. # on the firmware, being able to use a local TF-A build without extra copy
  42. # operations ends up being very helpful.
  43. #
  44. DEFINE TFA_BUILD_BL31 = $(TFA_BUILD_ARTIFACTS)/bl31.bin
  45. !endif
  46. ################################################################################
  47. #
  48. # Library Class section - list of all Library Classes needed by this Platform.
  49. #
  50. ################################################################################
  51. !include MdePkg/MdeLibs.dsc.inc
  52. [LibraryClasses.common]
  53. !if $(TARGET) == RELEASE
  54. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  55. !else
  56. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  57. !endif
  58. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  59. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  60. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  61. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  62. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  63. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  64. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  65. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  66. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  67. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  68. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  69. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  70. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  71. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  72. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  73. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  74. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  75. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  76. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  77. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  78. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  79. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  80. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  81. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  82. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  83. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  84. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  85. #
  86. # Ramdisk Requirements
  87. #
  88. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  89. # Allow dynamic PCDs
  90. #
  91. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  92. # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
  93. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  94. #
  95. # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.
  96. # This library provides the instrinsic functions such a compiler may generate calls to.
  97. #
  98. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  99. # Add support for GCC stack protector
  100. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  101. # ARM Architectural Libraries
  102. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  103. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  104. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  105. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  106. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  107. ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
  108. DmaLib|EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
  109. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  110. ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf
  111. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  112. ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
  113. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
  114. # Dual serial port library
  115. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  116. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  117. SerialPortLib|Platform/RaspberryPi/Library/DualSerialPortLib/DebugDualSerialPortLib.inf
  118. # Cryptographic libraries
  119. RngLib|MdePkg/Library/DxeRngLib/DxeRngLib.inf
  120. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  121. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  122. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  123. TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
  124. #
  125. # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
  126. # in the debugger will show load and unload commands for symbols. You can cut and paste this
  127. # into the command window to load symbols. We should be able to use a script to do this, but
  128. # the version of RVD I have does not support scripts accessing system memory.
  129. #
  130. #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
  131. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  132. #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  133. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  134. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  135. # Flattened Device Tree (FDT) access library
  136. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  137. # USB Libraries
  138. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  139. #
  140. # Secure Boot dependencies
  141. #
  142. !if $(SECURE_BOOT_ENABLE) == TRUE
  143. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  144. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  145. SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
  146. SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
  147. # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
  148. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  149. !else
  150. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  151. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  152. !endif
  153. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  154. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  155. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  156. GpioLib|Silicon/Broadcom/Bcm283x/Library/GpioLib/GpioLib.inf
  157. #
  158. # PCI dependencies
  159. #
  160. # PCI root port configuation and description
  161. PciHostBridgeLib|Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciHostBridgeLib/Bcm2711PciHostBridgeLib.inf
  162. # The "segment lib" provides the CAM accessors/etc when they aren't ECAM standard
  163. PciSegmentLib|Silicon/Broadcom/Bcm27xx/Library/Bcm2711PciSegmentLib/PciSegmentLib.inf
  164. [LibraryClasses.common.SEC]
  165. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  166. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  167. MemoryInitPeiLib|Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.inf
  168. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  169. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  170. LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  171. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  172. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  173. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  174. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  175. [LibraryClasses.common.DXE_CORE]
  176. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  177. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  178. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  179. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  180. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  181. [LibraryClasses.common.DXE_DRIVER]
  182. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  183. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  184. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  185. !if $(INCLUDE_TFTP_COMMAND) == TRUE
  186. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  187. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  188. !endif
  189. [LibraryClasses.common.UEFI_APPLICATION]
  190. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  191. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  192. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  193. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  194. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  195. [LibraryClasses.common.UEFI_DRIVER]
  196. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  197. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  198. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  199. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  200. # Runtime debug messages may crash an OS unless serial output to MMIO mapped UARTs is inhibited
  201. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  202. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  203. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  204. EfiResetSystemLib|Platform/RaspberryPi/Library/ResetLib/ResetLib.inf
  205. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  206. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  207. !if $(SECURE_BOOT_ENABLE) == TRUE
  208. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  209. !endif
  210. ###################################################################################################
  211. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  212. # the default flags for a module. These flags are appended to any
  213. # standard flags that are defined by the build process.
  214. ###################################################################################################
  215. [BuildOptions]
  216. GCC:*_*_*_CC_FLAGS = -DRPI_MODEL=4
  217. GCC:*_*_*_PP_FLAGS = -DRPI_MODEL=4
  218. GCC:*_*_*_ASLPP_FLAGS = -DRPI_MODEL=4
  219. GCC:*_*_*_ASLCC_FLAGS = -DRPI_MODEL=4
  220. GCC:*_*_*_VFRPP_FLAGS = -DRPI_MODEL=4
  221. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -DNDEBUG
  222. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  223. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  224. ################################################################################
  225. #
  226. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  227. #
  228. ################################################################################
  229. [PcdsFeatureFlag.common]
  230. # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
  231. gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
  232. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  233. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  234. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  235. # It could be set FALSE to save size.
  236. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  237. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  238. gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|FALSE
  239. [PcdsFixedAtBuild.common]
  240. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  241. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  242. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  243. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  244. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  245. gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
  246. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  247. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  248. # DEBUG_ASSERT_ENABLED 0x01
  249. # DEBUG_PRINT_ENABLED 0x02
  250. # DEBUG_CODE_ENABLED 0x04
  251. # CLEAR_MEMORY_ENABLED 0x08
  252. # ASSERT_BREAKPOINT_ENABLED 0x10
  253. # ASSERT_DEADLOOP_ENABLED 0x20
  254. !if $(TARGET) == RELEASE
  255. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  256. !else
  257. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  258. !endif
  259. # DEBUG_INIT 0x00000001 // Initialization
  260. # DEBUG_WARN 0x00000002 // Warnings
  261. # DEBUG_LOAD 0x00000004 // Load events
  262. # DEBUG_FS 0x00000008 // EFI File system
  263. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  264. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  265. # DEBUG_INFO 0x00000040 // Informational debug messages
  266. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  267. # DEBUG_VARIABLE 0x00000100 // Variable
  268. # DEBUG_BM 0x00000400 // Boot Manager
  269. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  270. # DEBUG_NET 0x00004000 // SNP Driver
  271. # DEBUG_UNDI 0x00010000 // UNDI Driver
  272. # DEBUG_LOADFILE 0x00020000 // LoadFile
  273. # DEBUG_EVENT 0x00080000 // Event messages
  274. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  275. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  276. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  277. # // significantly impact boot performance
  278. # DEBUG_ERROR 0x80000000 // Error
  279. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
  280. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  281. #
  282. # Optional feature to help prevent EFI memory map fragments
  283. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  284. # Values are in EFI Pages (4K). DXE Core will make sure that
  285. # at least this much of each type of memory can be allocated
  286. # from a single memory range. This way you only end up with
  287. # maximum of two fragments for each type in the memory map
  288. # (the memory used, and the free memory that was prereserved
  289. # but not used).
  290. #
  291. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  292. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  293. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  294. !if $(SECURE_BOOT_ENABLE) == TRUE
  295. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
  296. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
  297. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
  298. !else
  299. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
  300. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
  301. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
  302. !endif
  303. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  304. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  305. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  306. gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0xc0000000
  307. gEmbeddedTokenSpaceGuid.PcdDmaDeviceLimit|0xffffffff
  308. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"EDK2-DEV"
  309. !if $(SECURE_BOOT_ENABLE) == TRUE
  310. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  311. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  312. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  313. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  314. !endif
  315. gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
  316. # Default platform supported RFC 4646 languages: (American) English
  317. gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLangCodes|"en-US"
  318. [LibraryClasses.common]
  319. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  320. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  321. ArmPlatformLib|Platform/RaspberryPi/Library/PlatformLib/PlatformLib.inf
  322. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  323. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  324. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  325. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  326. PlatformBootManagerLib|Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  327. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  328. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  329. AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
  330. [LibraryClasses.common.UEFI_DRIVER]
  331. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  332. ################################################################################
  333. #
  334. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  335. #
  336. ################################################################################
  337. [PcdsFeatureFlag.common]
  338. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  339. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  341. [PcdsFixedAtBuild.common]
  342. gArmPlatformTokenSpaceGuid.PcdCoreCount|4
  343. gArmTokenSpaceGuid.PcdVFPEnabled|1
  344. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  345. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  346. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  347. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  348. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  349. #
  350. # 0x00000000 - 0x001F0000 FD (PcdFdBaseAddress, PcdFdSize)
  351. # 0x001F0000 - 0x00200000 DTB (PcdFdtBaseAddress, PcdFdtSize)
  352. # 0x00200000 - ... RAM (PcdSystemMemoryBase, PcdSystemMemorySize)
  353. #
  354. # This matches PcdFvBaseAddress, since everything less is the FD, and
  355. # will be reserved away.
  356. #
  357. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x00200000
  358. gArmTokenSpaceGuid.PcdSystemMemorySize|0x3fe00000
  359. #
  360. # Device specific addresses
  361. #
  362. gBcm27xxTokenSpaceGuid.PcdBcm27xxRegistersAddress|0xfc000000
  363. gBcm27xxTokenSpaceGuid.PcdBcmGenetRegistersAddress|0xfd580000
  364. gBcm283xTokenSpaceGuid.PcdBcm283xRegistersAddress|0xfe000000
  365. # PCIe specific addresses
  366. gBcm27xxTokenSpaceGuid.PcdBcm27xxPciRegBase|0xfd500000
  367. gBcm27xxTokenSpaceGuid.PcdBcm27xxPciBusMmioAdr|0xf8000000
  368. gBcm27xxTokenSpaceGuid.PcdBcm27xxPciBusMmioLen|0x3ffffff
  369. gBcm27xxTokenSpaceGuid.PcdBcm27xxPciCpuMmioAdr|0x600000000
  370. # UARTs
  371. gArmPlatformTokenSpaceGuid.PL011UartInteger|0
  372. gArmPlatformTokenSpaceGuid.PL011UartFractional|0
  373. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|48000000
  374. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
  375. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|4
  376. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|0x27
  377. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|8
  378. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  379. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  380. #
  381. # ARM General Interrupt Controller
  382. #
  383. gArmTokenSpaceGuid.PcdGicDistributorBase|0xFF841000
  384. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xFF842000
  385. gRaspberryPiTokenSpaceGuid.PcdGicInterruptInterfaceHBase|0xFF844000
  386. gRaspberryPiTokenSpaceGuid.PcdGicInterruptInterfaceVBase|0xFF846000
  387. gRaspberryPiTokenSpaceGuid.PcdGicGsivId|0x19
  388. gRaspberryPiTokenSpaceGuid.PcdGicPmuIrq0|0x30
  389. gRaspberryPiTokenSpaceGuid.PcdGicPmuIrq1|0x31
  390. gRaspberryPiTokenSpaceGuid.PcdGicPmuIrq2|0x32
  391. gRaspberryPiTokenSpaceGuid.PcdGicPmuIrq3|0x33
  392. #
  393. # Fixed CPU settings.
  394. #
  395. gRaspberryPiTokenSpaceGuid.PcdCpuLowSpeedMHz|800
  396. gRaspberryPiTokenSpaceGuid.PcdCpuDefSpeedMHz|1500
  397. gRaspberryPiTokenSpaceGuid.PcdCpuMaxSpeedMHz|2200
  398. ## Default Terminal Type
  399. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  400. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  401. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  402. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  403. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"EDK2"
  404. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  405. [PcdsPatchableInModule]
  406. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|500000000
  407. [PcdsDynamicHii.common.DEFAULT]
  408. #
  409. # Clock overrides.
  410. #
  411. gRaspberryPiTokenSpaceGuid.PcdCpuClock|L"CpuClock"|gConfigDxeFormSetGuid|0x0|1
  412. gRaspberryPiTokenSpaceGuid.PcdCustomCpuClock|L"CustomCpuClock"|gConfigDxeFormSetGuid|0x0|gRaspberryPiTokenSpaceGuid.PcdCpuDefSpeedMHz
  413. #
  414. # SD-related.
  415. #
  416. gRaspberryPiTokenSpaceGuid.PcdSdIsArasan|L"SdIsArasan"|gConfigDxeFormSetGuid|0x0|0
  417. gRaspberryPiTokenSpaceGuid.PcdMmcForce1Bit|L"MmcForce1Bit"|gConfigDxeFormSetGuid|0x0|0
  418. gRaspberryPiTokenSpaceGuid.PcdMmcForceDefaultSpeed|L"MmcForceDefaultSpeed"|gConfigDxeFormSetGuid|0x0|0
  419. gRaspberryPiTokenSpaceGuid.PcdMmcSdDefaultSpeedMHz|L"MmcSdDefaultSpeedMHz"|gConfigDxeFormSetGuid|0x0|25
  420. gRaspberryPiTokenSpaceGuid.PcdMmcSdHighSpeedMHz|L"MmcSdHighSpeedMHz"|gConfigDxeFormSetGuid|0x0|50
  421. gRaspberryPiTokenSpaceGuid.PcdMmcDisableMulti|L"MmcDisableMulti"|gConfigDxeFormSetGuid|0x0|0
  422. gRaspberryPiTokenSpaceGuid.PcdMmcEnableDma|L"MmcEnableDma"|gConfigDxeFormSetGuid|0x0|1
  423. #
  424. # Debug-related.
  425. #
  426. gRaspberryPiTokenSpaceGuid.PcdDebugEnableJTAG|L"DebugEnableJTAG"|gConfigDxeFormSetGuid|0x0|0
  427. #
  428. # Display-related.
  429. #
  430. #
  431. # Just enable native resolution by default.
  432. #
  433. gRaspberryPiTokenSpaceGuid.PcdDisplayEnableScaledVModes|L"DisplayEnableScaledVModes"|gConfigDxeFormSetGuid|0x0|0x20
  434. gRaspberryPiTokenSpaceGuid.PcdDisplayEnableSShot|L"DisplayEnableSShot"|gConfigDxeFormSetGuid|0x0|1
  435. #
  436. # Supporting > 3GB of memory.
  437. #
  438. gRaspberryPiTokenSpaceGuid.PcdRamMoreThan3GB|L"RamMoreThan3GB"|gConfigDxeFormSetGuid|0x0|0
  439. gRaspberryPiTokenSpaceGuid.PcdRamLimitTo3GB|L"RamLimitTo3GB"|gConfigDxeFormSetGuid|0x0|1
  440. #
  441. # Device Tree and ACPI selection.
  442. #
  443. # 0 - SYSTEM_TABLE_MODE_ACPI (default)
  444. # 1 - SYSTEM_TABLE_MODE_BOTH
  445. # 2 - SYSTEM_TABLE_MODE_DT
  446. #
  447. gRaspberryPiTokenSpaceGuid.PcdSystemTableMode|L"SystemTableMode"|gConfigDxeFormSetGuid|0x0|0
  448. #
  449. # Enable a fan in the ACPI thermal zone on GPIO pin #
  450. #
  451. # 0 - DISABLED
  452. # 19 - Enabled on pin 19
  453. #
  454. gRaspberryPiTokenSpaceGuid.PcdFanOnGpio|L"FanOnGpio"|gConfigDxeFormSetGuid|0x0|0
  455. gRaspberryPiTokenSpaceGuid.PcdFanTemp|L"FanTemp"|gConfigDxeFormSetGuid|0x0|60
  456. #
  457. # Reset-related.
  458. #
  459. gRaspberryPiTokenSpaceGuid.PcdPlatformResetDelay|L"ResetDelay"|gRaspberryPiTokenSpaceGuid|0x0|0
  460. # Select XHCI/PCIe mode
  461. #
  462. # 0 - XHCI Enabled (default on !cm4)
  463. # 1 - PCIe Enabled
  464. # 2 - PCIe Enabled (default on cm4)
  465. #
  466. gRaspberryPiTokenSpaceGuid.PcdXhciPci|L"XhciPci"|gConfigDxeFormSetGuid|0x0|0
  467. #
  468. # Common UEFI ones.
  469. #
  470. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  471. #
  472. # This is silly, but by pointing SetupConXXX and ConXXX PCDs to
  473. # the same variables, I can use the graphical configuration to
  474. # change the mode used by ConSplitter.
  475. #
  476. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutColumn|L"Columns"|gRaspberryPiTokenSpaceGuid|0x0|80
  477. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|L"Columns"|gRaspberryPiTokenSpaceGuid|0x0|80
  478. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutRow|L"Rows"|gRaspberryPiTokenSpaceGuid|0x0|25
  479. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|L"Rows"|gRaspberryPiTokenSpaceGuid|0x0|25
  480. gEfiMdeModulePkgTokenSpaceGuid.PcdBootDiscoveryPolicy|L"BootDiscoveryPolicy"|gBootDiscoveryPolicyMgrFormsetGuid|0
  481. [PcdsDynamicDefault.common]
  482. #
  483. # Set video resolution for boot options and for text setup.
  484. #
  485. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
  486. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
  487. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  488. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  489. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  490. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  491. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  492. #
  493. # UART in use
  494. # This value will be synchronized with the setting in config.txt
  495. # 0 - PL011_UART_IN_USE
  496. # 1 - MINI_UART_IN_USE
  497. #
  498. gRaspberryPiTokenSpaceGuid.PcdUartInUse|0
  499. ################################################################################
  500. #
  501. # Components Section - list of all EDK II Modules needed by this Platform
  502. #
  503. ################################################################################
  504. [Components.common]
  505. #
  506. # PEI Phase modules
  507. #
  508. ArmPlatformPkg/PrePi/PeiUniCore.inf {
  509. <LibraryClasses>
  510. SerialPortLib|Platform/RaspberryPi/Library/DualSerialPortLib/DualSerialPortLib.inf
  511. }
  512. #
  513. # DXE
  514. #
  515. MdeModulePkg/Core/Dxe/DxeMain.inf {
  516. <LibraryClasses>
  517. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  518. }
  519. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  520. <LibraryClasses>
  521. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  522. }
  523. #
  524. # Architectural Protocols
  525. #
  526. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  527. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  528. Platform/RaspberryPi/Drivers/VarBlockServiceDxe/VarBlockServiceDxe.inf
  529. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  530. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  531. <LibraryClasses>
  532. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  533. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  534. }
  535. !if $(SECURE_BOOT_ENABLE) == TRUE
  536. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  537. <LibraryClasses>
  538. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  539. }
  540. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  541. SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf
  542. SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf
  543. !else
  544. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  545. !endif
  546. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  547. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  548. EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
  549. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
  550. <LibraryClasses>
  551. RealTimeClockLib|EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  552. }
  553. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  554. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  555. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  556. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  557. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  558. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
  559. <LibraryClasses>
  560. SerialPortLib|Platform/RaspberryPi/Library/DualSerialPortLib/DualSerialPortDxeLib.inf
  561. }
  562. Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.inf
  563. EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.inf
  564. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  565. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  566. Platform/RaspberryPi/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.inf
  567. Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.inf
  568. Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf
  569. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  570. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  571. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  572. #
  573. # FAT filesystem + GPT/MBR partitioning
  574. #
  575. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  576. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  577. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  578. FatPkg/EnhancedFatDxe/Fat.inf
  579. #
  580. # ACPI Support
  581. #
  582. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  583. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  584. Platform/RaspberryPi/AcpiTables/AcpiTables.inf
  585. #
  586. # SMBIOS Support
  587. #
  588. Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
  589. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  590. #
  591. # RAM Disk Support
  592. #
  593. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  594. #
  595. # Bds
  596. #
  597. MdeModulePkg/Universal/BootManagerPolicyDxe/BootManagerPolicyDxe.inf
  598. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  599. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  600. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  601. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  602. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  603. Platform/RaspberryPi/Drivers/LogoDxe/LogoDxe.inf
  604. MdeModulePkg/Application/UiApp/UiApp.inf {
  605. <LibraryClasses>
  606. NULL|MdeModulePkg/Library/BootDiscoveryPolicyUiLib/BootDiscoveryPolicyUiLib.inf
  607. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  608. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  609. NULL|Platform/RaspberryPi/Library/PlatformUiAppLib/PlatformUiAppLib.inf
  610. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  611. }
  612. #
  613. # SCSI Bus and Disk Driver
  614. #
  615. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  616. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  617. #
  618. # USB Support
  619. #
  620. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  621. Platform/RaspberryPi/Drivers/DwUsbHostDxe/DwUsbHostDxe.inf
  622. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  623. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  624. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  625. #
  626. # SD/MMC support
  627. #
  628. # Platform/RaspberryPi/Drivers/SdHostDxe/SdHostDxe.inf
  629. Platform/RaspberryPi/Drivers/ArasanMmcHostDxe/ArasanMmcHostDxe.inf
  630. Platform/RaspberryPi/Drivers/MmcDxe/MmcDxe.inf
  631. #
  632. # Networking stack
  633. #
  634. !include NetworkPkg/Network.dsc.inc
  635. Silicon/Broadcom/Drivers/Net/BcmGenetDxe/BcmGenetDxe.inf {
  636. <PcdsFixedAtBuild>
  637. gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0x00000000
  638. gEmbeddedTokenSpaceGuid.PcdDmaDeviceLimit|0xffffffffff
  639. }
  640. #
  641. # RNG
  642. #
  643. Silicon/Broadcom/Bcm283x/Drivers/Bcm2838RngDxe/Bcm2838RngDxe.inf
  644. #
  645. # PCI Support
  646. #
  647. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
  648. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  649. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  650. EmbeddedPkg/Drivers/NonCoherentIoMmuDxe/NonCoherentIoMmuDxe.inf {
  651. <PcdsFixedAtBuild>
  652. gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0x00000000
  653. gEmbeddedTokenSpaceGuid.PcdDmaDeviceLimit|0xbfffffff
  654. }
  655. #
  656. # NVMe boot devices
  657. #
  658. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  659. #
  660. # UEFI application (Shell Embedded Boot Loader)
  661. #
  662. ShellPkg/Application/Shell/Shell.inf {
  663. <LibraryClasses>
  664. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  665. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  666. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  667. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  668. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  669. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  670. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  671. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  672. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  673. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  674. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  675. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  676. <PcdsFixedAtBuild>
  677. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  678. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  679. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  680. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x200000
  681. }
  682. !if $(INCLUDE_TFTP_COMMAND) == TRUE
  683. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  684. <PcdsFixedAtBuild>
  685. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  686. }
  687. !endif