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>
This commit is contained in:
David Hendricks 2023-01-28 15:35:37 -08:00 committed by David Hendricks
parent 9355bc0919
commit 6041699ab3
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}