Re: bq24190: What's the correct API to turn boost mode (OTG) on for the battery charger ?

From: Mark A. Greer
Date: Wed May 21 2014 - 14:32:29 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/