diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 11:58:53 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 11:58:53 +0000 |
commit | fac7f7f84f3771c5247c7fdee825c092077984f5 (patch) | |
tree | 54644c1229434d7ee13c5872bda4129e34337fc0 /target/linux/s3c24xx/patches-2.6.26/0208-fix-aux-key-level-by-gtaxx.patch.patch | |
parent | a34279723a9cf0796f9261f2fb90bea18cd95711 (diff) | |
download | master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.gz master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.tar.bz2 master-187ad058-fac7f7f84f3771c5247c7fdee825c092077984f5.zip |
changed Makefile and profiles, added patches for kernel 2.6.24
(stable-branch of Openmoko)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13613 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches-2.6.26/0208-fix-aux-key-level-by-gtaxx.patch.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches-2.6.26/0208-fix-aux-key-level-by-gtaxx.patch.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/0208-fix-aux-key-level-by-gtaxx.patch.patch b/target/linux/s3c24xx/patches-2.6.26/0208-fix-aux-key-level-by-gtaxx.patch.patch new file mode 100755 index 0000000000..3bbb860d0a --- /dev/null +++ b/target/linux/s3c24xx/patches-2.6.26/0208-fix-aux-key-level-by-gtaxx.patch.patch @@ -0,0 +1,33 @@ +From 5702311defa9e54a2cdfb4d71a4a9e6a90ceb45e Mon Sep 17 00:00:00 2001 +From: Andy Green <andy@openmoko.com> +Date: Fri, 25 Jul 2008 23:06:19 +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 3076af3..70d8bc0 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.3 + |