Add USB power detection for 4G, Photo, Color, 1G Mini and 2G Mini iPods. (See FS#5826 and FS#7727)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20745 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aef5731d71
commit
75a0a434d1
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,9 @@ unsigned int power_input_status(void)
|
|||
/* C2 is firewire power */
|
||||
if ((GPIOC_INPUT_VAL & 0x04) == 0)
|
||||
status = POWER_INPUT_MAIN_CHARGER;
|
||||
|
||||
if ((GPIOD_INPUT_VAL & 0x08) != 0)
|
||||
status |= POWER_INPUT_USB_CHARGER;
|
||||
/* */
|
||||
#elif defined(IPOD_3G)
|
||||
/* firewire power */
|
||||
|
|
Loading…
Reference in a new issue