diff options
author | Michael Sparmann <theseven@rockbox.org> | 2011-02-10 00:14:21 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2011-02-10 00:14:21 +0000 |
commit | 2db7f00255581cec8f6e44048df221566374573e (patch) | |
tree | 3ab98d09b02758b88f26935a9a17dc11018674c1 | |
parent | 40531597f3a766c120e00638e371c367ffbbee7d (diff) | |
download | rockbox-2db7f00255581cec8f6e44048df221566374573e.tar.gz rockbox-2db7f00255581cec8f6e44048df221566374573e.zip |
iPod Classic: Fix current leak through clickwheel GPIOs when clickwheel is powered down
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29267 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/ipod/button-clickwheel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c index a43a059692..2cddbd5950 100644 --- a/firmware/target/arm/ipod/button-clickwheel.c +++ b/firmware/target/arm/ipod/button-clickwheel.c | |||
@@ -394,6 +394,9 @@ bool button_hold(void) | |||
394 | holdswitch_last_read = USEC_TIMER; | 394 | holdswitch_last_read = USEC_TIMER; |
395 | holdswitch_last_value = (pmu_read(0x87) & 2) == 0; | 395 | holdswitch_last_value = (pmu_read(0x87) & 2) == 0; |
396 | } | 396 | } |
397 | if (holdswitch_last_value) | ||
398 | PCON(14) = (PCON(14) & ~0xffffff00) | 0x11111100; | ||
399 | else PCON(14) = (PCON(14) & ~0xffffff00) | 0x22222200; | ||
397 | return holdswitch_last_value; | 400 | return holdswitch_last_value; |
398 | #endif | 401 | #endif |
399 | } | 402 | } |