summaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorDavid Hendricks <ddaveh@amazon.com>2023-01-28 15:35:37 -0800
committerDavid Hendricks <david.hendricks@gmail.com>2023-01-29 22:04:56 +0000
commit6041699ab3fe367f120e90938af4d3919b98b399 (patch)
tree149c7553f735636ffd09690cb7878b246651db0e /src/arch/x86
parent9355bc0919c0ff7814f421416c5a6bb21bfc3d3f (diff)
arch/x86/smbios.c: Update Xeon-SP socket types
Now that we support >1 Xeon-SP, XEON_SP_COMMON_BASE no longer reflects the socket type. This uses SOC_INTEL_* Kconfig variables and returns the correct socket type for Cooper Lake-SP. Signed-off-by: David Hendricks <ddaveh@amazon.com> Change-Id: I142de5f040f3b76e352f27c00fe9e50787df5712 Reviewed-on: https://review.coreboot.org/c/coreboot/+/72498 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Zhang <jonzhang@fb.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/smbios.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 7cdf4271bc..6475f98755 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -406,10 +406,12 @@ static int get_socket_type(void)
return PROCESSOR_UPGRADE_SOCKET_MPGA604;
if (CONFIG(CPU_INTEL_SOCKET_LGA775))
return PROCESSOR_UPGRADE_SOCKET_LGA775;
- if (CONFIG(XEON_SP_COMMON_BASE))
- return PROCESSOR_UPGRADE_SOCKET_LGA3647_1;
if (CONFIG(SOC_INTEL_ALDERLAKE))
return PROCESSOR_UPGRADE_SOCKET_LGA1700;
+ if (CONFIG(SOC_INTEL_SKYLAKE_SP))
+ return PROCESSOR_UPGRADE_SOCKET_LGA3647_1;
+ if (CONFIG(SOC_INTEL_COOPERLAKE_SP))
+ return PROCESSOR_UPGRADE_SOCKET_LGA4189;
return PROCESSOR_UPGRADE_UNKNOWN;
}