power: qpnp-charger: avoid ARB during JEITA

To avoid a possible accidental reverse boost condition
imposed by setting VDDMAX < VBAT, introduce the following
new flow for JEITA.

Once warm or cool temperature zones are entered, only
adjust VBATDET:

  * If VBAT is less than VBATDET the fast charge interrupt
    will be triggered and subsequently the appropriate
    VDDMAX and IBATMAX adjustments will be made.
  * If VBAT is exceeding VBATDET, charging will be stopped
    and only resumed via the VBATDET_LO threshold. Once
    charging resumes the appropriate VDDMAX IBATMAX adjustments
    will be made.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>
CRs-Fixed: 605333
Change-Id: I13f3bad10f8478efd0ed4ff4c9ae6988ca6baafe
1 file changed