power: pm8921-charger: enable battery alarm

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: David Keitel <dkeitel@codeaurora.org>
5 files changed