aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/abx500/ux500_chargalg.h
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2013-02-14 07:39:15 -0500
committerLee Jones <lee.jones@linaro.org>2013-03-06 23:35:46 -0500
commitdb43e6c473b57d4e7a55c4bd6edef71f40f13eae (patch)
tree0fbe4762c914ba15898cf8bcb9bd8e531fe8fc31 /include/linux/mfd/abx500/ux500_chargalg.h
parent405fea1c6691eb8259f2ca879c9348a4cf5d898d (diff)
ab8500-bm: Add usb power path support
AB8540 supports power path function in USB charging mode for fast power up with dead and weak battery, and it could extend the battery age. When USB charging starts, if the Vbattrue is below than SW cut off voltage, power path and pre-charge should be enabled. If Vbattrue is higher than SW cut off voltage, power path and pre-charge should be disabled. This is to make sure full current to battery charge. At the end of charge, power path should be enable again to reduce charging the battery again. Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/abx500/ux500_chargalg.h')
-rw-r--r--include/linux/mfd/abx500/ux500_chargalg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/abx500/ux500_chargalg.h b/include/linux/mfd/abx500/ux500_chargalg.h
index fa831f1e8cf8..234c99143bf7 100644
--- a/include/linux/mfd/abx500/ux500_chargalg.h
+++ b/include/linux/mfd/abx500/ux500_chargalg.h
@@ -20,6 +20,8 @@ struct ux500_charger_ops {
20 int (*check_enable) (struct ux500_charger *, int, int); 20 int (*check_enable) (struct ux500_charger *, int, int);
21 int (*kick_wd) (struct ux500_charger *); 21 int (*kick_wd) (struct ux500_charger *);
22 int (*update_curr) (struct ux500_charger *, int); 22 int (*update_curr) (struct ux500_charger *, int);
23 int (*pp_enable) (struct ux500_charger *, bool);
24 int (*pre_chg_enable) (struct ux500_charger *, bool);
23}; 25};
24 26
25/** 27/**
@@ -30,6 +32,7 @@ struct ux500_charger_ops {
30 * @max_out_curr maximum output charger current in mA 32 * @max_out_curr maximum output charger current in mA
31 * @enabled indicates if this charger is used or not 33 * @enabled indicates if this charger is used or not
32 * @external external charger unit (pm2xxx) 34 * @external external charger unit (pm2xxx)
35 * @power_path USB power path support
33 */ 36 */
34struct ux500_charger { 37struct ux500_charger {
35 struct power_supply psy; 38 struct power_supply psy;
@@ -39,6 +42,7 @@ struct ux500_charger {
39 int wdt_refresh; 42 int wdt_refresh;
40 bool enabled; 43 bool enabled;
41 bool external; 44 bool external;
45 bool power_path;
42}; 46};
43 47
44extern struct blocking_notifier_head charger_notifier_list; 48extern struct blocking_notifier_head charger_notifier_list;