diff options
author | Johan Bjornstedt <johan.bjornstedt@stericsson.com> | 2011-11-14 09:26:13 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:01:11 +0200 |
commit | 56df9125dba0d979cf7e692b5b5f193823ec2b97 (patch) | |
tree | b54bd66fabd6428ccc0e8bbe121e5096212729d9 | |
parent | ec0eb4b5a300afef03b256b78a5c2833db346dac (diff) |
power: ab8500_bm: Use FG resistance value in calculation
The fuel gauge resistor value was only used for the instant
current calculation. This patch will use this value in the
average calculation. The unit for the FG resistance is now
in 0.1mOhm to increase precision
ST-Ericsson ID: 370883
ST-Ericsson Linux next: Not tested
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: I62af322addd8af7c049cfaccd449a0349faa7946
Signed-off-by: Johan Bjornstedt <johan.bjornstedt@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/37524
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-bm.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ux500/board-u5500-bm.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-bm.c b/arch/arm/mach-ux500/board-mop500-bm.c index e78586ed009..085661e7491 100644 --- a/arch/arm/mach-ux500/board-mop500-bm.c +++ b/arch/arm/mach-ux500/board-mop500-bm.c @@ -409,7 +409,7 @@ struct ab8500_bm_data ab8500_bm_data = { #endif .chg_unknown_bat = false, .enable_overshoot = false, - .fg_res = 10, + .fg_res = 100, .cap_levels = &cap_levels, .bat_type = bat_type, .n_btypes = ARRAY_SIZE(bat_type), diff --git a/arch/arm/mach-ux500/board-u5500-bm.c b/arch/arm/mach-ux500/board-u5500-bm.c index cbd03a31c6a..fb181c2cb9a 100644 --- a/arch/arm/mach-ux500/board-u5500-bm.c +++ b/arch/arm/mach-ux500/board-u5500-bm.c @@ -472,7 +472,7 @@ struct abx500_bm_data ab5500_bm_data = { #endif .chg_unknown_bat = false, .enable_overshoot = false, - .fg_res = 20, + .fg_res = 200, .cap_levels = &cap_levels, .bat_type = bat_type, .n_btypes = ARRAY_SIZE(bat_type), |