summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeichao Wang <peichao.wang@bitland.corp-partner.google.com>2019-09-03 07:52:18 +0800
committerMartin Roth <martinroth@google.com>2019-09-04 21:47:48 +0000
commit4510a8f4b37418eeb7f71fa47ffb1e03a9920457 (patch)
treebeed5072de9eb7c3144a61334aa840eadf4d3288
parent292aa56ce9f652cad0526972200af08c4d94e67c (diff)
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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/35214 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Magf - <magf@bitland.corp-partner.google.com> Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Martin Roth <martinroth@google.com>
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/mainboard.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
index 95274eb85d..30fcc8c2a2 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 @@ uint8_t variant_board_sku(void)
return sku;
}
+uint8_t variant_board_sku(void)
+{
+ return sku_id();
+}
+
void variant_mainboard_suspend_resume(void)
{
/* Enable backlight - GPIO 133 active low */