Commit 9bb777dd authored by Ajay Dudani's avatar Ajay Dudani Committed by Iliyan Malchev
Browse files

power: pm8921-charger: adjust vdd max earlier



The charger hardware decides Constant Current VS Constant Voltage based
on the VPH_PWR voltage and not on battery voltage (vbatt) as it should.

The problem is, becuase of IR drop between VPH_PWR and VBATT,  VPH_PWR
reaches the voltage programmed in vdd_max earlier while the VBATT stays
lower causing the charger hardware switch to constant voltage mode
prematurely.

To fix this issue, adjust the vdd_max early.

Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: default avatarAjay Dudani <adudani@codeaurora.org>
Signed-off-by: default avatarIliyan Malchev <malchev@google.com>
parent 19d01348
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment