summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2016-05-30 16:52:31 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2016-06-02 06:24:24 +0200
commitc5b758bec803957455a460503547c5846917ae08 (patch)
tree016fd84f541070f2da0292dc954ca3b8617af6ec /src
parent7db15094c259f9417d16cbba102cea100eb2bcf8 (diff)
downloadcoreboot-c5b758bec803957455a460503547c5846917ae08.tar.xz
SMBIOS: Implement SKU field
Leave it for the platform to fill in the string. Change-Id: I7b4fe585f8d1efc8c9743f0d8b38de1f98124aab Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/14996 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/smbios.c6
-rw-r--r--src/include/smbios.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 7c5497edbf..7b6dda18fa 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -340,6 +340,11 @@ void __attribute__((weak)) smbios_mainboard_set_uuid(u8 *uuid)
}
#endif
+const char *__attribute__((weak)) smbios_mainboard_sku(void)
+{
+ return "";
+}
+
#ifdef CONFIG_MAINBOARD_FAMILY
const char *smbios_mainboard_family(void)
{
@@ -359,6 +364,7 @@ static int smbios_write_type1(unsigned long *current, int handle)
t->manufacturer = smbios_add_string(t->eos, smbios_mainboard_manufacturer());
t->product_name = smbios_add_string(t->eos, smbios_mainboard_product_name());
t->serial_number = smbios_add_string(t->eos, smbios_mainboard_serial_number());
+ t->sku = smbios_add_string(t->eos, smbios_mainboard_sku());
t->version = smbios_add_string(t->eos, smbios_mainboard_version());
#ifdef CONFIG_MAINBOARD_FAMILY
t->family = smbios_add_string(t->eos, smbios_mainboard_family());
diff --git a/src/include/smbios.h b/src/include/smbios.h
index 004bcc6166..0400262b31 100644
--- a/src/include/smbios.h
+++ b/src/include/smbios.h
@@ -35,6 +35,7 @@ const char *smbios_mainboard_serial_number(void);
const char *smbios_mainboard_version(void);
void smbios_mainboard_set_uuid(u8 *uuid);
const char *smbios_mainboard_bios_version(void);
+const char *smbios_mainboard_sku(void);
u8 smbios_mainboard_enclosure_type(void);
#ifdef CONFIG_MAINBOARD_FAMILY
const char *smbios_mainboard_family(void);