mb/prodrive/hermes: Implement smbios_mainboard_version

Return the HSI version read from BMC in smbios_mainboard_version.

Change-Id: If907d598c9e05d35f8898d294678f61d075f935a
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55712
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Patrick Rudolph 2021-06-21 10:57:58 +02:00 committed by Patrick Georgi
parent 917785a3bb
commit 7b45920804
1 changed files with 10 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#include <smbios.h> #include <smbios.h>
#include <types.h> #include <types.h>
#include <string.h>
#include "variants/baseboard/include/eeprom.h" #include "variants/baseboard/include/eeprom.h"
@ -26,3 +27,12 @@ const char *smbios_mainboard_serial_number(void)
else else
return CONFIG_MAINBOARD_SERIAL_NUMBER; return CONFIG_MAINBOARD_SERIAL_NUMBER;
} }
const char *smbios_mainboard_version(void)
{
static char version_str[8] = { 0 };
snprintf(version_str, sizeof(version_str), "HSI %u", get_bmc_hsi());
return version_str;
}