power: pm8921-bms: use fixed ibat_avg instead of shutdown ibat_avg

Using stored average ibat(shutdown ibat_avg) which came from
previous boot sometimes cause SoC sudden drop in boot up time.
So this patch use fixed ibat_avg value instead of shutdown ibat_avg
during 1st SoC calculation.

Change-Id: I9675652c3b4918529be40a8d6f8ee29b6dee1359
Signed-off-by: Iliyan Malchev <malchev@google.com>
This commit is contained in:
choongryeol.lee
2012-10-24 21:36:07 -07:00
committed by Iliyan Malchev
parent e40c8d7988
commit cf0acb5176
2 changed files with 24 additions and 13 deletions

View File

@@ -140,6 +140,7 @@ struct pm8921_bms_platform_data {
int wlc_term_ua;
int wlc_max_voltage_uv;
int (*wlc_is_plugged)(void);
int first_fixed_iavg_ma;
};
#if defined(CONFIG_PM8921_BMS) || defined(CONFIG_PM8921_BMS_MODULE)