Peichao Li has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/35214 )
Change subject: mb/google/kahlee/treeya: override sku_id() function ......................................................................
mb/google/kahlee/treeya: override sku_id() function
override 'uint32_t sku_id(void)' so that lib_sysinfo.sku_id get a correct value in depthcharge.
BUG=b:140010592 BRANCH=none TEST=boot treeya board, in depthcharge stage, lib_sysinfo.sku_id print correct value.
Signed-off-by: Peichao Wang peichao.wang@bitland.corp-partner.google.com Change-Id: I631f62021e8104a69a43667a811c9c23e3105596 --- M src/mainboard/google/kahlee/variants/baseboard/mainboard.c 1 file changed, 7 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/35214/1
diff --git a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c index 95274eb..30fcc8c 100644 --- a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c +++ b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c @@ -15,6 +15,7 @@
#include <ec/google/chromeec/ec.h> #include <baseboard/variants.h> +#include <boardid.h> #include <cbfs.h> #include <gpio.h> #include <smbios.h> @@ -24,7 +25,7 @@ #include <device/pci_ops.h> #include <drivers/generic/bayhub/bh720.h>
-uint8_t variant_board_sku(void) +uint32_t sku_id(void) { static int sku = -1;
@@ -34,6 +35,11 @@ return sku; }
+uint8_t variant_board_sku(void) +{ + return sku_id(); +} + void variant_mainboard_suspend_resume(void) { /* Enable backlight - GPIO 133 active low */