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>
This commit is contained in:
parent
dfdf001392
commit
a31a838cdb
|
@ -0,0 +1 @@
|
|||
const char *lenovo_mainboard_partnumber(void);
|
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue