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>
This commit is contained in:
Sudheer Kumar Amrabadi 2022-07-19 16:32:27 +05:30 committed by Martin Roth
parent 6b81bcdb6b
commit 1e811069b3
1 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include <commonlib/bsd/cb_err.h> #include <commonlib/bsd/cb_err.h>
#include <console/console.h> #include <console/console.h>
#include <gpio.h> #include <gpio.h>
#include <soc/socinfo.h>
uint32_t board_id(void) uint32_t board_id(void)
{ {
@ -41,5 +42,10 @@ uint32_t ram_code(void)
uint32_t sku_id(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;
} }