summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Lynn <andrew.lynn@stericsson.com>2011-08-18 15:08:21 +0100
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-05 12:53:03 +0200
commit9b78a762363fc1b4c205187a5f7ae90628f6c4e9 (patch)
tree622afbe091f4c6e4ccc0d4a25d15f4b78a126219 /include
parent1f86aeb6ede88f09ee5ee3fc5d82155509e02ed4 (diff)
ab8500-bm: Ground lift compensation for Tbat
Measure Ibat and remove the resulting voltage between Vbat- and Gnd from Vntc readings. ST-Ericsson ID: 350661 ST-Ericsson FOSS-OUT ID: Trivial ST-Ericsson Linux next: NA Change-Id: I232b9fc7da3ea69e2062feda98776ded33d6253b Signed-off-by: Andrew Lynn <andrew.lynn@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/27869 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: QATEST Reviewed-by: Johan PALSSON <johan.palsson@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/ab8500/bm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/bm.h b/include/linux/mfd/ab8500/bm.h
index cbd66dfd9ec..0bd8703b2bd 100644
--- a/include/linux/mfd/ab8500/bm.h
+++ b/include/linux/mfd/ab8500/bm.h
@@ -415,6 +415,7 @@ struct ab8500_bm_charger_parameters {
* @interval_charging charge alg cycle period time when charging (sec)
* @interval_not_charging charge alg cycle period time when not charging (sec)
* @temp_hysteresis temperature hysteresis
+ * @gnd_lift_resistance Battery ground to phone ground resistance (mOhm)
* @maxi: maximization parameters
* @cap_levels capacity in percent for the different capacity levels
* @bat_type table of supported battery types
@@ -442,6 +443,7 @@ struct ab8500_bm_data {
int interval_charging;
int interval_not_charging;
int temp_hysteresis;
+ int gnd_lift_resistance;
const struct ab8500_maxim_parameters *maxi;
const struct ab8500_bm_capacity_levels *cap_levels;
const struct battery_type *bat_type;