From 1e811069b3eceaf23cabdf2a988ccb223bb3238c Mon Sep 17 00:00:00 2001 From: Sudheer Kumar Amrabadi Date: Tue, 19 Jul 2022 16:32:27 +0530 Subject: mb/google/herobrine: Update modem status with skuid info BUG=b:232302324 TEST=Validated on qualcomm sc7280 development board Observing 9th bit of skuid with below values, 1 means Modem device 0 means non-modem device Signed-off-by: Venkat Thogaru Change-Id: If62b272a43a4588f96e49c8b2b1d75862d401d31 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65983 Tested-by: build bot (Jenkins) Reviewed-by: Shelley Chen --- src/mainboard/google/herobrine/boardid.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/mainboard/google') diff --git a/src/mainboard/google/herobrine/boardid.c b/src/mainboard/google/herobrine/boardid.c index 6449561e0e..7bac5df1eb 100644 --- a/src/mainboard/google/herobrine/boardid.c +++ b/src/mainboard/google/herobrine/boardid.c @@ -6,6 +6,7 @@ #include #include #include +#include uint32_t board_id(void) { @@ -41,5 +42,10 @@ uint32_t ram_code(void) uint32_t sku_id(void) { - return google_chromeec_get_board_sku(); + static uint32_t id = UNDEFINED_STRAPPING_ID; + /*Update modem status in 9th bit of sku id*/ + uint32_t mask = 1 << 9; + id = google_chromeec_get_board_sku(); + id = ((id & ~mask) | (socinfo_modem_supported() << 9)); + return id; } -- cgit v1.2.3