summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod/power-ipod.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/power-ipod.c')
-rw-r--r--firmware/target/arm/ipod/power-ipod.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c
index ae663d16e5..4c6f6a8db5 100644
--- a/firmware/target/arm/ipod/power-ipod.c
+++ b/firmware/target/arm/ipod/power-ipod.c
@@ -42,8 +42,12 @@ void power_init(void)
bool charger_inserted(void)
{
-#ifdef IPOD_VIDEO
+#if defined(IPOD_VIDEO)
return (GPIOL_INPUT_VAL & 0x08)?false:true;
+#elif defined(IPOD_4G) || defined(IPOD_COLOR) \
+ || defined(IPOD_MINI) || defined(IPOD_MINI2G)
+ /* C2 is firewire power */
+ return (GPIOC_INPUT_VAL & 0x04)?false:true;
#else
/* This needs filling in for other ipods. */
return false;