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>
This commit is contained in:
Wonkyu Kim 2020-03-03 17:32:48 -08:00 committed by Patrick Georgi
parent 6e61c5ec00
commit cf4ede85f9
1 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,16 @@
#include <device/device.h> #include <device/device.h>
#include <soc/gpio.h> #include <soc/gpio.h>
#include <vendorcode/google/chromeos/chromeos.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) static void mainboard_init(void *chip_info)
{ {