diff options
author | Johan Palsson <johan.palsson@stericsson.com> | 2011-02-10 10:10:24 +0100 |
---|---|---|
committer | Henrik Öhman <henrik.ohman@stericsson.com> | 2011-03-10 10:55:37 +0100 |
commit | 295e3e7b8e7df0a1347c848e6eb1a388f923c211 (patch) | |
tree | 128966e21cf8b935c0050ea2b110ee1a8edfa647 /include | |
parent | 1781d7815c21e60c066074e86b3560fad5a486e3 (diff) |
power: ab8500_bm: Possibility to disable charging of unknown batteries
It is possible to disable charging of batteries that are identified
as unknown. This functionality is however disabled as default
ST-Ericsson ID: WP323569
Change-Id: I312ddf1e06c4157f875af8cea234a92f0c83689a
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/14869
Reviewed-by: QATOOLS
Reviewed-by: Johan GARDSMARK <johan.gardsmark@stericsson.com>
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mfd/ab8500/ab8500-bm.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/linux/mfd/ab8500/ab8500-bm.h b/include/linux/mfd/ab8500/ab8500-bm.h index d7ae3819fa1..c9362699c14 100644 --- a/include/linux/mfd/ab8500/ab8500-bm.h +++ b/include/linux/mfd/ab8500/ab8500-bm.h @@ -370,10 +370,16 @@ struct ab8500_bm_capacity_levels { * @bkup_bat_v voltage which we charge the backup battery with * @bkup_bat_i current which we charge the backup battery with * @therm placement of thermistor, inside or outside of batt pack + * @chg_unknown_bat flag to enable charging of unknown batteries * @fg_res resistance of FG resistor in mOhm - * @arraysize_battype number of elements in array bat_type - * @pcb_ntc table with resistance to temp points for PCB mounted NTC - * @bat_type: table of supported battery types + * @n_btypes number of elements in array bat_type + * @n_temp_tbl_elements number of elements in array pcb_ntc + * @batt_id index of the identified battery in array bat_type + * @cap_levels capacity in percent for the different capacity levels + * @pcb_ntc table with resistance to temp for PCB mounted NTC + * @bat_type table of supported battery types + * @charger_ops pointers to the charger functions used by the algorithm + * @fg_params fuel gauge parameters */ struct ab8500_bm_data { int temp_under; @@ -384,6 +390,7 @@ struct ab8500_bm_data { int usb_safety_tmr_h; int bkup_bat_v; int bkup_bat_i; + bool chg_unknown_bat; enum thermistor therm; int fg_res; int n_btypes; |