diff options
author | Wonkyu Kim <wonkyu.kim@intel.com> | 2020-03-03 17:32:48 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-03-07 17:53:13 +0000 |
commit | cf4ede85f9df3134d1c0adb7504b299355ec42a4 (patch) | |
tree | 60db884816a6cf9021b6d5046c7aab2fc09d8235 /src/mainboard/intel | |
parent | 6e61c5ec00ebfac6c7e695e9eedd53a421e75894 (diff) |
mb/intel/tglrvp: Add fixed SKUID to SMBIOS tables
Report fixed SKUID (255) to support mosys.
BUG=none
BRANCH=none
TEST=boot tigerlake rvp board and check mosys and SKUID from smbios
Signed-off-by: Wonkyu Kim <wonkyu.kim@intel.com>
Change-Id: I7a5beed307fd7880a6af127b2dcd06e93e50547d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39269
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Srinidhi N Kaushik <srinidhi.n.kaushik@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/intel')
-rw-r--r-- | src/mainboard/intel/tglrvp/mainboard.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/intel/tglrvp/mainboard.c b/src/mainboard/intel/tglrvp/mainboard.c index d74c11c8ca..9af9d42911 100644 --- a/src/mainboard/intel/tglrvp/mainboard.c +++ b/src/mainboard/intel/tglrvp/mainboard.c @@ -18,6 +18,16 @@ #include <device/device.h> #include <soc/gpio.h> #include <vendorcode/google/chromeos/chromeos.h> +#include <smbios.h> + +const char *smbios_system_sku(void) +{ + static char sku_str[7] = ""; /* sku{0..255} */ + uint32_t sku_id = 255; + + snprintf(sku_str, sizeof(sku_str), "sku%u", sku_id); + return sku_str; +} static void mainboard_init(void *chip_info) { |