summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-11-29 08:51:37 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-11-29 08:51:37 -0500
commita5961c944b75d1fb9cacac9382f7f1d23351d74b (patch)
tree5484803894ee6361edad911bbfd6c840e0286392
parentc8da2bc1453cab240c4dff8312b797d8dd579d0a (diff)
FS#5320: Keypad hold doesn't let go until scrolling is used (ipod 4g/5g)
Patch by Boris Gjenero Change-Id: I7df956fb63478bbbe891104faf5ab35096da7576
-rw-r--r--firmware/target/arm/ipod/button-clickwheel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c
index f9a9284915..8f238936e7 100644
--- a/firmware/target/arm/ipod/button-clickwheel.c
+++ b/firmware/target/arm/ipod/button-clickwheel.c
@@ -259,6 +259,14 @@ static inline int ipod_4g_button_read(void)
}
}
+ else if ((status & 0x800000ff) != 0x8000003a &&
+ status != 0xFFFFFFFF)
+ {
+ udelay(2000);
+ outl(inl(0x7000c100) & ~0x60000000, 0x7000c100);
+ outl(inl(0x7000c104) | 0x04000000, 0x7000c104);
+ outl(inl(0x7000c100) | 0x60000000, 0x7000c100);
+ }
#if CONFIG_CPU==S5L8701 || CONFIG_CPU==S5L8702
else if ((status & 0x8000FFFF) == 0x8000023A)
{