diff options
author | Nils Wallménius <nils@rockbox.org> | 2009-02-15 08:50:31 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2009-02-15 08:50:31 +0000 |
commit | 32d7c6a8631feb85340cf5b0fd8284d282082ca2 (patch) | |
tree | e914aaa7ff248ee4f5a125a5fc10f1be92350145 /firmware/target | |
parent | 1a5ed1b05d1679a0d9f1acc0fda914a11d501dae (diff) | |
download | rockbox-32d7c6a8631feb85340cf5b0fd8284d282082ca2.tar.gz rockbox-32d7c6a8631feb85340cf5b0fd8284d282082ca2.zip |
Firewire charger detection for ipod 3G, patch by Boris Gjenero. Fixes FS#9900
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20008 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/ipod/power-ipod.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c index cb93fe398f..4c6df882c6 100644 --- a/firmware/target/arm/ipod/power-ipod.c +++ b/firmware/target/arm/ipod/power-ipod.c | |||
@@ -60,6 +60,11 @@ unsigned int power_input_status(void) | |||
60 | if ((GPIOC_INPUT_VAL & 0x04) == 0) | 60 | if ((GPIOC_INPUT_VAL & 0x04) == 0) |
61 | status = POWER_INPUT_MAIN_CHARGER; | 61 | status = POWER_INPUT_MAIN_CHARGER; |
62 | /* */ | 62 | /* */ |
63 | #elif defined(IPOD_3G) | ||
64 | /* firewire power */ | ||
65 | if ((GPIOC_INPUT_VAL & 0x10) == 0) | ||
66 | status = POWER_INPUT_MAIN_CHARGER; | ||
67 | /* */ | ||
63 | #else | 68 | #else |
64 | /* This needs filling in for other ipods. */ | 69 | /* This needs filling in for other ipods. */ |
65 | #endif | 70 | #endif |