diff options
author | HongMin Son <hongmin.son@samsung.com> | 2012-09-28 14:03:31 +0900 |
---|---|---|
committer | Ruchi Kandoi <kandoiruchi@google.com> | 2015-02-03 16:49:21 -0800 |
commit | 30a9fdce4e4658dc6538c665206b0de325b5636a (patch) | |
tree | 8c8a2ec488cda6ebaf304ceddaec96cdd83b9a4b /include | |
parent | d4854b0ff1ea8f33bc99ddc978a9964e8b136c1f (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')
-rw-r--r-- | include/linux/platform_data/android_battery.h | 5 |
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 |