• Lee Jones's avatar
    ab8500-bm: Add usb power path support · db43e6c4
    Lee Jones authored
    AB8540 supports power path function in USB charging mode for fast
    power up with dead and weak battery, and it could extend
    the battery age.
    
    When USB charging starts, if the Vbattrue is below than SW cut off
    voltage, power path and pre-charge should be enabled. If Vbattrue
    is higher than SW cut off voltage, power path and pre-charge should
    be disabled. This is to make sure full current to battery charge.
    At the end of charge, power path should be enable again to reduce
    charging the battery again.
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    db43e6c4
abx500_chargalg.c 58.5 KB