payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / prodrive / hermes / smbios.c
blob923ce8170c3e760a4a27f0b82d5e48654d971348
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <smbios.h>
4 #include <string.h>
5 #include <types.h>
7 #include "eeprom.h"
9 const char *smbios_system_serial_number(void)
11 const size_t offset = offsetof(struct eeprom_layout, system_serial_number);
12 return eeprom_read_serial(offset, CONFIG_MAINBOARD_SERIAL_NUMBER);
15 const char *smbios_mainboard_serial_number(void)
17 const size_t offset = offsetof(struct eeprom_layout, board_serial_number);
18 return eeprom_read_serial(offset, CONFIG_MAINBOARD_SERIAL_NUMBER);
21 const char *smbios_mainboard_version(void)
23 static char version_str[8] = { 0 };
25 snprintf(version_str, sizeof(version_str), "HSI %u", get_bmc_hsi());
27 return version_str;