summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHongMin Son <hongmin.son@samsung.com>2012-09-28 14:03:31 +0900
committerNitin Garg <nitin.garg@freescale.com>2014-04-21 22:35:02 -0500
commitfc93cb55fbe2bc2353feef3fe05a627d6fbaa8de (patch)
tree728e5576c28caf9ffd960b0843faaa472aba4d5e /include/linux
parentebce520aa704b7d8030f06e50b7bfbee1a36dc05 (diff)
power: android-battery: add charge timeouts and recharge logic
Add recharge logic when voltage threshold reached. Add charge and recharge timeouts. Change-Id: I3ef3b926ce694115dde7f8056072bef63884a5d0 Signed-off-by: HongMin Son <hongmin.son@samsung.com> Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/platform_data/android_battery.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/platform_data/android_battery.h b/include/linux/platform_data/android_battery.h
index a0749f5b9d3b..f6c8298fd885 100644
--- a/include/linux/platform_data/android_battery.h
+++ b/include/linux/platform_data/android_battery.h
@@ -20,6 +20,7 @@ enum {
struct android_bat_callbacks {
void (*charge_source_changed)
(struct android_bat_callbacks *, int);
+ void (*battery_set_full)(struct android_bat_callbacks *);
};
struct android_bat_platform_data {
@@ -37,6 +38,10 @@ struct android_bat_platform_data {
int temp_high_recovery;
int temp_low_recovery;
int temp_low_threshold;
+
+ unsigned long full_charging_time;
+ unsigned long recharging_time;
+ unsigned int recharging_voltage;
};
#endif