CelloBoard.dsc 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  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. RVCT:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  206. GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
  207. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  208. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  209. [BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
  210. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x1000
  211. ################################################################################
  212. #
  213. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  214. #
  215. ################################################################################
  216. [PcdsFeatureFlag.common]
  217. # Use the Vector Table location in CpuDxe. We will not copy the Vector Table at PcdCpuVectorBaseAddress
  218. gArmTokenSpaceGuid.PcdRelocateVectorTable|FALSE
  219. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  220. gEfiMdeModulePkgTokenSpaceGuid.PcdTurnOffUsbLegacySupport|TRUE
  221. ## If TRUE, Graphics Output Protocol will be installed on virtual handle
  222. ## created by ConsplitterDxe. It could be set FALSE to save size.
  223. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
  224. [PcdsFixedAtBuild.common]
  225. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  226. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  227. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  228. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  229. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  230. gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|1
  231. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  232. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  233. # DEBUG_ASSERT_ENABLED 0x01
  234. # DEBUG_PRINT_ENABLED 0x02
  235. # DEBUG_CODE_ENABLED 0x04
  236. # CLEAR_MEMORY_ENABLED 0x08
  237. # ASSERT_BREAKPOINT_ENABLED 0x10
  238. # ASSERT_DEADLOOP_ENABLED 0x20
  239. !if $(TARGET) == RELEASE
  240. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  241. !else
  242. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2f
  243. !endif
  244. # DEBUG_INIT 0x00000001 // Initialization
  245. # DEBUG_WARN 0x00000002 // Warnings
  246. # DEBUG_LOAD 0x00000004 // Load events
  247. # DEBUG_FS 0x00000008 // EFI File system
  248. # DEBUG_POOL 0x00000010 // Alloc & Free's
  249. # DEBUG_PAGE 0x00000020 // Alloc & Free's
  250. # DEBUG_INFO 0x00000040 // Verbose
  251. # DEBUG_DISPATCH 0x00000080 // PEI/DXE Dispatchers
  252. # DEBUG_VARIABLE 0x00000100 // Variable
  253. # DEBUG_BM 0x00000400 // Boot Manager
  254. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  255. # DEBUG_NET 0x00004000 // SNI Driver
  256. # DEBUG_UNDI 0x00010000 // UNDI Driver
  257. # DEBUG_LOADFILE 0x00020000 // UNDI Driver
  258. # DEBUG_EVENT 0x00080000 // Event messages
  259. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  260. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  261. # DEBUG_ERROR 0x80000000 // Error
  262. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
  263. gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
  264. #
  265. # Optional feature to help prevent EFI memory map fragments
  266. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  267. # Values are in EFI Pages (4K). DXE Core will make sure that
  268. # at least this much of each type of memory can be allocated
  269. # from a single memory range. This way you only end up with
  270. # maximum of two fragements for each type in the memory map
  271. # (the memory used, and the free memory that was prereserved
  272. # but not used).
  273. #
  274. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  275. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  276. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  277. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|1000
  278. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|1000
  279. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|400
  280. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|12000
  281. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  282. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  283. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  284. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  285. !ifdef $(FIRMWARE_VENDOR)
  286. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)"
  287. !endif
  288. # Number of configured cores
  289. gArmPlatformTokenSpaceGuid.PcdCoreCount|$(NUM_CORES)
  290. # Stacks for MPCores in Normal World
  291. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x8001680000
  292. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0x10000
  293. gArmPlatformTokenSpaceGuid.PcdCPUCoreSecondaryStackSize|0x800
  294. # Declare system memory base
  295. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x8000000000
  296. # Size of the region used by UEFI in permanent memory (Reserved 64MB)
  297. gArmPlatformTokenSpaceGuid.PcdSystemMemoryUefiRegionSize|0x04000000
  298. #
  299. # ARM PrimeCell
  300. #
  301. ## PL011 - Serial Terminal (Atlas UART)
  302. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x0E1010000
  303. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  304. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  305. # serial port is clocked at 100MHz
  306. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|100000000
  307. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  308. gAmdStyxTokenSpaceGuid.PcdSerialDbgRegisterBase|0x0E1010000
  309. gAmdStyxTokenSpaceGuid.PcdUartDbgBaudRate|115200
  310. #
  311. # ARM General Interrupt Controller
  312. #
  313. gArmTokenSpaceGuid.PcdGicDistributorBase|0xE1110000
  314. gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|0xE112F000
  315. #
  316. # Cello has 2 SATA ports on the first controller.
  317. #
  318. gAmdStyxTokenSpaceGuid.PcdSata0PortCount|2
  319. gAmdStyxTokenSpaceGuid.PcdSata1PortCount|0
  320. gAmdStyxTokenSpaceGuid.PcdSataPortMode|0xf
  321. # PCIe Support
  322. gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0xF0000000
  323. gArmTokenSpaceGuid.PcdPciBusMin|0x0
  324. gArmTokenSpaceGuid.PcdPciBusMax|0xFF
  325. gArmTokenSpaceGuid.PcdPciIoBase|0x1000
  326. gArmTokenSpaceGuid.PcdPciIoSize|0xF000
  327. gEfiMdePkgTokenSpaceGuid.PcdPciIoTranslation|0xEFFF0000
  328. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|16
  329. gArmTokenSpaceGuid.PcdPciMmio32Base|0x40000000
  330. gArmTokenSpaceGuid.PcdPciMmio32Size|0x80000000
  331. gEfiMdePkgTokenSpaceGuid.PcdPciMmio32Translation|0x0
  332. gArmTokenSpaceGuid.PcdPciMmio64Base|0x100000000
  333. gArmTokenSpaceGuid.PcdPciMmio64Size|0x7F00000000
  334. gEfiMdePkgTokenSpaceGuid.PcdPciMmio64Translation|0x0
  335. ## ACPI (no tables < 4GB)
  336. gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
  337. #
  338. # Enable strict image permissions for all images. (This applies
  339. # only to images that were built with >= 4 KB section alignment.)
  340. #
  341. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  342. #
  343. # Enable NX memory protection for all non-code regions, including OEM and OS
  344. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  345. # (i.e., GRUB) may assume that its contents are executable.
  346. #
  347. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  348. # SMBIOS 3.0 only
  349. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  350. gAmdModulePkgTokenSpaceGuid.PcdSataNumChPerSerdes|2
  351. gAmdModulePkgTokenSpaceGuid.PcdSataSerdesBase|0xE1200000
  352. gAmdModulePkgTokenSpaceGuid.PcdSataSerdesOffset|0x00010000
  353. # map the stack as non-executable when entering the DXE phase
  354. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  355. [PcdsPatchableInModule]
  356. # PCIe Configuration: x4x2x2
  357. gAmdModulePkgTokenSpaceGuid.PcdPcieCoreConfiguration|2
  358. gAmdModulePkgTokenSpaceGuid.PcdPciePort0Present|1
  359. gAmdModulePkgTokenSpaceGuid.PcdPciePort1Present|1
  360. gAmdModulePkgTokenSpaceGuid.PcdPciePort2Present|1
  361. gAmdModulePkgTokenSpaceGuid.PcdPcieHardcodeEnumeration|TRUE
  362. [PcdsDynamicDefault.common]
  363. gAmdStyxTokenSpaceGuid.PcdSocCoreCount|$(NUM_CORES)
  364. gArmTokenSpaceGuid.PcdSystemMemorySize|0x0400000000
  365. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0x0
  366. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0x0
  367. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0x0
  368. [PcdsDynamicHii]
  369. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|5
  370. gAmdStyxTokenSpaceGuid.PcdEnableSmmus|L"StyxEnableSmmus"|gAmdStyxVariableGuid|0x0|FALSE
  371. ################################################################################
  372. #
  373. # Components Section - list of all EDK II Modules needed by this Platform
  374. #
  375. ################################################################################
  376. [Components.common]
  377. #
  378. # PEI Phase modules
  379. #
  380. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  381. MdeModulePkg/Core/Pei/PeiMain.inf
  382. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  383. <LibraryClasses>
  384. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  385. }
  386. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  387. Silicon/AMD/Styx/AmdModulePkg/Iscp/IscpPei.inf
  388. Silicon/AMD/Styx/Drivers/PlatInitPei/PlatInitPei.inf
  389. ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  390. ArmPkg/Drivers/CpuPei/CpuPei.inf
  391. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  392. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  393. <LibraryClasses>
  394. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  395. }
  396. #
  397. # DXE
  398. #
  399. MdeModulePkg/Core/Dxe/DxeMain.inf {
  400. <LibraryClasses>
  401. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  402. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  403. }
  404. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  405. <LibraryClasses>
  406. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  407. }
  408. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf {
  409. <LibraryClasses>
  410. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  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. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  419. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  420. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  421. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  422. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  423. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  424. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  425. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
  426. #
  427. # Console IO support
  428. #
  429. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  430. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  431. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  432. MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
  433. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  434. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  435. #
  436. # Environment Variables Protocol
  437. #
  438. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  439. <LibraryClasses>
  440. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  441. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  442. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  443. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  444. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  445. }
  446. Silicon/AMD/Styx/Drivers/StyxSpiFvDxe/StyxSpiFvDxe.inf
  447. #
  448. # Iscp support
  449. #
  450. Silicon/AMD/Styx/AmdModulePkg/Iscp/IscpDxe.inf
  451. #
  452. # FDT support
  453. #
  454. EmbeddedPkg/Drivers/DtPlatformDxe/DtPlatformDxe.inf {
  455. <LibraryClasses>
  456. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  457. DtPlatformDtbLoaderLib|Silicon/AMD/Styx/Library/StyxDtbLoaderLib/StyxDtbLoaderLib.inf
  458. }
  459. Platform/AMD/OverdriveBoard/DeviceTree/OverdriveBoard.inf
  460. #
  461. # PCI support
  462. #
  463. Silicon/AMD/Styx/AmdModulePkg/Gionb/Gionb.inf
  464. ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
  465. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  466. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  467. #
  468. # AHCI Support
  469. #
  470. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  471. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  472. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  473. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  474. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  475. MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
  476. Silicon/AMD/Styx/Drivers/StyxSataPlatformDxe/StyxSataPlatformDxe.inf
  477. #
  478. # USB Support
  479. #
  480. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  481. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  482. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  483. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  484. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  485. #
  486. # Networking stack
  487. #
  488. !include NetworkPkg/Network.dsc.inc
  489. #
  490. # Core Info
  491. #
  492. Silicon/AMD/Styx/Drivers/PlatInitDxe/PlatInitDxe.inf
  493. #
  494. # ACPI Support
  495. #
  496. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
  497. <LibraryClasses>
  498. NULL|EmbeddedPkg/Library/PlatformHasAcpiLib/PlatformHasAcpiLib.inf
  499. }
  500. Silicon/AMD/Styx/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf
  501. #
  502. # SMBIOS Support
  503. #
  504. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  505. Silicon/AMD/Styx/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
  506. #
  507. # FAT filesystem + GPT/MBR partitioning
  508. #
  509. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  510. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  511. FatPkg/EnhancedFatDxe/Fat.inf
  512. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  513. #
  514. # Bds
  515. #
  516. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  517. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  518. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  519. MdeModulePkg/Application/UiApp/UiApp.inf {
  520. <LibraryClasses>
  521. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  522. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  523. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  524. }
  525. #
  526. # Crypto Accelerator support (RNG only)
  527. #
  528. Silicon/AMD/Styx/Drivers/StyxRngDxe/StyxRngDxe.inf
  529. #
  530. # UEFI application (Shell Embedded Boot Loader)
  531. #
  532. ShellPkg/Application/Shell/Shell.inf {
  533. <LibraryClasses>
  534. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  535. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  536. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  537. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  538. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  539. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  540. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  541. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  542. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  543. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  544. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  545. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  546. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  547. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  548. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  549. <PcdsFixedAtBuild>
  550. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  551. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  552. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
  553. }
  554. !ifdef $(RENESAS_XHCI_FW_DIR)
  555. OpenPlatformPkg/Drivers/Xhci/RenesasFirmwarePD720202/RenesasFirmwarePD720202.inf
  556. !endif