aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t520/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/lenovo/t520/mainboard.c')
-rw-r--r--src/mainboard/lenovo/t520/mainboard.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/lenovo/t520/mainboard.c b/src/mainboard/lenovo/t520/mainboard.c
index 582ef8166d..8419abca10 100644
--- a/src/mainboard/lenovo/t520/mainboard.c
+++ b/src/mainboard/lenovo/t520/mainboard.c
@@ -37,6 +37,7 @@
#include <cbfs.h>
#include <pc80/keyboard.h>
#include <ec/lenovo/h8/h8.h>
+#include <version.h>
void mainboard_suspend_resume(void)
{
@@ -44,7 +45,19 @@ void mainboard_suspend_resume(void)
outb(0xcb, 0xb2);
}
+const char *smbios_mainboard_bios_version(void)
+{
+ static char *s = NULL;
+
+ /* Satisfy thinkpad_acpi. */
+ if (strlen(CONFIG_LOCALVERSION))
+ return "CBET4000 " CONFIG_LOCALVERSION;
+ if (s != NULL)
+ return s;
+ s = strconcat("CBET4000 ", coreboot_version);
+ return s;
+}
static void mainboard_init(device_t dev)
{