Skip to content

Commit

Permalink
JadePkg: Consolidate SMBIOS PCDs
Browse files Browse the repository at this point in the history
Signed-off-by: Nhi Pham <[email protected]>
  • Loading branch information
nhivp committed Sep 11, 2024
1 parent f0f5a76 commit 7c4164c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
13 changes: 0 additions & 13 deletions Platform/Ampere/JadePkg/Jade.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -171,25 +171,12 @@
gAmpereTokenSpaceGuid.PcdPcieHotPlugPortMapTable.PortMap[35]|{ 35, 1, 7, 6, 0, 0x24, 0x70, 0x4, 0, 11, 8 } # S1 RCB3.6 - SSD8
gAmpereTokenSpaceGuid.PcdPcieHotPlugPortMapTable.PortMap[36]|{ 0xFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF } # Require if no fully structure used

!ifdef $(FIRMWARE_VER)
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
!endif

[PcdsFixedAtBuild.common]
#
# Platform config UUID
#
gAmpereTokenSpaceGuid.PcdPlatformConfigUuid|"$(PLATFORM_CONFIG_UUID)"

#
# SMBIOS PCDs
#
gArmTokenSpaceGuid.PcdProcessorManufacturer|L"Ampere(R)"
gArmTokenSpaceGuid.PcdProcessorVersion|L"Ampere(R) Altra(R) Processor"

gAmpereTokenSpaceGuid.PcdSmbiosTables0MajorVersion|$(MAJOR_VER)
gAmpereTokenSpaceGuid.PcdSmbiosTables0MinorVersion|$(MINOR_VER)

# Clearing BIT0 in this PCD prevents installing a 32-bit SMBIOS entry point,
# if the entry point version is >= 3.0. AARCH64 OSes cannot assume the
# presence of the 32-bit entry point anyway (because many AARCH64 systems
Expand Down
14 changes: 10 additions & 4 deletions Silicon/Ampere/AmpereAltraPkg/AmpereAltraPkg.dsc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,6 @@
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE

[PcdsFixedAtBuild.common]
!ifdef $(FIRMWARE_VER)
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
!endif

gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1000000
gEfiMdePkgTokenSpaceGuid.PcdMaximumAsciiStringLength|1000000
gEfiMdePkgTokenSpaceGuid.PcdMaximumLinkedListLength|1000000
Expand Down Expand Up @@ -514,6 +510,16 @@
#
gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|32
#
# SMBIOS PCDs
#
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString|L"$(FIRMWARE_VER)"
gAmpereTokenSpaceGuid.PcdSmbiosTables0MajorVersion|$(MAJOR_VER)
gAmpereTokenSpaceGuid.PcdSmbiosTables0MinorVersion|$(MINOR_VER)
gArmTokenSpaceGuid.PcdProcessorManufacturer|L"Ampere(R)"
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor|L"Ampere(R)"
gArmTokenSpaceGuid.PcdProcessorAssetTag|L"Not Set"
[PcdsDynamicHii.common.DEFAULT]
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
Expand Down

0 comments on commit 7c4164c

Please sign in to comment.