From 982bf99c899f2948e40278a7be2973e28f85af69 Mon Sep 17 00:00:00 2001 From: Sudheer Kumar Amrabadi Date: Thu, 13 Oct 2022 08:48:29 +0530 Subject: soc/qualcomm/sc7280: Update Skuid to support pro/non-pro Tranferring a bit to DC through Skuid to update the regulator node in order to support pro and non-pro BUG=b:248187555 TEST=Validate boards are detected correctly on PRO and NON_PRO SKUs Signed-off-by: Sudheer Kumar Amrabadi Change-Id: Iec392c03c2e2c79d20b1fcb79236ca9e048bfd07 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68385 Reviewed-by: Shelley Chen Tested-by: build bot (Jenkins) --- src/mainboard/google/herobrine/boardid.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainboard/google/herobrine/boardid.c') diff --git a/src/mainboard/google/herobrine/boardid.c b/src/mainboard/google/herobrine/boardid.c index 1f0c88fcb8..38aeb208b0 100644 --- a/src/mainboard/google/herobrine/boardid.c +++ b/src/mainboard/google/herobrine/boardid.c @@ -44,7 +44,11 @@ uint32_t sku_id(void) /* Update modem status in 9th bit of sku id */ uint32_t mask = 1 << 9; + + /* Update pro-part status in 10th bit of sku id */ + uint32_t mask_pro = 1 << 10; id = google_chromeec_get_board_sku(); id = ((id & ~mask) | (socinfo_modem_supported() << 9)); + id = ((id & ~mask_pro) | (socinfo_pro_part() << 10)); return id; } -- cgit v1.2.3