mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / src / mainboard / prodrive / hermes / smbios.c
blob2f2869a9d50705ea0ac4e12d16110bee28c3bd10
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <smbios.h>
4 #include <stdio.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;