summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorBalaji Rao <balajirrao@openmoko.org>2009-01-27 19:23:12 +0530
committerAnton Vorontsov <cbouatmailru@gmail.com>2009-02-02 19:54:27 +0300
commit9705ecc5c1f8f34f756164a711b4cc61110c0283 (patch)
tree5fa7696dc18323c5a90af54814317d71c999b7cb /include/linux/mfd
parentccc9c8b91c2631da2cab46a6fcd9c3106dcb9abb (diff)
downloadop-kernel-dev-9705ecc5c1f8f34f756164a711b4cc61110c0283.zip
op-kernel-dev-9705ecc5c1f8f34f756164a711b4cc61110c0283.tar.gz
pcf50633_charger: Enable periodic charging restart
The battery charger state machine switches into charging mode when the battery voltage falls below 96% of a battery float voltage. But the voltage drop in Li-ion batteries is marginal(1~2 %) till about 80% of its capacity - which means, after a BATFULL, charging won't be restarted until 80%. This work_struct function restarts charging at regular intervals to make sure the battery doesn't discharge too much. Signed-off-by: Balaji Rao <balajirrao@openmoko.org> Cc: Andy Green <andy@openmoko.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/pcf50633/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/pcf50633/core.h b/include/linux/mfd/pcf50633/core.h
index 4455b21..c8f51c3 100644
--- a/include/linux/mfd/pcf50633/core.h
+++ b/include/linux/mfd/pcf50633/core.h
@@ -29,6 +29,8 @@ struct pcf50633_platform_data {
char **batteries;
int num_batteries;
+ int charging_restart_interval;
+
/* Callbacks */
void (*probe_done)(struct pcf50633 *);
void (*mbc_event_callback)(struct pcf50633 *, int);
OpenPOWER on IntegriCloud