From: "Mark A. Greer" <mgreer@animalcreek.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-kernel@vger.kernel.org,
David Woodhouse <dwmw2@infradead.org>,
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
Anton Vorontsov <anton@enomsg.org>
Subject: Re: bq24190: What's the correct API to turn boost mode (OTG) on for the battery charger ?
Date: Wed, 21 May 2014 11:32:20 -0700 [thread overview]
Message-ID: <20140521183220.GA29226@animalcreek.com> (raw)
In-Reply-To: <20140521182543.GA28477@animalcreek.com>
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
next prev parent reply other threads:[~2014-05-21 18:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-15 20:29 bq24190: What's the correct API to turn boost mode (OTG) on for the battery charger ? Laurent Pinchart
2014-05-15 22:08 ` Mark A. Greer
2014-05-15 22:35 ` Laurent Pinchart
2014-05-21 18:25 ` Mark A. Greer
2014-05-21 18:32 ` Mark A. Greer [this message]
2014-05-21 19:01 ` Mark A. Greer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140521183220.GA29226@animalcreek.com \
--to=mgreer@animalcreek.com \
--cc=anton@enomsg.org \
--cc=dbaryshkov@gmail.com \
--cc=dwmw2@infradead.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox