From 55129b3d9757e90eae2fdcbce76fd64f6448569c Mon Sep 17 00:00:00 2001
From: Christian Walter <christian.walter@9elements.com>
Date: Thu, 8 Sep 2022 13:17:50 +0200
Subject: arch/x86/smbios.c: Add socket type for Intel SPR-SP

Intel SPR-SP processor has socket type as
PROCESSOR_UPGRADE_SOCKET_LGA4677 which is different
from the socket type of CPX-SP and SKX-SP.

Change-Id: Id2279cc0c1fa3f007d7c081af6f78e5aa98d2f3d
Signed-off-by: Christian Walter <christian.walter@9elements.com>
Signed-off-by: David Hendricks <ddaveh@amazon.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71947
Reviewed-by: Jonathan Zhang <jonzhang@fb.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
---
 src/arch/x86/smbios.c | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/arch/x86')

diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 6475f98755..0b1f8fd29d 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -412,6 +412,8 @@ static int get_socket_type(void)
 		return PROCESSOR_UPGRADE_SOCKET_LGA3647_1;
 	if (CONFIG(SOC_INTEL_COOPERLAKE_SP))
 		return PROCESSOR_UPGRADE_SOCKET_LGA4189;
+	if (CONFIG(SOC_INTEL_SAPPHIRERAPIDS_SP))
+		return PROCESSOR_UPGRADE_SOCKET_LGA4677;
 
 	return PROCESSOR_UPGRADE_UNKNOWN;
 }
-- 
cgit v1.2.3