diff options
author | Johan Palsson <johan.palsson@stericsson.com> | 2011-02-21 10:25:22 +0100 |
---|---|---|
committer | Henrik Öhman <henrik.ohman@stericsson.com> | 2011-03-10 15:44:57 +0100 |
commit | 9f487d394e3a0d3778d54e9e3e3bc22a88c504ad (patch) | |
tree | 7b54087e9b894820156c6e7f4ad92d135e880d72 /include | |
parent | fb1bd4fe80e81c639ffbabc63af9ef7be387b70b (diff) |
power: ab8500_bm: Disable charging if charger voltage too high
Charging is not allowed if the charger voltage is above maximum limit
ST-Ericsson ID: WP324203
Change-Id: I47351975e4b59c48a93281c4f626e805b5016617
Signed-off-by: Johan Palsson <johan.palsson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/16364
Reviewed-by: Johan GARDSMARK <johan.gardsmark@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.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/ab8500-bm.h b/include/linux/mfd/ab8500/ab8500-bm.h index 2ca5355b612..82a0c15ffda 100644 --- a/include/linux/mfd/ab8500/ab8500-bm.h +++ b/include/linux/mfd/ab8500/ab8500-bm.h @@ -362,6 +362,20 @@ struct ab8500_bm_capacity_levels { }; /** + * struct ab8500_bm_charger_parameters - Charger specific parameters + * @usb_volt_max: maximum allowed USB charger voltage in mV + * @usb_curr_max: maximum allowed USB charger current in mA + * @ac_volt_max: maximum allowed AC charger voltage in mV + * @ac_curr_max: maximum allowed AC charger current in mA + */ +struct ab8500_bm_charger_parameters { + int usb_volt_max; + int usb_curr_max; + int ac_volt_max; + int ac_curr_max; +}; + +/** * struct ab8500_bm_data - ab8500 battery management data * @temp_under under this temp, charging is stopped * @temp_low between this temp and temp_under charging is reduced @@ -381,6 +395,7 @@ struct ab8500_bm_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 + * @chg_params charger parameters * @fg_params fuel gauge parameters */ struct ab8500_bm_data { @@ -402,6 +417,7 @@ struct ab8500_bm_data { struct res_to_temp *pcb_ntc; struct battery_type *bat_type; struct ab8500_charger_ops charger_ops; + const struct ab8500_bm_charger_parameters *chg_params; const struct ab8500_fg_parameters *fg_params; }; |