From 979c8c7caefdb0a41d18ddd3f1e3473edf6b7861 Mon Sep 17 00:00:00 2001 From: Meera Ravindranath Date: Wed, 1 Apr 2020 16:04:39 +0530 Subject: [PATCH] mb/intel/jasperlake_rvp: Update SMBIOS data for Jslrvp 1)Change Mainboard Part Number to jslrvp 2)Change Mainboard Family to Intel_jslrvp 3)Generate SMBIOS table and fill sku id information in SMBIOS BUG=None BRANCH=None TEST=Mosys works on jslrvp and Sku ID info is generated Change-Id: Iad0b394fea017223a5b98fff0cb4c2bd1d5a7bd7 Signed-off-by: Meera Ravindranath Reviewed-on: https://review.coreboot.org/c/coreboot/+/40011 Reviewed-by: Frans Hendriks Reviewed-by: Maulik V Vaghela Reviewed-by: Subrata Banik Reviewed-by: Ronak Kanabar Tested-by: build bot (Jenkins) --- src/mainboard/intel/jasperlake_rvp/Kconfig | 4 ++-- src/mainboard/intel/jasperlake_rvp/mainboard.c | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/mainboard/intel/jasperlake_rvp/Kconfig b/src/mainboard/intel/jasperlake_rvp/Kconfig index 9f0f8cc6ed..82e57490e5 100644 --- a/src/mainboard/intel/jasperlake_rvp/Kconfig +++ b/src/mainboard/intel/jasperlake_rvp/Kconfig @@ -25,11 +25,11 @@ config VARIANT_DIR config MAINBOARD_PART_NUMBER string - default "blackwall" + default "jslrvp" config MAINBOARD_FAMILY string - default "Intel_jasperlake_rvp" + default "Intel_jslrvp" config MAX_CPUS int diff --git a/src/mainboard/intel/jasperlake_rvp/mainboard.c b/src/mainboard/intel/jasperlake_rvp/mainboard.c index 733bc5131f..e18f9f4637 100644 --- a/src/mainboard/intel/jasperlake_rvp/mainboard.c +++ b/src/mainboard/intel/jasperlake_rvp/mainboard.c @@ -5,6 +5,7 @@ #include #include #include +#include #include static void mainboard_init(void *chip_info) @@ -21,6 +22,12 @@ static void mainboard_enable(struct device *dev) dev->ops->acpi_inject_dsdt = chromeos_dsdt_generator; } +const char *smbios_system_sku(void) +{ + static const char *sku_str = "sku2147483647"; /* sku{0-1} */ + return sku_str; +} + struct chip_operations mainboard_ops = { .init = mainboard_init, .enable_dev = mainboard_enable,