]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
twl4030_charger: add software controlled linear charging mode.
authorNeilBrown <neil@brown.name>
Thu, 30 Jul 2015 00:11:24 +0000 (10:11 +1000)
committerSebastian Reichel <sre@kernel.org>
Wed, 5 Aug 2015 03:21:32 +0000 (05:21 +0200)
commit7f4a633d21331155ee06c5ee44749ed35a3a3cc5
tree6ea5515851e6e238c9d381df5eb5fd73ab4bf4bd
parent22d4c33f7335ddf6deda26630c78650e133bfe72
twl4030_charger: add software controlled linear charging mode.

Add a 'continuous' option for usb charging which enables
the "linear" charging mode of the twl4030.

Linear charging does a good job with not-so-reliable power sources.
Auto mode does not work well as it switches off when voltage drops
momentarily.  Care must be taken not to over-charge.

It was used with a bike hub dynamo since a year or so. In that case
there are automatically charging stops when the cyclist needs a break.

Original-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: NeilBrown <neil@brown.name>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/ABI/testing/sysfs-class-power-twl4030
drivers/power/twl4030_charger.c