mb/google/herobrine: Retrieve SKU ID from EC
BUG=b:186264627 BRANCH=none TEST=build herobrine Signed-off-by: Philip Chen <philipchen@google.com> Change-Id: Id3faf7af64c0129ec646a01085adc43b561225d2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/56354 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com>
This commit is contained in:
parent
a8e9dbae65
commit
1158f712dc
|
@ -9,6 +9,7 @@ config BOARD_SPECIFIC_OPTIONS
|
|||
select COMMON_CBFS_SPI_WRAPPER
|
||||
select EC_GOOGLE_CHROMEEC if !BOARD_GOOGLE_SENOR
|
||||
select EC_GOOGLE_CHROMEEC_RTC if !BOARD_GOOGLE_SENOR
|
||||
select EC_GOOGLE_CHROMEEC_SKUID if !BOARD_GOOGLE_SENOR
|
||||
select EC_GOOGLE_CHROMEEC_SPI if !BOARD_GOOGLE_SENOR
|
||||
select RTC if !BOARD_GOOGLE_SENOR
|
||||
select MISSING_BOARD_RESET if BOARD_GOOGLE_SENOR
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
## SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
all-y += boardid.c
|
||||
all-y += chromeos.c
|
||||
ifneq ($(CONFIG_BOARD_GOOGLE_SENOR),y)
|
||||
all-y += boardid.c
|
||||
all-y += reset.c
|
||||
endif
|
||||
bootblock-y += bootblock.c
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <boardid.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <gpio.h>
|
||||
|
||||
uint32_t board_id(void)
|
||||
|
@ -19,7 +20,5 @@ uint32_t ram_code(void)
|
|||
|
||||
uint32_t sku_id(void)
|
||||
{
|
||||
static uint32_t id = UNDEFINED_STRAPPING_ID;
|
||||
|
||||
return id;
|
||||
return google_chromeec_get_board_sku();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue