lkml.org 
[lkml]   [2014]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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


\
 
 \ /
  Last update: 2014-05-21 21:01    [W:0.279 / U:2.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site