diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-08-06 09:09:01 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-08-06 09:28:28 -0400 |
commit | 5d1d431b9793ae69a622a27ab8c25969a5c0ebd5 (patch) | |
tree | 0234f36092077e36c98b21b7f16b9225aec935b0 /firmware/target/arm/ipod/power-ipod.c | |
parent | 6f92c498c446c1133801e499840bf6fc607226b4 (diff) | |
download | rockbox-5d1d431b9793ae69a622a27ab8c25969a5c0ebd5.tar.gz rockbox-5d1d431b9793ae69a622a27ab8c25969a5c0ebd5.zip |
FS#9295: Detect external power supply for ipod 1st & 2nd gen (Mark Fawcus)
Change-Id: I7b64c37ead60152c8a12556cfa344e225abc1980
Diffstat (limited to 'firmware/target/arm/ipod/power-ipod.c')
-rw-r--r-- | firmware/target/arm/ipod/power-ipod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/power-ipod.c b/firmware/target/arm/ipod/power-ipod.c index ef594173f0..fcaf5b4ff8 100644 --- a/firmware/target/arm/ipod/power-ipod.c +++ b/firmware/target/arm/ipod/power-ipod.c | |||
@@ -66,7 +66,7 @@ unsigned int power_input_status(void) | |||
66 | if ((GPIOD_INPUT_VAL & 0x08) != 0) | 66 | if ((GPIOD_INPUT_VAL & 0x08) != 0) |
67 | status |= POWER_INPUT_USB_CHARGER; | 67 | status |= POWER_INPUT_USB_CHARGER; |
68 | /* */ | 68 | /* */ |
69 | #elif defined(IPOD_3G) | 69 | #elif defined(IPOD_3G) || defined(IPOD_1G2G) |
70 | /* firewire power */ | 70 | /* firewire power */ |
71 | if ((GPIOC_INPUT_VAL & 0x10) == 0) | 71 | if ((GPIOC_INPUT_VAL & 0x10) == 0) |
72 | status = POWER_INPUT_MAIN_CHARGER; | 72 | status = POWER_INPUT_MAIN_CHARGER; |