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.zip rockbox-2db7f00255581cec8f6e44048df221566374573e.tar.gz rockbox-2db7f00255581cec8f6e44048df221566374573e.tar.bz2 rockbox-2db7f00255581cec8f6e44048df221566374573e.tar.xz | |
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 a43a059..2cddbd5 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) holdswitch_last_read = USEC_TIMER; holdswitch_last_value = (pmu_read(0x87) & 2) == 0; } + if (holdswitch_last_value) + PCON(14) = (PCON(14) & ~0xffffff00) | 0x11111100; + else PCON(14) = (PCON(14) & ~0xffffff00) | 0x22222200; return holdswitch_last_value; #endif } |