[coreboot-gerrit] Patch set updated for coreboot: 8d15d78 lenovo: Add lenovo_mainboard_partnumber.
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Sun Feb 16 02:04:07 CET 2014
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5246
-gerrit
commit 8d15d789b1923e5eb9e4f6ed95b60d35edd4932a
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Sat Feb 15 19:56:51 2014 +0100
lenovo: Add lenovo_mainboard_partnumber.
Change-Id: Ie10dcb742fe0884dd94ff5960e2e4b116f633243
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
src/odm_oem/lenovo/lenovo.h | 1 +
src/odm_oem/lenovo/serials.c | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/odm_oem/lenovo/lenovo.h b/src/odm_oem/lenovo/lenovo.h
new file mode 100644
index 0000000..6824eb6
--- /dev/null
+++ b/src/odm_oem/lenovo/lenovo.h
@@ -0,0 +1 @@
+const char *lenovo_mainboard_partnumber(void);
diff --git a/src/odm_oem/lenovo/serials.c b/src/odm_oem/lenovo/serials.c
index 8c63d7d..7a5b259 100644
--- a/src/odm_oem/lenovo/serials.c
+++ b/src/odm_oem/lenovo/serials.c
@@ -24,6 +24,7 @@
#include <device/smbus.h>
#include <smbios.h>
#include <console/console.h>
+#include "lenovo.h"
static void at24rf08c_read_string(u8 bank, u8 start, u8 len, char *result)
{
@@ -71,7 +72,7 @@ const char *smbios_mainboard_serial_number(void)
return result;
}
-const char *smbios_mainboard_product_name(void)
+const char *lenovo_mainboard_partnumber(void)
{
static char result[12];
static int already_read;
@@ -86,6 +87,11 @@ const char *smbios_mainboard_product_name(void)
return result;
}
+const char *smbios_mainboard_product_name(void)
+{
+ return lenovo_mainboard_partnumber();
+}
+
void smbios_mainboard_set_uuid(u8 *uuid)
{
static char result[16];
More information about the coreboot-gerrit
mailing list