diff options
author | Sudheer Kumar Amrabadi <samrabad@codeaurora.org> | 2022-07-19 16:32:27 +0530 |
---|---|---|
committer | Martin Roth <martin.roth@amd.corp-partner.google.com> | 2022-08-14 21:16:39 +0000 |
commit | 1e811069b3eceaf23cabdf2a988ccb223bb3238c (patch) | |
tree | 61299479a31f96aa438cef8ca885584830334045 /src/mainboard/google/herobrine | |
parent | 6b81bcdb6b4aef797e3ac1eaf1acfd6906510df3 (diff) |
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 <quic_thogaru@quicinc.com>
Change-Id: If62b272a43a4588f96e49c8b2b1d75862d401d31
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65983
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src/mainboard/google/herobrine')
-rw-r--r-- | src/mainboard/google/herobrine/boardid.c | 8 |
1 files changed, 7 insertions, 1 deletions
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 <commonlib/bsd/cb_err.h> #include <console/console.h> #include <gpio.h> +#include <soc/socinfo.h> 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; } |