Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/55712 )
Change subject: mb/prodrive/hermes: Implement smbios_mainboard_version ......................................................................
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 --- M src/mainboard/prodrive/hermes/smbios.c 1 file changed, 10 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved
diff --git a/src/mainboard/prodrive/hermes/smbios.c b/src/mainboard/prodrive/hermes/smbios.c index 02567d8..af81e86 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 @@ 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; +}