summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorJincheng Li <jincheng.li@intel.com>2023-09-15 14:39:29 +0800
committerDavid Hendricks <david.hendricks@gmail.com>2024-07-22 22:30:47 +0000
commit9b2d995bdbef8fd5df5d04ed80f7fb96382e968a (patch)
treef39ca5485e09a290ae0c2fcc4009916058c26405 /src/soc
parentaa6865291a7ddfae4c67fcfc55ebd0c13a376807 (diff)
lib/smbios: Create SMBIOS type 4 entry
One smbios type 4 should be provided for each CPU instance. Create SMBIOS type 4 entry according to socket number, with a default value of 1. TEST=Boot on intel/archercity CRB No changes in boot log and 'dmidecode' result under centos Change-Id: Ia47fb7c458f9e89ae63ca64c0d6678b55c9d9d37 Signed-off-by: Jincheng Li <jincheng.li@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/83331 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/xeon_sp/util.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/xeon_sp/util.c b/src/soc/intel/xeon_sp/util.c
index 4dbe7a4cd7..bf07ee74f3 100644
--- a/src/soc/intel/xeon_sp/util.c
+++ b/src/soc/intel/xeon_sp/util.c
@@ -90,6 +90,11 @@ unsigned int soc_get_num_cpus(void)
return get_iio_uds()->SystemStatus.numCpus;
}
+unsigned int smbios_soc_get_max_sockets(void)
+{
+ return soc_get_num_cpus();
+}
+
union p2sb_bdf soc_get_hpet_bdf(void)
{
if (CONFIG(SOC_INTEL_COMMON_IBL_BASE)) {