Messages in this thread | | | Date | Wed, 21 May 2014 11:32:20 -0700 | From | "Mark A. Greer" <> | Subject | Re: bq24190: What's the correct API to turn boost mode (OTG) on for the battery charger ? |
| |
On Wed, May 21, 2014 at 11:25:43AM -0700, Mark A. Greer wrote: > On Fri, May 16, 2014 at 12:35:34AM +0200, Laurent Pinchart wrote:
> > On a side note, is there any reference userspace implementation of a battery > > manager ? The vendor BSP I've received with the board hardcodes calls to the > > bq24190 in the MUSB driver to switch between OTG and trickle charge modes > > based on USB cable connection/disconnection events. That's pretty ugly, and I > > assume this should be handled in userspace - or is there a standard kernel > > infrastructure for that ? > > I don't have a good feel for what's out there but the charger-manager may > be a good place to start: > > Documentation/power/charger-manager.txt > drivers/power/charger-manager.c
And,
http://elinux.org/images/c/c6/Elce11_ham.pdf
| |