Index: ipod/power-ipod.c =================================================================== --- ipod/power-ipod.c (revision 20432) +++ ipod/power-ipod.c (working copy) @@ -74,7 +74,13 @@ /* Returns true if the unit is charging the batteries. */ bool charging_state(void) { +#if defined(IPOD_COLOR) + /* 0x70000088 is a GPO32 latching input? */ + outl(0, 0x70000088); + return (inl(0x70000088) & 1)?false:true; +#else return (GPIOB_INPUT_VAL & 0x01)?false:true; +#endif } #endif /* CONFIG_CHARGING */