From a5961c944b75d1fb9cacac9382f7f1d23351d74b Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 29 Nov 2020 08:51:37 -0500 Subject: FS#5320: Keypad hold doesn't let go until scrolling is used (ipod 4g/5g) Patch by Boris Gjenero Change-Id: I7df956fb63478bbbe891104faf5ab35096da7576 --- firmware/target/arm/ipod/button-clickwheel.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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) { -- cgit v1.2.3