SynQuacerEvalBoard.dsc 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. #
  2. # Copyright (c) 2013-2014, ARM Limited. All rights reserved.
  3. # Copyright (c) 2017, Linaro Limited. All rights reserved.
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. ################################################################################
  8. #
  9. # Defines Section - statements that will be processed to create a Makefile.
  10. #
  11. ################################################################################
  12. [Defines]
  13. PLATFORM_NAME = SynQuacerEvalBoard
  14. PLATFORM_GUID = a8180daa-fb8b-11e5-ab24-9fc3167c073d
  15. PLATFORM_VERSION = 0.1
  16. DSC_SPECIFICATION = 0x0001001B
  17. OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
  18. SUPPORTED_ARCHITECTURES = AARCH64|ARM
  19. BUILD_TARGETS = DEBUG|RELEASE
  20. SKUID_IDENTIFIER = DEFAULT
  21. FLASH_DEFINITION = Platform/Socionext/SynQuacerEvalBoard/SynQuacerEvalBoard.fdf
  22. BUILD_NUMBER = 1
  23. #
  24. # Network definition
  25. #
  26. DEFINE NETWORK_SNP_ENABLE = FALSE
  27. DEFINE NETWORK_TLS_ENABLE = FALSE
  28. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  29. [BuildOptions]
  30. RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0
  31. [BuildOptions.common.EDKII.DXE_CORE,BuildOptions.common.EDKII.DXE_DRIVER,BuildOptions.common.EDKII.UEFI_DRIVER,BuildOptions.common.EDKII.UEFI_APPLICATION]
  32. GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
  33. [BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
  34. GCC:*_*_ARM_DLINK_FLAGS = -z common-page-size=0x1000
  35. GCC:*_*_AARCH64_DLINK_FLAGS = -z common-page-size=0x10000
  36. !include MdePkg/MdeLibs.dsc.inc
  37. [LibraryClasses.common]
  38. ArmPlatformLib|Silicon/Socionext/SynQuacer/Library/SynQuacerLib/SynQuacerLib.inf
  39. ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
  40. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  41. TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
  42. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  43. !if $(TARGET) == RELEASE
  44. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  45. !else
  46. DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
  47. !endif
  48. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  49. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  50. # ARM Architectural Libraries
  51. CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
  52. DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
  53. CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
  54. ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
  55. ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
  56. ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
  57. ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
  58. ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
  59. ArmPlatformStackLib|ArmPlatformPkg/Library/ArmPlatformStackLib/ArmPlatformStackLib.inf
  60. ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
  61. ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
  62. OpteeLib|ArmPkg/Library/OpteeLib/OpteeLib.inf
  63. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  64. BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
  65. SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
  66. SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
  67. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  68. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  69. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  70. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  71. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  72. UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
  73. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  74. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  75. RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
  76. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  77. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  78. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  79. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
  80. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  81. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  82. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  83. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  84. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  85. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  86. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  87. UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
  88. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  89. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  90. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  91. UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
  92. UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
  93. # BDS Libraries
  94. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  95. PlatformBootManagerLib|ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
  96. BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
  97. CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
  98. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  99. PeCoffExtraActionLib|ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
  100. DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
  101. DebugAgentTimerLib|EmbeddedPkg/Library/DebugAgentTimerLibNull/DebugAgentTimerLibNull.inf
  102. PL011UartClockLib|ArmPlatformPkg/Library/PL011UartClockLib/PL011UartClockLib.inf
  103. SerialPortLib|ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf
  104. PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
  105. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  106. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  107. BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
  108. OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
  109. IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
  110. NorFlashInfoLib|EmbeddedPkg/Library/NorFlashInfoLib/NorFlashInfoLib.inf
  111. VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
  112. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  113. [LibraryClasses.common.SEC]
  114. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  115. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  116. PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
  117. ArmGicArchLib|ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf
  118. [LibraryClasses.common.PEI_CORE, LibraryClasses.common.PEIM]
  119. PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
  120. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  121. HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
  122. PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
  123. MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
  124. ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
  125. PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
  126. [LibraryClasses.common.PEI_CORE]
  127. PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
  128. [LibraryClasses.common.PEIM]
  129. PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
  130. MemoryInitPeiLib|Silicon/Socionext/SynQuacer/Library/SynQuacerMemoryInitPeiLib/SynQuacerMemoryInitPeiLib.inf
  131. PlatformPeiLib|Silicon/Socionext/SynQuacer/Library/SynQuacerPlatformPeiLib/SynQuacerPlatformPeiLib.inf
  132. [LibraryClasses.common.DXE_CORE]
  133. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  134. HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
  135. MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
  136. DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
  137. ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
  138. PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
  139. [LibraryClasses.common.DXE_DRIVER]
  140. DtPlatformDtbLoaderLib|Silicon/Socionext/SynQuacer/Library/SynQuacerDtbLoaderLib/SynQuacerDtbLoaderLib.inf
  141. FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
  142. SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
  143. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  144. #
  145. # Firmware update
  146. #
  147. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf
  148. DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
  149. EdkiiSystemCapsuleLib|SignedCapsulePkg/Library/EdkiiSystemCapsuleLib/EdkiiSystemCapsuleLib.inf
  150. FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
  151. PlatformFlashAccessLib|Silicon/Socionext/SynQuacer/Library/SynQuacerPlatformFlashAccessLib/SynQuacerPlatformFlashAccessLib.inf
  152. IniParsingLib|SignedCapsulePkg/Library/IniParsingLib/IniParsingLib.inf
  153. #
  154. # PCI
  155. #
  156. PciSegmentLib|Silicon/Socionext/SynQuacer/Library/SynQuacerPciSegmentLib/SynQuacerPciSegmentLib.inf
  157. PciHostBridgeLib|Silicon/Socionext/SynQuacer/Library/SynQuacerPciHostBridgeLib/SynQuacerPciHostBridgeLib.inf
  158. NonDiscoverableDeviceRegistrationLib|MdeModulePkg/Library/NonDiscoverableDeviceRegistrationLib/NonDiscoverableDeviceRegistrationLib.inf
  159. [LibraryClasses.common.UEFI_APPLICATION]
  160. PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
  161. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  162. # UiApp dependencies
  163. FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
  164. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  165. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  166. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  167. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  168. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  169. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  170. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  171. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  172. [LibraryClasses.common.DXE_RUNTIME_DRIVER]
  173. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  174. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  175. CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf
  176. ResetSystemLib|ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.inf
  177. TimeBaseLib|EmbeddedPkg/Library/TimeBaseLib/TimeBaseLib.inf
  178. !if $(TARGET) != RELEASE
  179. DebugLib|MdePkg/Library/DxeRuntimeDebugLibSerialPort/DxeRuntimeDebugLibSerialPort.inf
  180. !endif
  181. [LibraryClasses.ARM]
  182. ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
  183. ################################################################################
  184. #
  185. # Pcd Section - list of all EDK II PCD Entries defined by this Platform
  186. #
  187. ################################################################################
  188. [PcdsFeatureFlag]
  189. gEmbeddedTokenSpaceGuid.PcdPrePiProduceMemoryTypeInformationHob|TRUE
  190. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
  191. gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
  192. gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport|FALSE
  193. gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|TRUE
  194. [PcdsFixedAtBuild.common]
  195. !ifdef $(FIRMWARE_VENDOR)
  196. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"$(FIRMWARE_VENDOR)"
  197. !endif
  198. # non-secure SRAM
  199. gArmPlatformTokenSpaceGuid.PcdCPUCoresStackBase|0x2E000000
  200. gArmPlatformTokenSpaceGuid.PcdCPUCorePrimaryStackSize|0xFFC0
  201. gSynQuacerTokenSpaceGuid.PcdDramInfoBase|0x2E00FFC0
  202. gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|24
  203. # 12x 2-core processor clusters
  204. gArmPlatformTokenSpaceGuid.PcdCoreCount|2
  205. gArmPlatformTokenSpaceGuid.PcdClusterCount|12
  206. gArmTokenSpaceGuid.PcdArmPrimaryCore|0x0
  207. !if $(ARCH) == AARCH64
  208. gArmTokenSpaceGuid.PcdVFPEnabled|1
  209. !endif
  210. ## PL011 - Serial Terminal
  211. gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x2a400000
  212. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|115200
  213. gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|0
  214. gArmPlatformTokenSpaceGuid.PL011UartInteger|0
  215. gArmPlatformTokenSpaceGuid.PL011UartFractional|0
  216. gArmPlatformTokenSpaceGuid.PL011UartClkInHz|62500000
  217. #
  218. # ARM Generic Interrupt Controller
  219. #
  220. gArmTokenSpaceGuid.PcdGicDistributorBase|0x30000000
  221. gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x30400000
  222. #
  223. # Generic watchdog
  224. #
  225. gArmTokenSpaceGuid.PcdGenericWatchdogControlBase|0x2a440000
  226. gArmTokenSpaceGuid.PcdGenericWatchdogRefreshBase|0x2a450000
  227. #
  228. # NETSEC Info
  229. #
  230. gNetsecDxeTokenSpaceGuid.PcdEncTxDescNum|128
  231. gNetsecDxeTokenSpaceGuid.PcdDecRxDescNum|128
  232. gNetsecDxeTokenSpaceGuid.PcdJumboPacket|0
  233. gNetsecDxeTokenSpaceGuid.PcdFlowCtrl|0
  234. gNetsecDxeTokenSpaceGuid.PcdFlowCtrlStartThreshold|36
  235. gNetsecDxeTokenSpaceGuid.PcdFlowCtrlStopThreshold|48
  236. gNetsecDxeTokenSpaceGuid.PcdPauseTime|256
  237. gSynQuacerTokenSpaceGuid.PcdNetsecEepromBase|0x10000000
  238. gSynQuacerTokenSpaceGuid.PcdNetsecPhyAddress|1
  239. gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
  240. gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
  241. gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
  242. gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
  243. gEfiMdePkgTokenSpaceGuid.PcdSpinLockTimeout|10000000
  244. gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue|0xAF
  245. gEfiMdePkgTokenSpaceGuid.PcdPostCodePropertyMask|0
  246. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|320
  247. # DEBUG_ASSERT_ENABLED 0x01
  248. # DEBUG_PRINT_ENABLED 0x02
  249. # DEBUG_CODE_ENABLED 0x04
  250. # CLEAR_MEMORY_ENABLED 0x08
  251. # ASSERT_BREAKPOINT_ENABLED 0x10
  252. # ASSERT_DEADLOOP_ENABLED 0x20
  253. !if $(TARGET) == RELEASE
  254. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x21
  255. !else
  256. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x3f
  257. !endif
  258. # DEBUG_INIT 0x00000001 // Initialization
  259. # DEBUG_WARN 0x00000002 // Warnings
  260. # DEBUG_LOAD 0x00000004 // Load events
  261. # DEBUG_FS 0x00000008 // EFI File system
  262. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  263. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  264. # DEBUG_INFO 0x00000040 // Informational debug messages
  265. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  266. # DEBUG_VARIABLE 0x00000100 // Variable
  267. # DEBUG_BM 0x00000400 // Boot Manager
  268. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  269. # DEBUG_NET 0x00004000 // SNP Driver
  270. # DEBUG_UNDI 0x00010000 // UNDI Driver
  271. # DEBUG_LOADFILE 0x00020000 // LoadFile
  272. # DEBUG_EVENT 0x00080000 // Event messages
  273. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  274. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  275. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  276. # // significantly impact boot performance
  277. # DEBUG_ERROR 0x80000000 // Error
  278. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
  279. #
  280. # Optional feature to help prevent EFI memory map fragments
  281. # Turned on and off via: PcdPrePiProduceMemoryTypeInformationHob
  282. # Values are in EFI Pages (4K). DXE Core will make sure that
  283. # at least this much of each type of memory can be allocated
  284. # from a single memory range. This way you only end up with
  285. # maximum of two fragements for each type in the memory map
  286. # (the memory used, and the free memory that was prereserved
  287. # but not used).
  288. #
  289. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory|0
  290. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS|0
  291. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType|0
  292. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData|2000
  293. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode|1000
  294. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesCode|2000
  295. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiBootServicesData|20000
  296. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderCode|20
  297. gEmbeddedTokenSpaceGuid.PcdMemoryTypeEfiLoaderData|0
  298. gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
  299. # use the TTY terminal type
  300. gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|4
  301. # GUID of the UI app
  302. gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
  303. #
  304. # Enable strict image permissions for all images. (This applies
  305. # only to images that were built with >= 4 KB section alignment.)
  306. #
  307. gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x3
  308. #
  309. # Enable NX memory protection for all non-code regions, including OEM and OS
  310. # reserved ones, with the exception of LoaderData regions, of which OS loaders
  311. # (i.e., GRUB) may assume that its contents are executable.
  312. #
  313. gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy|0xC000000000007FD1
  314. #
  315. # Enable the non-executable DXE stack. (This gets set up by DxeIpl)
  316. #
  317. gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack|TRUE
  318. #
  319. # Variable store
  320. #
  321. gFip006DxeTokenSpaceGuid.PcdFip006DxeRegBaseAddress|0x54800000
  322. gFip006DxeTokenSpaceGuid.PcdFip006DxeMemBaseAddress|0x08000000
  323. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0x08400000
  324. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize|0x00010000
  325. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0x08410000
  326. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0x00010000
  327. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0x08420000
  328. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize|0x00010000
  329. # set DIP switch DSW3-PIN1 (GPIO pin PD[0] on the SoC) to clear the varstore
  330. gSynQuacerTokenSpaceGuid.PcdClearSettingsGpioPin|0
  331. # On the EVB, PCIe RC #0 should not be enabled from software if no card
  332. # was inserted, or the boot will hang.
  333. gSynQuacerTokenSpaceGuid.PcdPcie0PresenceDetectGpioPin|15
  334. !if $(BUILD_NUMBER) > 1
  335. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(BUILD_NUMBER)"
  336. !endif
  337. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision|$(BUILD_NUMBER)
  338. [PcdsPatchableInModule]
  339. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
  340. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
  341. [PcdsDynamicExDefault.common.DEFAULT]
  342. gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareImageDescriptor|{0x0}|VOID*|0x100
  343. gEfiSignedCapsulePkgTokenSpaceGuid.PcdEdkiiSystemFirmwareFileGuid|{0xf7, 0x89, 0x9b, 0xe9, 0x20, 0xc1, 0x25, 0x4b, 0x4d, 0xb1, 0x83, 0x94, 0xed, 0xb0, 0xb4, 0xf5}
  344. gEfiMdeModulePkgTokenSpaceGuid.PcdSystemFmpCapsuleImageTypeIdGuid|{0xe5, 0x4c, 0xb9, 0x50, 0x63, 0x8b, 0x49, 0x48, 0xf4, 0x8a, 0xea, 0x47, 0x93, 0x56, 0xf0, 0xe3}
  345. [PcdsDynamicHii]
  346. gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|30
  347. gSynQuacerTokenSpaceGuid.PcdPlatformSettings|L"SynQuacerPlatformSettings"|gSynQuacerPlatformFormSetGuid|0x0|0x0|NV,BS
  348. [PcdsDynamicDefault]
  349. gArmTokenSpaceGuid.PcdSystemMemoryBase|0x0000000000000000
  350. gArmTokenSpaceGuid.PcdSystemMemorySize|0xFFFFFFFFFFFFFFFF
  351. # enable RC #1 only by default, RC #0 will be enabled if an endpoint is detected
  352. gSynQuacerTokenSpaceGuid.PcdPcieEnableMask|0x2
  353. ################################################################################
  354. #
  355. # Components Section - list of all EDK II Modules needed by this Platform
  356. #
  357. ################################################################################
  358. [Components.common]
  359. #
  360. # PEI Phase modules
  361. #
  362. ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  363. MdeModulePkg/Core/Pei/PeiMain.inf
  364. MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
  365. <LibraryClasses>
  366. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  367. }
  368. ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  369. ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  370. ArmPkg/Drivers/CpuPei/CpuPei.inf
  371. MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  372. MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  373. MdeModulePkg/Universal/CapsulePei/CapsulePei.inf
  374. Silicon/Socionext/SynQuacer/Drivers/SynQuacerGpioPei/SynQuacerGpioPei.inf
  375. MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf {
  376. <LibraryClasses>
  377. NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
  378. }
  379. #
  380. # DXE
  381. #
  382. MdeModulePkg/Core/Dxe/DxeMain.inf {
  383. <LibraryClasses>
  384. NULL|MdeModulePkg/Library/DxeCrc32GuidedSectionExtractLib/DxeCrc32GuidedSectionExtractLib.inf
  385. <PcdsFixedAtBuild>
  386. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000000F
  387. }
  388. #
  389. # Architectural Protocols
  390. #
  391. ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  392. ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  393. EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  394. MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  395. EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf {
  396. <LibraryClasses>
  397. ## TODO
  398. RealTimeClockLib|EmbeddedPkg/Library/TemplateRealTimeClockLib/TemplateRealTimeClockLib.inf
  399. }
  400. MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
  401. MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  402. MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  403. ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  404. ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
  405. MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  406. MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  407. MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  408. MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  409. MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  410. MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  411. MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  412. MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  413. MdeModulePkg/Logo/LogoDxe.inf
  414. MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
  415. <LibraryClasses>
  416. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  417. }
  418. #
  419. # Variable services
  420. #
  421. Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/Fip006Dxe.inf {
  422. <LibraryClasses>
  423. NorFlashPlatformLib|Silicon/Socionext/SynQuacer/Library/NorFlashSynQuacerLib/NorFlashSynQuacerLib.inf
  424. }
  425. MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  426. MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
  427. <LibraryClasses>
  428. NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
  429. AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
  430. NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
  431. TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
  432. VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
  433. VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
  434. }
  435. #
  436. # UEFI application (Shell Embedded Boot Loader)
  437. #
  438. ShellPkg/Application/Shell/Shell.inf {
  439. <LibraryClasses>
  440. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  441. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  442. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  443. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  444. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  445. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  446. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  447. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  448. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  449. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  450. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  451. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  452. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  453. <PcdsFixedAtBuild>
  454. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  455. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  456. }
  457. #
  458. # Generic BDS
  459. #
  460. MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  461. MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  462. MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  463. MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  464. MdeModulePkg/Application/UiApp/UiApp.inf {
  465. <LibraryClasses>
  466. NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
  467. NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
  468. NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
  469. }
  470. #
  471. # Platform driver
  472. #
  473. Silicon/Socionext/SynQuacer/Drivers/PlatformDxe/PlatformDxe.inf
  474. #
  475. # PCI
  476. #
  477. Silicon/Socionext/SynQuacer/Drivers/SynQuacerPciCpuIo2Dxe/SynQuacerPciCpuIo2Dxe.inf
  478. MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
  479. <PcdsFixedAtBuild>
  480. gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8010004F
  481. }
  482. MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  483. MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  484. MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
  485. #
  486. # eMMC support
  487. #
  488. MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
  489. MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
  490. MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
  491. #
  492. # AHCI Support
  493. #
  494. MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  495. MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  496. MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  497. MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  498. MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  499. #
  500. # USB
  501. #
  502. MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
  503. MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
  504. MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  505. MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  506. MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  507. MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  508. #
  509. # FAT filesystem + GPT/MBR partitioning
  510. #
  511. MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  512. MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  513. MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  514. FatPkg/EnhancedFatDxe/Fat.inf
  515. MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
  516. #
  517. # RNG
  518. #
  519. Silicon/Openmoko/ChaosKeyDxe/ChaosKeyDxe.inf
  520. #
  521. # Networking stack
  522. #
  523. !include NetworkPkg/Network.dsc.inc
  524. Silicon/Socionext/SynQuacer/Drivers/Net/NetsecDxe/NetsecDxe.inf {
  525. <LibraryClasses>
  526. DmaLib|EmbeddedPkg/Library/CoherentDmaLib/CoherentDmaLib.inf
  527. }
  528. #
  529. # Console preference selection
  530. #
  531. EmbeddedPkg/Drivers/ConsolePrefDxe/ConsolePrefDxe.inf
  532. #
  533. # DT support
  534. #
  535. Silicon/Socionext/SynQuacer/DeviceTree/SynQuacerEvalBoard.inf
  536. #
  537. # Firmware update
  538. #
  539. Platform/Socionext/SynQuacerEvalBoard/SystemFirmwareDescriptor/SystemFirmwareDescriptor.inf
  540. MdeModulePkg/Universal/EsrtDxe/EsrtDxe.inf
  541. SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareReportDxe.inf
  542. SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareUpdateDxe.inf
  543. !include Silicon/Socionext/SynQuacer/Acpi.dsc.inc
  544. [Components.AARCH64]
  545. MdeModulePkg/Universal/EbcDxe/EbcDxe.inf