RPi3.dsc 29 KB

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