soc/intel/xeon_sp: Advertise DIMMs on skylake_sp as well
[coreboot.git] / src / drivers / vpd / vpd_serial.c
blob528dcbb368c173f1651d7b140cbd5d42ca446273
1 /* SPDX-License-Identifier: BSD-3-Clause */
3 #include <smbios.h>
5 #include "vpd.h"
6 #include "vpd_tables.h"
8 #define VPD_KEY_SYSTEM_SERIAL "serial_number"
9 #define VPD_KEY_MAINBOARD_SERIAL "mlb_serial_number"
10 #define VPD_SERIAL_LEN 64
12 const char *smbios_system_serial_number(void)
14 static char serial[VPD_SERIAL_LEN];
15 if (vpd_gets(VPD_KEY_SYSTEM_SERIAL, serial, VPD_SERIAL_LEN, VPD_RO))
16 return serial;
17 return "";
20 const char *smbios_mainboard_serial_number(void)
22 static char serial[VPD_SERIAL_LEN];
23 if (vpd_gets(VPD_KEY_MAINBOARD_SERIAL, serial, VPD_SERIAL_LEN, VPD_RO))
24 return serial;
25 return "";