msm: pm8921-chg: configure alarm voltage for 8930
The battery alarm is used in charger to switch to 19.2Mhz clock when the
battery goes low before a certain threshold. This way we prevent lockups
if a shutdown or UVLO were to happen.
Configure the low battery voltage for 8930 based hardware.
Change-Id: I33252dffcbadcdbe92e8967388ef28bce55476f3
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit c725804b7cb90a761f75d519c866d0b184e568fc)
diff --git a/arch/arm/mach-msm/board-8930-pmic.c b/arch/arm/mach-msm/board-8930-pmic.c
index cadd676..a3e1b27 100644
--- a/arch/arm/mach-msm/board-8930-pmic.c
+++ b/arch/arm/mach-msm/board-8930-pmic.c
@@ -214,6 +214,7 @@
.max_voltage = MAX_VOLTAGE_MV,
.min_voltage = 3200,
.uvd_thresh_voltage = 4050,
+ .alarm_voltage = 3400,
.resume_voltage_delta = 100,
.term_current = CHG_TERM_MA,
.cool_temp = 10,