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>
This commit is contained in:
parent
292aa56ce9
commit
4510a8f4b3
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue