From 721b08706da83d59100c06be1da5a8a853e2597a Mon Sep 17 00:00:00 2001 From: "arthur.lin" Date: Thu, 12 Aug 2021 09:18:22 +0800 Subject: treeya: add skuid 0xbe, 0xbf for treeya360 Add skuid 0xbe(190), 0xbf(191) for treeya360 new audio codec sku. BRANCH=grunt BUG=b:185972050 TEST=make buildall -j Signed-off-by: arthur.lin Change-Id: I8d9fb10af1d4ec5abb146561172180c23d327226 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3088958 Reviewed-by: Paul Fagerburg Reviewed-by: Edward Hill Reviewed-by: Yu-Hsuan Hsu Commit-Queue: Yu-Hsuan Hsu --- baseboard/grunt/baseboard.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'baseboard/grunt') diff --git a/baseboard/grunt/baseboard.c b/baseboard/grunt/baseboard.c index 70270f6927..d3e3f81682 100644 --- a/baseboard/grunt/baseboard.c +++ b/baseboard/grunt/baseboard.c @@ -278,7 +278,8 @@ static uint32_t sku_id; static int ps8751_tune_mux(const struct usb_mux *me) { /* Tune USB mux registers for treeya's port 1 Rx measurement */ - if ((sku_id >= 0xa0) && (sku_id <= 0xaf)) + if (((sku_id >= 0xa0) && (sku_id <= 0xaf)) || + sku_id == 0xbe || sku_id == 0xbf) mux_write(me, PS8XXX_REG_MUX_USB_C2SS_EQ, 0x40); return EC_SUCCESS; @@ -764,9 +765,10 @@ int board_is_convertible(void) { /* Grunt: 6 */ /* Kasumi360: 82 */ - /* Treeya360: a8-af */ + /* Treeya360: a8-af, be, bf*/ return (sku_id == 6 || sku_id == 82 || - ((sku_id >= 0xa8) && (sku_id <= 0xaf))); + ((sku_id >= 0xa8) && (sku_id <= 0xaf)) || + sku_id == 0xbe || sku_id == 0xbf); } int board_is_lid_angle_tablet_mode(void) @@ -785,7 +787,8 @@ __override uint32_t board_override_feature_flags0(uint32_t flags0) sku_id == 32 || sku_id == 33 || sku_id == 40 || sku_id == 41 || sku_id == 44 || sku_id == 45 || - ((sku_id >= 0xa0) && (sku_id <= 0xaf))) + ((sku_id >= 0xa0) && (sku_id <= 0xaf)) || + sku_id == 0xbe || sku_id == 0xbf) return (flags0 & ~EC_FEATURE_MASK_0(EC_FEATURE_PWM_KEYB)); else return flags0; -- cgit v1.2.1