ac power_supply changed to adapter
andy at openmoko.com
Mon Dec 1 11:55:22 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Somebody in the thread at some point said:
| Andy Green wrote:
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|> Somebody in the thread at some point said:
|> | Is there a specific reason for this? I chose ac initially because that
|> | is what Android expects. I can abstract it out if adapter is thought to
|> | be a better choice.
|> Balaji can tell for sure but I think this may be confusion at one end or
|> the other (maybe my end :-) ). pcf50633 supports an "adapter" path that
|> we don't use on GTA02, but Balaji has exposed it since it's meant to be
|> generic solution for that device now.
|> I assume what you had as "ac" was the 1A charger coming in through USB?
| Oh, right. So the adapter power_supply is something completely
| different? Isn't there a way to tell between usb and ac charger? Like
| check the current?
Yes I didn't go look but I talked with Balaji about the adapter path and
I know he addressed it, so a new power_supply guy turning up called
"adapter" will be this I think.
should be enough hopefully -->
0 - no power on USB
100 - not enumerated (or currently, buggy enumeration)
500 - enumerated
1000 - AC Charger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the openmoko-kernel