GTA02 USB and battery current profile

Felipe Balbi me at felipebalbi.com
Sun Mar 9 17:02:07 CET 2008


On Sun, Mar 09, 2008 at 04:39:46PM +0100, Michael 'Mickey' Lauer wrote:
> On Sunday 09 March 2008 16:32:30 Michael 'Mickey' Lauer wrote:
> > On Sunday 09 March 2008 16:07:32 Andy Green wrote:
> > > > That would be done in userspace :-p
> > > > Are you guys using HAL?
> >
> > No, we're working on something more lightweight (See
> > http://www.freesmartphone.org/mediawiki/index.php/Implementations/OpenDevic
> >eDaemon)
> >
> > > What we need before this is a plan for the dynamic host / gadget
> > > switching in the kernel.  We can poll the USB ID to find if it is
> > > grounded, floating, or with the "1A" charger... then what do we do if we
> > > find the situation changed?
> >
> > Userland would be satisfied if we had a sysfs node with a description of
> > the current scenario, e.g.
> >
> > "charger" (our 1A charger is connected)
> > "gadget" (we are connected to a host that enumerated us)
> > "host" (we are connected to a gadget)
> >
> > the device daemon can then load the proper module based on either user
> > interaction or context (profile or preference).
> 
> Adding up on that... this assumes we still receive all USB plug events through 
> the input node (as in GTA01) [to prevent polling].

That's great. As soon as I get a GTA here I'll start working on such
events ;-)

-- 
Best Regards,

Felipe Balbi
me at felipebalbi.com
http://blog.felipebalbi.com




More information about the openmoko-kernel mailing list