CelloBoard.dsc 28 KB

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