CelloBoard.dsc 31 KB

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