• David Keitel's avatar
    power: pm8921-charger: enable battery alarm · 8b079fb3
    David Keitel authored
    
    
    During UVLO events the charger hardware may lock up
    if it is in hardware clock switching mode.
    
    To fix this add a battery alarm with a lower threshold
    that disables hardware clock switching.
    
    When the system is awake the resume callback ensures
    that the charger is running off of the 19.2 MhZ clock
    which does not allow the charger to lock up. Therefore
    if the battery alarm wakes up the device before hitting
    UVLO the charger hardware will not be in hardware clock
    switching mode.
    
    CRs-Fixed: 374607
    Change-Id: I11938c569a25b026ee6b7b5125cec930676ec01d
    Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
    8b079fb3
board-8930-pmic.c 17.4 KB