PD: config cc status for sc2150 after shutdown

pd/sc2150
config CC status to RD after shudown for sc2150

Change-Id: Iba282f3f7b982a63715553df5eded9168a76f459
Signed-off-by: chailu1 <chailu1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2150656
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Haijian Ma <mahj8@motorola.com>
Reviewed-by: Yuecai Liu <liuyc20@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
chailu1 2021-12-21 14:38:35 +08:00 • committed by Lu Chai
commit 06ca2a6c80

View file

@ -1144,6 +1144,9 @@ static int rt1711_tcpc_deinit(struct tcpc_device *tcpc)
rt1711_i2c_write8(tcpc,
RT1711H_REG_INTRST_CTRL,
RT1711H_REG_INTRST_SET(true, 0));
if (chip->chip_id == SC2150A_DID)
rt1711_i2c_write8(tcpc, RT1711H_REG_SWRESET, 1);
#else
rt1711_i2c_write8(tcpc, RT1711H_REG_SWRESET, 1);
#endif /* CONFIG_TCPC_SHUTDOWN_CC_DETACH */