diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2021-06-21 10:57:58 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-07-01 09:42:05 +0000 |
commit | 7b459208043b0b0e0b6e3a5d9495b883b961fd00 (patch) | |
tree | b83de985962e8bf855c3ed1e1b6108f3872b2b55 /src/mainboard | |
parent | 917785a3bbd2fe193aa8f7cb7233317f2a65d1c4 (diff) |
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>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/prodrive/hermes/smbios.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/prodrive/hermes/smbios.c b/src/mainboard/prodrive/hermes/smbios.c index 02567d8777..af81e86c9a 100644 --- a/src/mainboard/prodrive/hermes/smbios.c +++ b/src/mainboard/prodrive/hermes/smbios.c @@ -2,6 +2,7 @@ #include <smbios.h> #include <types.h> +#include <string.h> #include "variants/baseboard/include/eeprom.h" @@ -26,3 +27,12 @@ const char *smbios_mainboard_serial_number(void) else 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; +} |