diff options
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/herobrine/Kconfig | 1 | ||||
-rw-r--r-- | src/mainboard/google/herobrine/Makefile.inc | 2 | ||||
-rw-r--r-- | src/mainboard/google/herobrine/boardid.c | 5 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mainboard/google/herobrine/Kconfig b/src/mainboard/google/herobrine/Kconfig index 7f88b94f5c..38bb328753 100644 --- a/src/mainboard/google/herobrine/Kconfig +++ b/src/mainboard/google/herobrine/Kconfig @@ -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 diff --git a/src/mainboard/google/herobrine/Makefile.inc b/src/mainboard/google/herobrine/Makefile.inc index 11a396ff04..a80779946d 100644 --- a/src/mainboard/google/herobrine/Makefile.inc +++ b/src/mainboard/google/herobrine/Makefile.inc @@ -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 diff --git a/src/mainboard/google/herobrine/boardid.c b/src/mainboard/google/herobrine/boardid.c index eecbeab087..6368d25157 100644 --- a/src/mainboard/google/herobrine/boardid.c +++ b/src/mainboard/google/herobrine/boardid.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(); } |