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:
Boris Gjenero 2009-04-19 18:17:35 +00:00
parent aef5731d71
commit 75a0a434d1

View file

@ -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 */