RPi3.dsc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634
  1. # @file
  2. #
  3. # Copyright (c) 2011 - 2019, ARM Limited. All rights reserved.
  4. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  5. # Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
  6. # Copyright (c) 2017 - 2018, Andrei Warkentin <andrey.warkentin@gmail.com>
  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 = RPi3
  18. PLATFORM_GUID = 5d30c4fc-93cf-40c9-8486-3badc0410816
  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. # Network definition
  28. #
  29. DEFINE NETWORK_TLS_ENABLE = FALSE
  30. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  31. #
  32. # Defines for default states. These can be changed on the command line.
  33. # -D FLAG=VALUE
  34. #
  35. DEFINE SECURE_BOOT_ENABLE = FALSE
  36. DEFINE INCLUDE_TFTP_COMMAND = FALSE
  37. DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000004F
  38. ################################################################################
  39. #
  40. # Library Class section - list of all Library Classes needed by this Platform.
  41. #
  42. ################################################################################
  43. [LibraryClasses.common]
  44. !if $(TARGET) == RELEASE
  45. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  46. !else
  47. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  48. !endif
  49. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  50. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  51. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  52. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  53. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  54. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  55. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  56. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  57. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  58. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  59. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  60. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  61. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  62. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  63. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  64. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  65. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  66. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  67. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  68. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  69. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  70. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  71. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  72. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  73. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  74. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  75. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  76. #
  77. # Ramdisk Requirements
  78. #
  79. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  80. # Allow dynamic PCDs
  81. #
  82. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  83. # use the accelerated BaseMemoryLibOptDxe by default, overrides for SEC/PEI below
  84. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  85. #
  86. # It is not possible to prevent the ARM compiler from inserting calls to intrinsic functions.
  87. # This library provides the instrinsic functions such a compiler may generate calls to.
  88. #
  89. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  90. # Add support for GCC stack protector
  91. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  92. # ARM Architectural Libraries
  93. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  94. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  95. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  96. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  97. DmaLib|EmbeddedPkg/Library/NonCoherentDmaLib/NonCoherentDmaLib.inf
  98. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  99. ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf
  100. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  101. ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
  102. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
  103. PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
  104. PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
  105. PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
  106. SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
  107. # Cryptographic libraries
  108. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  109. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  110. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  111. #
  112. # Uncomment (and comment out the next line) For RealView Debugger. The Standard IO window
  113. # in the debugger will show load and unload commands for symbols. You can cut and paste this
  114. # into the command window to load symbols. We should be able to use a script to do this, but
  115. # the version of RVD I have does not support scripts accessing system memory.
  116. #
  117. #PeCoffExtraActionLib|ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
  118. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  119. #PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  120. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  121. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  122. # Flattened Device Tree (FDT) access library
  123. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  124. # USB Libraries
  125. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  126. #
  127. # Secure Boot dependencies
  128. #
  129. !if $(SECURE_BOOT_ENABLE) == TRUE
  130. TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
  131. AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
  132. # re-use the UserPhysicalPresent() dummy implementation from the ovmf tree
  133. PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
  134. !else
  135. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  136. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  137. !endif
  138. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  139. GpioLib|Silicon/Broadcom/Bcm283x/Library/GpioLib/GpioLib.inf
  140. [LibraryClasses.common.SEC]
  141. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  142. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  143. MemoryInitPeiLib|Platform/RaspberryPi/Library/MemoryInitPeiLib/MemoryInitPeiLib.inf
  144. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  145. ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
  146. LzmaDecompressLib|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  147. PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
  148. HobLib|EmbeddedPkg/Library/PrePiHobLib/PrePiHobLib.inf
  149. PrePiHobListPointerLib|ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointerLib.inf
  150. MemoryAllocationLib|EmbeddedPkg/Library/PrePiMemoryAllocationLib/PrePiMemoryAllocationLib.inf
  151. [LibraryClasses.common.DXE_CORE]
  152. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  153. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  154. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  155. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  156. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  157. [LibraryClasses.common.DXE_DRIVER]
  158. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  159. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  160. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  161. !if $(INCLUDE_TFTP_COMMAND) == TRUE
  162. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  163. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  164. !endif
  165. [LibraryClasses.common.UEFI_APPLICATION]
  166. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  167. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  168. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  169. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  170. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  171. [LibraryClasses.common.UEFI_DRIVER]
  172. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  173. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  174. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  175. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  176. # Runtime debug messages may crash an OS unless serial output to MMIO mapped UARTs is inhibited
  177. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  178. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  179. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  180. EfiResetSystemLib|Platform/RaspberryPi/Library/ResetLib/ResetLib.inf
  181. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  182. !if $(SECURE_BOOT_ENABLE) == TRUE
  183. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
  184. !endif
  185. ###################################################################################################
  186. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  187. # the default flags for a module. These flags are appended to any
  188. # standard flags that are defined by the build process.
  189. ###################################################################################################
  190. [BuildOptions]
  191. GCC:*_*_AARCH64_DLINK_FLAGS = -Wl,--fix-cortex-a53-843419
  192. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -DNDEBUG
  193. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  194. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  195. ################################################################################
  196. #
  197. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  198. #
  199. ################################################################################
  200. [PcdsFeatureFlag.common]
  201. # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
  202. gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
  203. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  204. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  205. ## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
  206. # It could be set FALSE to save size.
  207. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  208. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  209. [PcdsFixedAtBuild.common]
  210. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  211. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  212. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  213. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  214. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  215. gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
  216. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  217. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  218. # DEBUG_ASSERT_ENABLED 0x01
  219. # DEBUG_PRINT_ENABLED 0x02
  220. # DEBUG_CODE_ENABLED 0x04
  221. # CLEAR_MEMORY_ENABLED 0x08
  222. # ASSERT_BREAKPOINT_ENABLED 0x10
  223. # ASSERT_DEADLOOP_ENABLED 0x20
  224. !if $(TARGET) == RELEASE
  225. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  226. !else
  227. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  228. !endif
  229. # DEBUG_INIT 0x00000001 // Initialization
  230. # DEBUG_WARN 0x00000002 // Warnings
  231. # DEBUG_LOAD 0x00000004 // Load events
  232. # DEBUG_FS 0x00000008 // EFI File system
  233. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  234. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  235. # DEBUG_INFO 0x00000040 // Informational debug messages
  236. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  237. # DEBUG_VARIABLE 0x00000100 // Variable
  238. # DEBUG_BM 0x00000400 // Boot Manager
  239. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  240. # DEBUG_NET 0x00004000 // SNP Driver
  241. # DEBUG_UNDI 0x00010000 // UNDI Driver
  242. # DEBUG_LOADFILE 0x00020000 // LoadFile
  243. # DEBUG_EVENT 0x00080000 // Event messages
  244. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  245. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  246. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  247. # // significantly impact boot performance
  248. # DEBUG_ERROR 0x80000000 // Error
  249. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|$(DEBUG_PRINT_ERROR_LEVEL)
  250. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  251. #
  252. # Optional feature to help prevent EFI memory map fragments
  253. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  254. # Values are in EFI Pages (4K). DXE Core will make sure that
  255. # at least this much of each type of memory can be allocated
  256. # from a single memory range. This way you only end up with
  257. # maximum of two fragments for each type in the memory map
  258. # (the memory used, and the free memory that was prereserved
  259. # but not used).
  260. #
  261. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  262. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  263. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  264. !if $(SECURE_BOOT_ENABLE) == TRUE
  265. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|600
  266. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|400
  267. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1500
  268. !else
  269. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|300
  270. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|150
  271. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|1000
  272. !endif
  273. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  274. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  275. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  276. gEmbeddedTokenSpaceGuid.PcdDmaDeviceOffset|0xc0000000
  277. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"EDK2-DEV"
  278. !if $(SECURE_BOOT_ENABLE) == TRUE
  279. # override the default values from SecurityPkg to ensure images from all sources are verified in secure boot
  280. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  281. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  282. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  283. !endif
  284. gEmbeddedTokenSpaceGuid.PcdInterruptBaseAddress|0x40000000
  285. gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|0x0
  286. gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|0x1
  287. gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|0x2
  288. gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|0x3
  289. [LibraryClasses.common]
  290. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  291. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  292. ArmPlatformLib|Platform/RaspberryPi/Library/PlatformLib/PlatformLib.inf
  293. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  294. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  295. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  296. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  297. PlatformBootManagerLib|Platform/RaspberryPi/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  298. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  299. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  300. [LibraryClasses.common.UEFI_DRIVER]
  301. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  302. ################################################################################
  303. #
  304. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  305. #
  306. ################################################################################
  307. [PcdsFeatureFlag.common]
  308. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  309. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  310. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  311. [PcdsFixedAtBuild.common]
  312. gArmPlatformTokenSpaceGuid.PcdCoreCount|4
  313. gArmTokenSpaceGuid.PcdVFPEnabled|1
  314. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x4000
  315. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x2000
  316. gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x2800
  317. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  318. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  319. #
  320. # This matches PcdFvBaseAddress, since everything less is ATF, and
  321. # will be reserved away.
  322. #
  323. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x00400000
  324. gArmTokenSpaceGuid.PcdSystemMemorySize|0x3FC00000
  325. #
  326. # Device specific addresses
  327. #
  328. gBcm283xTokenSpaceGuid.PcdBcm283xRegistersAddress|0x3f000000
  329. ## NS16550 compatible UART
  330. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f215040
  331. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|TRUE
  332. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|4
  333. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|500000000
  334. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|0x27
  335. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialExtendedTxFifoSize|8
  336. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  337. ## Default Terminal Type
  338. ## 0-PCANSI, 1-VT100, 2-VT00+, 3-UTF8, 4-TTYTERM
  339. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  341. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  342. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"EDK2"
  343. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  344. [PcdsDynamicHii.common.DEFAULT]
  345. #
  346. # Clock overrides.
  347. #
  348. gRaspberryPiTokenSpaceGuid.PcdCpuClock|L"CpuClock"|gConfigDxeFormSetGuid|0x0|0
  349. gRaspberryPiTokenSpaceGuid.PcdCustomCpuClock|L"CustomCpuClock"|gConfigDxeFormSetGuid|0x0|600
  350. #
  351. # SD-related.
  352. #
  353. gRaspberryPiTokenSpaceGuid.PcdSdIsArasan|L"SdIsArasan"|gConfigDxeFormSetGuid|0x0|0
  354. gRaspberryPiTokenSpaceGuid.PcdMmcForce1Bit|L"MmcForce1Bit"|gConfigDxeFormSetGuid|0x0|0
  355. gRaspberryPiTokenSpaceGuid.PcdMmcForceDefaultSpeed|L"MmcForceDefaultSpeed"|gConfigDxeFormSetGuid|0x0|0
  356. gRaspberryPiTokenSpaceGuid.PcdMmcSdDefaultSpeedMHz|L"MmcSdDefaultSpeedMHz"|gConfigDxeFormSetGuid|0x0|25
  357. gRaspberryPiTokenSpaceGuid.PcdMmcSdHighSpeedMHz|L"MmcSdHighSpeedMHz"|gConfigDxeFormSetGuid|0x0|50
  358. gRaspberryPiTokenSpaceGuid.PcdMmcDisableMulti|L"MmcDisableMulti"|gConfigDxeFormSetGuid|0x0|0
  359. #
  360. # Debug-related.
  361. #
  362. gRaspberryPiTokenSpaceGuid.PcdDebugEnableJTAG|L"DebugEnableJTAG"|gConfigDxeFormSetGuid|0x0|0
  363. gRaspberryPiTokenSpaceGuid.PcdDebugShowUEFIExit|L"DebugShowUEFIExit"|gConfigDxeFormSetGuid|0x0|0
  364. #
  365. # Display-related.
  366. #
  367. gRaspberryPiTokenSpaceGuid.PcdDisplayEnableScaledVModes|L"DisplayEnableScaledVModes"|gConfigDxeFormSetGuid|0x0|0xff
  368. gRaspberryPiTokenSpaceGuid.PcdDisplayEnableSShot|L"DisplayEnableSShot"|gConfigDxeFormSetGuid|0x0|1
  369. #
  370. # Common UEFI ones.
  371. #
  372. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  373. #
  374. # This is silly, but by pointing SetupConXXX and ConXXX PCDs to
  375. # the same variables, I can use the graphical configuration to
  376. # change the mode used by ConSplitter.
  377. #
  378. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutColumn|L"Columns"|gRaspberryPiTokenSpaceGuid|0x0|80
  379. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|L"Columns"|gRaspberryPiTokenSpaceGuid|0x0|80
  380. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutRow|L"Rows"|gRaspberryPiTokenSpaceGuid|0x0|25
  381. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|L"Rows"|gRaspberryPiTokenSpaceGuid|0x0|25
  382. [PcdsDynamicDefault.common]
  383. #
  384. # Set video resolution for boot options and for text setup.
  385. #
  386. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
  387. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
  388. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
  389. gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
  390. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
  391. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
  392. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
  393. ################################################################################
  394. #
  395. # Components Section - list of all EDK II Modules needed by this Platform
  396. #
  397. ################################################################################
  398. [Components.common]
  399. #
  400. # PEI Phase modules
  401. #
  402. ArmPlatformPkg/PrePi/PeiUniCore.inf
  403. #
  404. # DXE
  405. #
  406. MdeModulePkg/Core/Dxe/DxeMain.inf {
  407. <LibraryClasses>
  408. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  409. }
  410. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  411. <LibraryClasses>
  412. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  413. }
  414. #
  415. # Architectural Protocols
  416. #
  417. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  418. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  419. Platform/RaspberryPi/Drivers/VarBlockServiceDxe/VarBlockServiceDxe.inf
  420. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  421. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  422. <LibraryClasses>
  423. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  424. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  425. }
  426. !if $(SECURE_BOOT_ENABLE) == TRUE
  427. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
  428. <LibraryClasses>
  429. NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
  430. }
  431. SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  432. !else
  433. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  434. !endif
  435. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  436. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  437. EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
  438. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
  439. <LibraryClasses>
  440. RealTimeClockLib|EmbeddedPkg/Library/VirtualRealTimeClockLib/VirtualRealTimeClockLib.inf
  441. }
  442. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  443. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  444. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  445. Platform/RaspberryPi/Drivers/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  446. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  447. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  448. Platform/RaspberryPi/Drivers/DisplayDxe/DisplayDxe.inf
  449. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  450. UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  451. Silicon/Broadcom/Bcm283x/Drivers/InterruptDxe/InterruptDxe.inf
  452. Platform/RaspberryPi/Drivers/RpiFirmwareDxe/RpiFirmwareDxe.inf
  453. Platform/RaspberryPi/Drivers/FdtDxe/FdtDxe.inf
  454. Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.inf
  455. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  456. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  457. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  458. #
  459. # FAT filesystem + GPT/MBR partitioning
  460. #
  461. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  462. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  463. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  464. FatPkg/EnhancedFatDxe/Fat.inf
  465. #
  466. # ACPI Support
  467. #
  468. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  469. MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
  470. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  471. Platform/RaspberryPi/$(PLATFORM_NAME)/AcpiTables/AcpiTables.inf
  472. #
  473. # SMBIOS Support
  474. #
  475. Platform/RaspberryPi/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
  476. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  477. #
  478. # RAM Disk Support
  479. #
  480. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  481. #
  482. # Bds
  483. #
  484. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  485. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  486. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  487. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  488. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  489. Platform/RaspberryPi/Drivers/LogoDxe/LogoDxe.inf
  490. MdeModulePkg/Application/UiApp/UiApp.inf {
  491. <LibraryClasses>
  492. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  493. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  494. NULL|Platform/RaspberryPi/Library/PlatformUiAppLib/PlatformUiAppLib.inf
  495. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  496. }
  497. #
  498. # SCSI Bus and Disk Driver
  499. #
  500. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  501. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  502. #
  503. # USB Support
  504. #
  505. Platform/RaspberryPi/Drivers/DwUsbHostDxe/DwUsbHostDxe.inf
  506. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  507. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  508. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  509. Drivers/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b.inf
  510. #
  511. # SD/MMC support
  512. #
  513. Platform/RaspberryPi/Drivers/SdHostDxe/SdHostDxe.inf
  514. Platform/RaspberryPi/Drivers/ArasanMmcHostDxe/ArasanMmcHostDxe.inf
  515. Platform/RaspberryPi/Drivers/MmcDxe/MmcDxe.inf
  516. #
  517. # Networking stack
  518. #
  519. !include NetworkPkg/Network.dsc.inc
  520. #
  521. # RNG
  522. #
  523. Silicon/Broadcom/Bcm283x/Drivers/Bcm2835RngDxe/Bcm2835RngDxe.inf
  524. #
  525. # UEFI application (Shell Embedded Boot Loader)
  526. #
  527. ShellPkg/Application/Shell/Shell.inf {
  528. <LibraryClasses>
  529. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  530. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  531. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  532. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  533. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  534. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  535. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  536. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  537. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  538. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  539. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  540. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  541. <PcdsFixedAtBuild>
  542. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  543. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  544. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  545. gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x200000
  546. }
  547. !if $(INCLUDE_TFTP_COMMAND) == TRUE
  548. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
  549. !endif