OSDN Git Service

power: qpnp-fg-gen3: update default empty voltage to 2.85 V
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 19 May 2017 20:50:44 +0000 (13:50 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Tue, 23 May 2017 03:42:09 +0000 (20:42 -0700)
Based on the hardware recommendation, update the default empty
voltage from 2.8 V to 2.85 V. This is to prevent undervolting
in low temperatures (e.g. -20 C) when battery voltage drops below
2.8 V but the battery SOC may not reach 0% as the charger is
configured to issue GP_FAULT2 when battery voltage goes below
2.8 V. This helps in shutting down graciously.

Change-Id: Ifc68b825541c09d985d890ee7200ff8e0af2ba0f
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
drivers/power/supply/qcom/qpnp-fg-gen3.c

index d0f7a5e..2664859 100644 (file)
@@ -3880,7 +3880,7 @@ static int fg_parse_ki_coefficients(struct fg_chip *chip)
 }
 
 #define DEFAULT_CUTOFF_VOLT_MV         3200
-#define DEFAULT_EMPTY_VOLT_MV          2800
+#define DEFAULT_EMPTY_VOLT_MV          2850
 #define DEFAULT_RECHARGE_VOLT_MV       4250
 #define DEFAULT_CHG_TERM_CURR_MA       100
 #define DEFAULT_CHG_TERM_BASE_CURR_MA  75