From 5ecc6bc7d696ddcc3c3f440f7bb20edfb9316b03 Mon Sep 17 00:00:00 2001 From: Nicolas Reinecke Date: Wed, 28 Jan 2015 11:38:44 +0100 Subject: lenovo/t5x0: Make version look like something thinkpad_acpi would accept MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit thinkpad_acpi checks that BIOS version matches some pattern. Report version in this form. same as http://review.coreboot.org/4650 / 63acd22dc5366c72a7165138f5030df9523824dc Change-Id: I82d7a2b9f2ec56557b3a9c26d1af57ed39e31850 Signed-off-by: Nicolas Reinecke Reviewed-on: http://review.coreboot.org/8302 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese Reviewed-by: Kyösti Mälkki --- src/mainboard/lenovo/t530/mainboard.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/mainboard/lenovo/t530') diff --git a/src/mainboard/lenovo/t530/mainboard.c b/src/mainboard/lenovo/t530/mainboard.c index 14e19604b8..072ebe94a4 100644 --- a/src/mainboard/lenovo/t530/mainboard.c +++ b/src/mainboard/lenovo/t530/mainboard.c @@ -37,6 +37,7 @@ #include #include #include +#include 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) { -- cgit v1.2.3