Jade.dsc 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. ## @file
  2. #
  3. # Copyright (c) 2020 - 2023, Ampere Computing LLC. All rights reserved.<BR>
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. ##
  8. ################################################################################
  9. #
  10. # Defines Section - statements that will be processed to create a Makefile.
  11. #
  12. ################################################################################
  13. [Defines]
  14. PLATFORM_NAME = Jade
  15. PLATFORM_GUID = 7BDD00C0-68F3-4CC1-8775-F0F00572019F
  16. PLATFORM_VERSION = 0.1
  17. DSC_SPECIFICATION = 0x0001001B
  18. OUTPUT_DIRECTORY = Build/Jade
  19. SUPPORTED_ARCHITECTURES = AARCH64
  20. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  21. SKUID_IDENTIFIER = DEFAULT
  22. FLASH_DEFINITION = Platform/Ampere/JadePkg/Jade.fdf
  23. #
  24. # Defines for default states. These can be changed on the command line.
  25. # -D FLAG=VALUE
  26. #
  27. # DEBUG_INIT 0x00000001 // Initialization
  28. # DEBUG_WARN 0x00000002 // Warnings
  29. # DEBUG_LOAD 0x00000004 // Load events
  30. # DEBUG_FS 0x00000008 // EFI File system
  31. # DEBUG_POOL 0x00000010 // Alloc & Free (pool)
  32. # DEBUG_PAGE 0x00000020 // Alloc & Free (page)
  33. # DEBUG_INFO 0x00000040 // Informational debug messages
  34. # DEBUG_DISPATCH 0x00000080 // PEI/DXE/SMM Dispatchers
  35. # DEBUG_VARIABLE 0x00000100 // Variable
  36. # DEBUG_BM 0x00000400 // Boot Manager
  37. # DEBUG_BLKIO 0x00001000 // BlkIo Driver
  38. # DEBUG_NET 0x00004000 // SNP Driver
  39. # DEBUG_UNDI 0x00010000 // UNDI Driver
  40. # DEBUG_LOADFILE 0x00020000 // LoadFile
  41. # DEBUG_EVENT 0x00080000 // Event messages
  42. # DEBUG_GCD 0x00100000 // Global Coherency Database changes
  43. # DEBUG_CACHE 0x00200000 // Memory range cachability changes
  44. # DEBUG_VERBOSE 0x00400000 // Detailed debug messages that may
  45. # // significantly impact boot performance
  46. # DEBUG_ERROR 0x80000000 // Error
  47. DEFINE DEBUG_PRINT_ERROR_LEVEL = 0x8000000F
  48. DEFINE FIRMWARE_VER = 0.01.001
  49. DEFINE SECURE_BOOT_ENABLE = FALSE
  50. DEFINE INCLUDE_TFTP_COMMAND = TRUE
  51. DEFINE PLATFORM_CONFIG_UUID = 84BC921F-9D4A-4D1D-A1A1-1AE13EDD07E5
  52. #
  53. # Network definition
  54. #
  55. DEFINE NETWORK_IP6_ENABLE = FALSE
  56. DEFINE NETWORK_HTTP_BOOT_ENABLE = TRUE
  57. DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
  58. DEFINE NETWORK_TLS_ENABLE = FALSE
  59. !include MdePkg/MdeLibs.dsc.inc
  60. # Include default Ampere Platform DSC file
  61. !include Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc
  62. ################################################################################
  63. #
  64. # Specific Platform Library
  65. #
  66. ################################################################################
  67. [LibraryClasses]
  68. #
  69. # RTC Library: Common RTC
  70. #
  71. RealTimeClockLib|Platform/Ampere/JadePkg/Library/PCF85063RealTimeClockLib/PCF85063RealTimeClockLib.inf
  72. #
  73. # ACPI Libraries
  74. #
  75. AcpiLib|EmbeddedPkg/Library/AcpiLib/AcpiLib.inf
  76. #
  77. # Pcie Board
  78. #
  79. BoardPcieLib|Platform/Ampere/JadePkg/Library/BoardPcieLib/BoardPcieLib.inf
  80. OemMiscLib|Platform/Ampere/JadePkg/Library/OemMiscLib/OemMiscLib.inf
  81. ################################################################################
  82. #
  83. # Specific Platform Pcds
  84. #
  85. ################################################################################
  86. [PcdsFeatureFlag.common]
  87. #
  88. # Activate AcpiSdtProtocol
  89. #
  90. gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
  91. [PcdsFixedAtBuild]
  92. !ifdef $(FIRMWARE_VER)
  93. gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
  94. !endif
  95. [PcdsFixedAtBuild.common]
  96. #
  97. # Platform config UUID
  98. #
  99. gAmpereTokenSpaceGuid.PcdPlatformConfigUuid|"$(PLATFORM_CONFIG_UUID)"
  100. #
  101. # SMBIOS PCDs
  102. #
  103. gArmTokenSpaceGuid.PcdProcessorManufacturer|L"Ampere(R)"
  104. gArmTokenSpaceGuid.PcdProcessorVersion|L"Ampere(R) Altra(R) Processor"
  105. gAmpereTokenSpaceGuid.PcdSmbiosTables1MajorVersion|$(MAJOR_VER)
  106. gAmpereTokenSpaceGuid.PcdSmbiosTables1MinorVersion|$(MINOR_VER)
  107. # Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
  108. # if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
  109. # presence of the 32-bit entry point anyway (because many AARCH64 systems
  110. # don't have 32-bit addressable physical RAM), and the additional allocations
  111. # below 4 GB needlessly fragment the memory map. So expose the 64-bit entry
  112. # point only, for entry point versions >= 3.0.
  113. gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosEntryPointProvideMethod|0x2
  114. !if $(SECURE_BOOT_ENABLE) == TRUE
  115. # Override the default values from SecurityPkg to ensure images
  116. # from all sources are verified in secure boot
  117. gEfiSecurityPkgTokenSpaceGuid.PcdOptionRomImageVerificationPolicy|0x04
  118. gEfiSecurityPkgTokenSpaceGuid.PcdFixedMediaImageVerificationPolicy|0x04
  119. gEfiSecurityPkgTokenSpaceGuid.PcdRemovableMediaImageVerificationPolicy|0x04
  120. !endif
  121. [PcdsDynamicDefault.common.DEFAULT]
  122. # SMBIOS Type 0 - BIOS Information
  123. gAmpereTokenSpaceGuid.PcdSmbiosTables0BiosReleaseDate|"MM/DD/YYYY"
  124. [PcdsPatchableInModule]
  125. #
  126. # Console Resolution (HD mode)
  127. #
  128. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1024
  129. gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|768
  130. ################################################################################
  131. #
  132. # Specific Platform Component
  133. #
  134. ################################################################################
  135. [Components.common]
  136. #
  137. # ACPI
  138. #
  139. MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf {
  140. <PcdsFixedAtBuild>
  141. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2B
  142. }
  143. Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf
  144. Silicon/Ampere/AmpereAltraPkg/AcpiCommonTables/AcpiCommonTables.inf
  145. Platform/Ampere/JadePkg/AcpiTables/AcpiTables.inf
  146. Platform/Ampere/JadePkg/Ac02AcpiTables/Ac02AcpiTables.inf
  147. #
  148. # PCIe
  149. #
  150. Platform/Ampere/JadePkg/Drivers/PciPlatformDxe/PciPlatformDxe.inf
  151. #
  152. # VGA Aspeed
  153. #
  154. Drivers/ASpeed/ASpeedGopBinPkg/ASpeedAst2500GopDxe.inf
  155. #
  156. # SMBIOS
  157. #
  158. MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  159. Platform/Ampere/JadePkg/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  160. ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
  161. Platform/Ampere/JadePkg/Drivers/SmbiosMemInfoDxe/SmbiosMemInfoDxe.inf
  162. #
  163. # HII
  164. #
  165. Silicon/Ampere/AmpereAltraPkg/Drivers/RootComplexConfigDxe/RootComplexConfigDxe.inf
  166. Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.inf
  167. Silicon/Ampere/AmpereAltraPkg/Drivers/MemInfoDxe/MemInfoDxe.inf
  168. Silicon/Ampere/AmpereAltraPkg/Drivers/CpuConfigDxe/CpuConfigDxe.inf
  169. Silicon/Ampere/AmpereAltraPkg/Drivers/AcpiConfigDxe/AcpiConfigDxe.inf
  170. Silicon/Ampere/AmpereAltraPkg/Drivers/RasConfigDxe/RasConfigDxe.inf