power: qpnp-smb5: Use the RECHARGE_SOC psy property to force recharge
In some cases PMI632 is unable to recharge when SOC drops below
the recharge-SOC threshold. In such a case, force a recharge
using the RECHARGE_SOC property which disables and re-enables
battery charging.
While at it, add the BATTERY_CHARGING property to allow users to
enable/disable battery charging.
Change-Id: Ic1e77c786511ba7318155a30fffde4b9abe375df
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
diff --git a/drivers/power/supply/qcom/smb5-lib.h b/drivers/power/supply/qcom/smb5-lib.h
index 7ee4a3a..668ce5f 100644
--- a/drivers/power/supply/qcom/smb5-lib.h
+++ b/drivers/power/supply/qcom/smb5-lib.h
@@ -67,6 +67,7 @@
#define HW_LIMIT_VOTER "HW_LIMIT_VOTER"
#define DYNAMIC_RP_VOTER "DYNAMIC_RP_VOTER"
#define DEFAULT_100MA_VOTER "DEFAULT_100MA_VOTER"
+#define FORCE_RECHARGE_VOTER "FORCE_RECHARGE_VOTER"
#define BOOST_BACK_STORM_COUNT 3
#define WEAK_CHG_STORM_COUNT 8