diff options
author | Li, Jincheng <jincheng.li@intel.com> | 2023-01-03 15:43:40 +0800 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-01-08 01:27:14 +0000 |
commit | aa990125b8c8add886762013acb159571d34b3bf (patch) | |
tree | 1cc97943cdf3a777ac8cdd1c830a218210544b21 /src/arch | |
parent | 060df17f1d17a78221b4498a354ee068de9d388c (diff) |
arch/x86/smbios: Replace SMBIOS type4 processor upgrade fields
values by macros
Macro definitions are from DMTF System Management BIOS (SMBIOS)
Reference Specification (DSP0134) Chapter 7.5.5.
Change-Id: Ifed1d773b0b349f878648b8172fd770a397e9686
Signed-off-by: Li, Jincheng <jincheng.li@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71633
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/smbios.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index 8d9de7c728..7cdf4271bc 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -401,17 +401,17 @@ static int smbios_write_type0(unsigned long *current, int handle) static int get_socket_type(void) { if (CONFIG(CPU_INTEL_SLOT_1)) - return 0x08; + return PROCESSOR_UPGRADE_SLOT_1; if (CONFIG(CPU_INTEL_SOCKET_MPGA604)) - return 0x13; + return PROCESSOR_UPGRADE_SOCKET_MPGA604; if (CONFIG(CPU_INTEL_SOCKET_LGA775)) - return 0x15; + return PROCESSOR_UPGRADE_SOCKET_LGA775; if (CONFIG(XEON_SP_COMMON_BASE)) - return 0x36; + return PROCESSOR_UPGRADE_SOCKET_LGA3647_1; if (CONFIG(SOC_INTEL_ALDERLAKE)) - return 0x40; + return PROCESSOR_UPGRADE_SOCKET_LGA1700; - return 0x02; /* Unknown */ + return PROCESSOR_UPGRADE_UNKNOWN; } unsigned int __weak smbios_processor_external_clock(void) |