summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-02-15 19:56:51 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-05-25 15:59:19 +0200
commita31a838cdb22c827b8afe5b1620eedffa4ad4f0e (patch)
tree6f96b76ba426e84dc68ed84961df790eb6eb00a0 /src/drivers
parentdfdf001392c172738593149be21ad614839c30a3 (diff)
lenovo: Add lenovo_mainboard_partnumber.
Change-Id: Ie10dcb742fe0884dd94ff5960e2e4b116f633243 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/5246 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/i2c/at24rf08c/lenovo.h1
-rw-r--r--src/drivers/i2c/at24rf08c/lenovo_serials.c8
2 files changed, 8 insertions, 1 deletions
diff --git a/src/drivers/i2c/at24rf08c/lenovo.h b/src/drivers/i2c/at24rf08c/lenovo.h
new file mode 100644
index 0000000000..6824eb6f07
--- /dev/null
+++ b/src/drivers/i2c/at24rf08c/lenovo.h
@@ -0,0 +1 @@
+const char *lenovo_mainboard_partnumber(void);
diff --git a/src/drivers/i2c/at24rf08c/lenovo_serials.c b/src/drivers/i2c/at24rf08c/lenovo_serials.c
index 8c63d7d4c5..7a5b259798 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 "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];