mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
charging: avoid vbus voltage increase to 12V
If sometimes dm drop to 0V slowly, then vbus increase to 12V as dp 0.6V dm 0.6V. So first drop dm to 0V and then drop dp to 0.6V. Change-Id: I8db3b6273dd4be244b75513a0103a021719bf070 Signed-off-by: mahj8 <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2109927 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Reviewed-by: Lu Chai <chailu1@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
f0b71b186c
commit
73f818f4b5
1 changed files with 4 additions and 4 deletions
|
|
@ -325,15 +325,15 @@ static int sgm4154x_adjust_qc20_hvdcp_5v(struct sgm4154x_device *sgm)
|
|||
int dp_val, dm_val;
|
||||
|
||||
/* dp 0.6v and dm 0v out 5V */
|
||||
dp_val = 0x2<<3;
|
||||
ret = regmap_update_bits(sgm->regmap, SGM4154x_CHRG_CTRL_d,
|
||||
SGM4154x_DP_VSEL_MASK, dp_val); //dp 0.6v
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
dm_val = 0x1<<1;
|
||||
ret = regmap_update_bits(sgm->regmap, SGM4154x_CHRG_CTRL_d,
|
||||
SGM4154x_DM_VSEL_MASK, dm_val); //dm 0v
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
dp_val = 0x2<<3;
|
||||
ret = regmap_update_bits(sgm->regmap, SGM4154x_CHRG_CTRL_d,
|
||||
SGM4154x_DP_VSEL_MASK, dp_val); //dp 0.6v
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue