On 01/05/14 23:00, Siarhei Siamashka wrote:
# cat /sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20_regs
only power adapter           : REG[0x0]=0xc1,REG[0x1]=0x10
power adapter + miniusb      : REG[0x0]=0xf9,REG[0x1]=0x10
only miniusb                 : REG[0x0]=0x3d,REG[0x1]=0x70
miniusb + lipo battery       : REG[0x0]=0x3d,REG[0x1]=0x70
power adapter + lipo battery : REG[0x0]=0xc5,REG[0x1]=0x70
only lipo battery            : REG[0x0]=0x1,REG[0x1]=0x30

Note: "only miniusb" and "miniusb + lipo battery" really have the
       same AXP20 register values, that's not a typo.

If you look in the AXP 202 (english, the 209 cn version MIGHT be different (i haven't looked) though Carlo/n01 may say what happens here. (ugly copy paste from pdf)

The following table has listed the status bits
and meanings of external power registers.
Register Status
Bits
Description
REG00H[7] Indicating the presence of external ACIN
REG00H[6] Indicating whether the external ACIN is usable or not
REG00H[5] Indicating the presence of external VBUS
REG00H[4] Indicating whether the external VBUS is usable or not
REG00H[3] Indicating whether the VBUS voltage is above VHOLD when used
REG00H[1] Indicating whether ACIN/VBUS short circuits on PCB or not REG00H[0] Indicating whether the system is triggered to startup by ACIN/VBUS or not


--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to