power: qpnp-charger: reverse boost workaround
Request the chg_gone interrupt and stop charging
when chg_gone triggers to terminate accidental
reverse boosting.
The workaround does the following: During
initialization it only enables ARB detection
but not HW ARB termination. Raises the VCHG_OV
thresholds to 4.7V rising, 4.5V falling threshold
to allow the vchg interrupt to trigger.
Once the VCHG interrupt is triggered the charger
is forced on battery for 1 second which in
a case of charger removal would cause USB_IN or
DC_IN to drop below their respective thresholds and
cause the usbin_valid or dcin_valid interrupts to trigger.
Change-Id: I763b66b202fbf5711961910f6ed0bba42b97dc79
Signed-off-by:
David Keitel <dkeitel@codeaurora.org>
Loading
Please register or sign in to comment