Is there a file in /sys that reports charge mode and OM charger detection?

Andy Green andy at openmoko.com
Fri May 30 13:30:59 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| I'd like to know 3 things:
|
| 1. Has the special Openmoko identification resistor been detected?

You can find this from 3 below showing "charger 1A mode 1A"

| 2. Is the Freerunner charging?

#cat /sys/class/i2c-adapter/i2c-0/0-0073/chgmode

play-only     (not charging, no ext power)

or

fast          (charging)

or

enabled  (could charge, but decided not to, maybe full)

| 3. If so, what charge mode are we in (100mA, 500mA, or 1A)?

# cat /sys/class/i2c-adapter/i2c-0/0-0073/charger_type
host/500mA usb mode 100mA

or

host/500mA usb mode 500mA

or

charger 1A mode 1A

or

none mode suspend

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkg/5XMACgkQOjLpvpq7dMr1uQCfX0gA2Bz3hISeR9LzfeNhCf+B
BO0An1MJRV8+A/fq3Eya5C494+rLVDYL
=whfF
-----END PGP SIGNATURE-----




More information about the openmoko-kernel mailing list