aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohan Palsson <johan.palsson@stericsson.com>2011-02-24 08:22:34 +0100
committerHenrik Öhman <henrik.ohman@stericsson.com>2011-03-11 10:57:43 +0100
commitdbd2b2195bf2be184331188582fd6429f8ff0315 (patch)
tree2ea7e001901a2d5aea9231a02c28de1bbd940c98 /include
parent4eb4efbc6c565a71f64f190b7d4d8c802f1df1bd (diff)
power: ab8500_bm: Support for disabling VBAT overshoot control
In AB8500 there is a feature called VBAT overshoot control. This will limit the charger current in the CV phase to avoid overshoot on the VBAT line. This patch will allow you to disable this feature and use real CV charging. Overshoot will be disabled with this patch to give the best charging performance ST-Ericsson Linux next: Not tested ST-Ericsson ID: WP 325782 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I9c14a5d9df7f8aa3bf8414c506a2fa0104c5ea61 Signed-off-by: Johan Palsson <johan.palsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16847 Tested-by: Rishi KHARE <rishi.khare@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/ab8500/ab8500-bm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/ab8500-bm.h b/include/linux/mfd/ab8500/ab8500-bm.h
index c3a8b291dd3..8ef1a37dad8 100644
--- a/include/linux/mfd/ab8500/ab8500-bm.h
+++ b/include/linux/mfd/ab8500/ab8500-bm.h
@@ -380,6 +380,7 @@ struct ab8500_bm_charger_parameters {
* @bkup_bat_i current which we charge the backup battery with
* @adc_therm placement of thermistor, batctrl or battemp adc
* @chg_unknown_bat flag to enable charging of unknown batteries
+ * @enable_overshoot flag to enable VBAT overshoot control
* @fg_res resistance of FG resistor in mOhm
* @n_btypes number of elements in array bat_type
* @batt_id index of the identified battery in array bat_type
@@ -398,6 +399,7 @@ struct ab8500_bm_data {
int bkup_bat_v;
int bkup_bat_i;
bool chg_unknown_bat;
+ bool enable_overshoot;
enum adc_therm adc_therm;
int fg_res;
int n_btypes;