diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2015-05-21 09:51:00 +0200 |
---|---|---|
committer | Vladimir Serbinenko <phcoder@gmail.com> | 2015-05-21 10:34:38 +0200 |
commit | 537283ddc55549b5fa0f1ba05f2b447a0cd9478f (patch) | |
tree | 3813b55bedabcdde186ec0ade07595a83d40ad8c /src/drivers/i2c/at24rf08c/lenovo_serials.c | |
parent | 54e6aa7216a6776daa67c94c97d8568e1d395861 (diff) | |
download | coreboot-537283ddc55549b5fa0f1ba05f2b447a0cd9478f.tar.xz |
lenovo: Remerge smbios_mainboard_bios_version.
Change-Id: I8df5b7f6707957b925f7bb4dc06a717252c70868
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/10275
Reviewed-by: Nicolas Reinecke <nr@das-labor.org>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/drivers/i2c/at24rf08c/lenovo_serials.c')
-rw-r--r-- | src/drivers/i2c/at24rf08c/lenovo_serials.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/drivers/i2c/at24rf08c/lenovo_serials.c b/src/drivers/i2c/at24rf08c/lenovo_serials.c index b9beeb73d1..595770c2d9 100644 --- a/src/drivers/i2c/at24rf08c/lenovo_serials.c +++ b/src/drivers/i2c/at24rf08c/lenovo_serials.c @@ -24,6 +24,7 @@ #include <device/smbus.h> #include <smbios.h> #include <console/console.h> +#include <version.h> #include "lenovo.h" #define ERROR_STRING "*INVALID*" @@ -198,3 +199,17 @@ const char *smbios_mainboard_version(void) already_read = 1; return result; } + +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; +} |