Overdrive1000Board.dsc 28 KB

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