CelloBoard.dsc 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. #
  2. # Copyright (c) 2015 - 2016, AMD Incorporated. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-2-Clause-Patent
  5. #
  6. ################################################################################
  7. #
  8. # Defines Section - statements that will be processed to create a Makefile.
  9. #
  10. ################################################################################
  11. [Defines]
  12. DEFINE NUM_CORES = 4
  13. PLATFORM_NAME = Cello
  14. PLATFORM_GUID = 77861b3e-74b0-4ff3-8d18-c5ba5803e1bf
  15. PLATFORM_VERSION = 0.1
  16. DSC_SPECIFICATION = 0x00010005
  17. OUTPUT_DIRECTORY = Build/Cello
  18. SUPPORTED_ARCHITECTURES = AARCH64
  19. BUILD_TARGETS = DEBUG|RELEASE
  20. SKUID_IDENTIFIER = DEFAULT
  21. FLASH_DEFINITION = Platform/LeMaker/CelloBoard/CelloBoard.fdf
  22. #
  23. # Network definition
  24. #
  25. DEFINE NETWORK_IP6_ENABLE = FALSE
  26. DEFINE NETWORK_TLS_ENABLE = FALSE
  27. DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
  28. ################################################################################
  29. #
  30. # Library Class section - list of all Library Classes needed by this Platform.
  31. #
  32. ################################################################################
  33. !include MdePkg/MdeLibs.dsc.inc
  34. [LibraryClasses.common]
  35. !if $(TARGET) == RELEASE
  36. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  37. !else
  38. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  39. !endif
  40. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  41. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  42. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  43. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  44. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  45. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  46. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  47. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  48. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  49. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  50. PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
  51. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  52. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  53. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  54. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  55. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  56. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  57. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  58. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  59. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  60. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  61. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  62. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  63. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  64. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  65. #
  66. # Allow dynamic PCDs
  67. #
  68. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  69. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  70. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  71. # ARM Architectural Libraries
  72. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  73. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  74. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  75. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  76. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  77. ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
  78. ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf
  79. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  80. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
  81. PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
  82. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  83. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  84. ArmPlatformLib|Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf
  85. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  86. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  87. # ARM PL011 UART Driver
  88. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  89. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  90. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  91. #
  92. # PCI support
  93. #
  94. PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
  95. PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
  96. PciHostBridgeLib|Silicon/AMD/Styx/Library/AmdStyxPciHostBridgeLib/AmdStyxPciHostBridgeLib.inf
  97. #
  98. # Styx specific libraries
  99. #
  100. AmdSataInit|Silicon/AMD/Styx/AmdModulePkg/Library/AmdSataInitLib/AmdSataInitLib.inf
  101. ResetSystemLib|ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf
  102. RealTimeClockLib|Silicon/AMD/Styx/Library/RealTimeClockLib/RealTimeClockLib.inf
  103. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  104. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  105. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
  106. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  107. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  108. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  109. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  110. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  111. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.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. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  124. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  125. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  126. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  127. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
  128. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  129. [LibraryClasses.common.SEC]
  130. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  131. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  132. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  133. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  134. ArmPlatformLib|Silicon/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf
  135. DebugAgentLib|ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
  136. ArmGicArchLib|ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf
  137. [LibraryClasses.common.PEIM, LibraryClasses.common.SEC]
  138. MemoryInitPeiLib|Silicon/AMD/Styx/Library/MemoryInitPei/MemoryInitPeiLib.inf
  139. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  140. [LibraryClasses.common.PEI_CORE]
  141. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  142. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  143. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  144. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  145. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  146. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  147. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  148. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  149. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  150. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  151. [LibraryClasses.common.PEIM]
  152. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  153. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  154. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  155. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  156. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  157. OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
  158. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  159. PeiResourcePublicationLib|MdePkg/Library/PeiResourcePublicationLib/PeiResourcePublicationLib.inf
  160. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  161. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  162. [LibraryClasses.common.DXE_CORE]
  163. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  164. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  165. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  166. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  167. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  168. [LibraryClasses.common.DXE_DRIVER]
  169. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  170. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  171. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  172. NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
  173. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  174. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  175. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  176. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
  177. !if $(TARGET) != RELEASE
  178. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  179. !endif
  180. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  181. [LibraryClasses.common.UEFI_APPLICATION]
  182. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  183. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  184. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  185. [LibraryClasses.common.UEFI_DRIVER]
  186. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  187. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  188. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  189. [LibraryClasses.ARM]
  190. #
  191. # It is not possible to prevent the ARM compiler for generic intrinsic functions.
  192. # This library provides the instrinsic functions generate by a given compiler.
  193. # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
  194. #
  195. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  196. [LibraryClasses.AARCH64]
  197. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  198. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  199. ###################################################################################################
  200. # BuildOptions Section - Define the module specific tool chain flags that should be used as
  201. # the default flags for a module. These flags are appended to any
  202. # standard flags that are defined by the build process.
  203. ###################################################################################################
  204. [BuildOptions]
  205. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  206. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  207. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  208. [BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
  209. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x1000
  210. ################################################################################
  211. #
  212. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  213. #
  214. ################################################################################
  215. [PcdsFeatureFlag.common]
  216. # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
  217. gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
  218. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  219. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  220. ## If TRUE, Graphics Output Protocol will be installed on virtual handle
  221. ## created by ConsplitterDxe. It could be set FALSE to save size.
  222. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
  223. [PcdsFixedAtBuild.common]
  224. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  225. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  226. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  227. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  228. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  229. gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
  230. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  231. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  232. # DEBUG_ASSERT_ENABLED 0x01
  233. # DEBUG_PRINT_ENABLED 0x02
  234. # DEBUG_CODE_ENABLED 0x04
  235. # CLEAR_MEMORY_ENABLED 0x08
  236. # ASSERT_BREAKPOINT_ENABLED 0x10
  237. # ASSERT_DEADLOOP_ENABLED 0x20
  238. !if $(TARGET) == RELEASE
  239. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  240. !else
  241. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  242. !endif
  243. # DEBUG_INIT 0x00000001 // Initialization
  244. # DEBUG_WARN 0x00000002 // Warnings
  245. # DEBUG_LOAD 0x00000004 // Load events
  246. # DEBUG_FS 0x00000008 // EFI File system
  247. # DEBUG_POOL 0x00000010 // Alloc & Free's
  248. # DEBUG_PAGE 0x00000020 // Alloc & Free's
  249. # DEBUG_INFO 0x00000040 // Verbose
  250. # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
  251. # DEBUG_VARIABLE 0x00000100 // Variable
  252. # DEBUG_BM 0x00000400 // Boot Manager
  253. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  254. # DEBUG_NET 0x00004000 // SNI Driver
  255. # DEBUG_UNDI 0x00010000 // UNDI Driver
  256. # DEBUG_LOADFILE 0x00020000 // UNDI Driver
  257. # DEBUG_EVENT 0x00080000 // Event messages
  258. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  259. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  260. # DEBUG_ERROR 0x80000000 // Error
  261. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
  262. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  263. #
  264. # Optional feature to help prevent EFI memory map fragments
  265. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  266. # Values are in EFI Pages (4K). DXE Core will make sure that
  267. # at least this much of each type of memory can be allocated
  268. # from a single memory range. This way you only end up with
  269. # maximum of two fragements for each type in the memory map
  270. # (the memory used, and the free memory that was prereserved
  271. # but not used).
  272. #
  273. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  274. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  275. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  276. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|1000
  277. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|1000
  278. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
  279. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  280. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  281. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  282. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  283. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  284. !ifdef $(FIRMWARE_VENDOR)
  285. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)"
  286. !endif
  287. # Number of configured cores
  288. gArmPlatformTokenSpaceGuid.PcdCoreCount|$(NUM_CORES)
  289. # Stacks for MPCores in Normal World
  290. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x8001680000
  291. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x10000
  292. gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x800
  293. # Declare system memory base
  294. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x8000000000
  295. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  296. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  297. #
  298. # ARM PrimeCell
  299. #
  300. ## PL011 - Serial Terminal (Atlas UART)
  301. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0E1010000
  302. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  303. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  304. # serial port is clocked at 100MHz
  305. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|100000000
  306. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  307. gAmdStyxTokenSpaceGuid.PcdSerialDbgRegisterBase|0x0E1010000
  308. gAmdStyxTokenSpaceGuid.PcdUartDbgBaudRate|115200
  309. #
  310. # ARM General Interrupt Controller
  311. #
  312. gArmTokenSpaceGuid.PcdGicDistributorBase|0xE1110000
  313. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xE112F000
  314. #
  315. # Cello has 2 SATA ports on the first controller.
  316. #
  317. gAmdStyxTokenSpaceGuid.PcdSata0PortCount|2
  318. gAmdStyxTokenSpaceGuid.PcdSata1PortCount|0
  319. gAmdStyxTokenSpaceGuid.PcdSataPortMode|0xf
  320. # PCIe Support
  321. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xF0000000
  322. gArmTokenSpaceGuid.PcdPciBusMin|0x0
  323. gArmTokenSpaceGuid.PcdPciBusMax|0xFF
  324. gArmTokenSpaceGuid.PcdPciIoBase|0x1000
  325. gArmTokenSpaceGuid.PcdPciIoSize|0xF000
  326. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0xEFFF0000
  327. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  328. gArmTokenSpaceGuid.PcdPciMmio32Base|0x40000000
  329. gArmTokenSpaceGuid.PcdPciMmio32Size|0x80000000
  330. gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation|0x0
  331. gArmTokenSpaceGuid.PcdPciMmio64Base|0x100000000
  332. gArmTokenSpaceGuid.PcdPciMmio64Size|0x7F00000000
  333. gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation|0x0
  334. ## ACPI (no tables < 4GB)
  335. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
  336. #
  337. # Enable strict image permissions for all images. (This applies
  338. # only to images that were built with >= 4 KB section alignment.)
  339. #
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  341. #
  342. # Enable NX memory protection for all non-code regions, including OEM and OS
  343. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  344. # (i.e., GRUB) may assume that its contents are executable.
  345. #
  346. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  347. # SMBIOS 3.0 only
  348. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  349. gAmdModulePkgTokenSpaceGuid.PcdSataNumChPerSerdes|2
  350. gAmdModulePkgTokenSpaceGuid.PcdSataSerdesBase|0xE1200000
  351. gAmdModulePkgTokenSpaceGuid.PcdSataSerdesOffset|0x00010000
  352. # map the stack as non-executable when entering the DXE phase
  353. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  354. [PcdsPatchableInModule]
  355. # PCIe Configuration: x4x2x2
  356. gAmdModulePkgTokenSpaceGuid.PcdPcieCoreConfiguration|2
  357. gAmdModulePkgTokenSpaceGuid.PcdPciePort0Present|1
  358. gAmdModulePkgTokenSpaceGuid.PcdPciePort1Present|1
  359. gAmdModulePkgTokenSpaceGuid.PcdPciePort2Present|1
  360. gAmdModulePkgTokenSpaceGuid.PcdPcieHardcodeEnumeration|TRUE
  361. [PcdsDynamicDefault.common]
  362. gAmdStyxTokenSpaceGuid.PcdSocCoreCount|$(NUM_CORES)
  363. gArmTokenSpaceGuid.PcdSystemMemorySize|0x0400000000
  364. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0x0
  365. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0x0
  366. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0x0
  367. [PcdsDynamicHii]
  368. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  369. gAmdStyxTokenSpaceGuid.PcdEnableSmmus|L"StyxEnableSmmus"|gAmdStyxVariableGuid|0x0|FALSE
  370. ################################################################################
  371. #
  372. # Components Section - list of all EDK II Modules needed by this Platform
  373. #
  374. ################################################################################
  375. [Components.common]
  376. #
  377. # PEI Phase modules
  378. #
  379. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  380. MdeModulePkg/Core/Pei/PeiMain.inf
  381. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  382. <LibraryClasses>
  383. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  384. }
  385. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  386. Silicon/AMD/Styx/AmdModulePkg/Iscp/IscpPei.inf
  387. Silicon/AMD/Styx/Drivers/PlatInitPei/PlatInitPei.inf
  388. ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  389. ArmPkg/Drivers/CpuPei/CpuPei.inf
  390. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  391. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  392. <LibraryClasses>
  393. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  394. }
  395. #
  396. # DXE
  397. #
  398. MdeModulePkg/Core/Dxe/DxeMain.inf {
  399. <LibraryClasses>
  400. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  401. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  402. }
  403. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  404. <LibraryClasses>
  405. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  406. }
  407. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  408. <LibraryClasses>
  409. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  410. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  411. }
  412. #
  413. # Architectural Protocols
  414. #
  415. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  416. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  417. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  418. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  419. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  420. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  421. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  422. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  423. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  424. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  425. #
  426. # Console IO support
  427. #
  428. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  429. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  430. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  431. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  432. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  433. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  434. #
  435. # Environment Variables Protocol
  436. #
  437. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  438. <LibraryClasses>
  439. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  440. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  441. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  442. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  443. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  444. }
  445. Silicon/AMD/Styx/Drivers/StyxSpiFvDxe/StyxSpiFvDxe.inf
  446. #
  447. # Iscp support
  448. #
  449. Silicon/AMD/Styx/AmdModulePkg/Iscp/IscpDxe.inf
  450. #
  451. # FDT support
  452. #
  453. EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf {
  454. <LibraryClasses>
  455. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  456. DtPlatformDtbLoaderLib|Silicon/AMD/Styx/Library/StyxDtbLoaderLib/StyxDtbLoaderLib.inf
  457. }
  458. Platform/AMD/OverdriveBoard/DeviceTree/OverdriveBoard.inf
  459. #
  460. # PCI support
  461. #
  462. Silicon/AMD/Styx/AmdModulePkg/Gionb/Gionb.inf
  463. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
  464. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  465. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  466. #
  467. # AHCI Support
  468. #
  469. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  470. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  471. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  472. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  473. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  474. MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
  475. Silicon/AMD/Styx/Drivers/StyxSataPlatformDxe/StyxSataPlatformDxe.inf
  476. #
  477. # USB Support
  478. #
  479. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  480. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  481. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  482. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  483. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  484. #
  485. # Networking stack
  486. #
  487. !include NetworkPkg/Network.dsc.inc
  488. #
  489. # Core Info
  490. #
  491. Silicon/AMD/Styx/Drivers/PlatInitDxe/PlatInitDxe.inf
  492. #
  493. # ACPI Support
  494. #
  495. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
  496. <LibraryClasses>
  497. NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
  498. }
  499. Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf
  500. #
  501. # SMBIOS Support
  502. #
  503. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  504. Silicon/AMD/Styx/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
  505. #
  506. # FAT filesystem + GPT/MBR partitioning
  507. #
  508. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  509. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  510. FatPkg/EnhancedFatDxe/Fat.inf
  511. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  512. #
  513. # Bds
  514. #
  515. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  516. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  517. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  518. MdeModulePkg/Application/UiApp/UiApp.inf {
  519. <LibraryClasses>
  520. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  521. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  522. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  523. }
  524. #
  525. # Crypto Accelerator support (RNG only)
  526. #
  527. Silicon/AMD/Styx/Drivers/StyxRngDxe/StyxRngDxe.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. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  542. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  543. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  544. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  545. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  546. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  547. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  548. <PcdsFixedAtBuild>
  549. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  550. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  551. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  552. }
  553. !ifdef $(RENESAS_XHCI_FW_DIR)
  554. OpenPlatformPkg/Drivers/Xhci/RenesasFirmwarePD720202/RenesasFirmwarePD720202.inf
  555. !endif