summaryrefslogtreecommitdiff
path: root/target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-12 11:58:53 +0000
commit614683faf8029100802db06a825648d0b6490285 (patch)
tree7401b135dc7ce24ff0175e67e0f2ce7f96296ff0 /target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch
parent4a018d2445c5f249179ff82c8fffb0e3b717f738 (diff)
downloadmtk-20170518-614683faf8029100802db06a825648d0b6490285.zip
mtk-20170518-614683faf8029100802db06a825648d0b6490285.tar.gz
mtk-20170518-614683faf8029100802db06a825648d0b6490285.tar.bz2
changed Makefile and profiles, added patches for kernel 2.6.24 (stable-branch of Openmoko)
SVN-Revision: 13613
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch')
-rw-r--r--target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch b/target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch
new file mode 100644
index 0000000..07704f1
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.24/1228-fix-aux-key-level-by-gtaxx.patch.patch
@@ -0,0 +1,33 @@
+From 18ca5bd67840d6b2e21edb86057db10b2f21892d Mon Sep 17 00:00:00 2001
+From: Andy Green <andy@openmoko.com>
+Date: Sun, 13 Jul 2008 20:30:20 +0100
+Subject: [PATCH] fix-aux-key-level-by-gtaxx.patch
+ Reported-by: Mickey Lauer <mickey@openmoko.org>
+
+AUX level detection is inverted based on GTA01 or 02
+
+Signed-off-by: Andy Green <andy@openmoko.com>
+---
+ drivers/input/keyboard/neo1973kbd.c | 5 ++++-
+ 1 files changed, 4 insertions(+), 1 deletions(-)
+
+diff --git a/drivers/input/keyboard/neo1973kbd.c b/drivers/input/keyboard/neo1973kbd.c
+index 868d0a7..2ea6846 100644
+--- a/drivers/input/keyboard/neo1973kbd.c
++++ b/drivers/input/keyboard/neo1973kbd.c
+@@ -39,8 +39,11 @@ struct neo1973kbd {
+ static irqreturn_t neo1973kbd_aux_irq(int irq, void *dev_id)
+ {
+ struct neo1973kbd *neo1973kbd_data = dev_id;
++ int key_pressed = !gpio_get_value(irq_to_gpio(irq));
+
+- int key_pressed = !!gpio_get_value(irq_to_gpio(irq));
++ /* GTA02 has inverted sense level compared to GTA01 */
++ if (machine_is_neo1973_gta02())
++ key_pressed = !key_pressed;
+ input_report_key(neo1973kbd_data->input, KEY_PHONE, key_pressed);
+ input_sync(neo1973kbd_data->input);
+
+--
+1.5.6.5
+