Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d9446e11 authored by David Keitel's avatar David Keitel Committed by Stephen Boyd
Browse files

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: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 629a2593
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment