diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /packages/linux/linux-jlime-jornada7xx-2.6.17/Newfile-Jornada720_kbd.patch | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'packages/linux/linux-jlime-jornada7xx-2.6.17/Newfile-Jornada720_kbd.patch')
-rw-r--r-- | packages/linux/linux-jlime-jornada7xx-2.6.17/Newfile-Jornada720_kbd.patch | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/packages/linux/linux-jlime-jornada7xx-2.6.17/Newfile-Jornada720_kbd.patch b/packages/linux/linux-jlime-jornada7xx-2.6.17/Newfile-Jornada720_kbd.patch deleted file mode 100644 index 7259647021..0000000000 --- a/packages/linux/linux-jlime-jornada7xx-2.6.17/Newfile-Jornada720_kbd.patch +++ /dev/null @@ -1,101 +0,0 @@ ---- linux-2.6.17-vanilla/drivers/input/keyboard/jornada720_kbd.c 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.17/drivers/input/keyboard/jornada720_kbd.c 2006-07-10 17:06:11.000000000 +0000 -@@ -0,0 +1,98 @@ -+/* -+ * Jornada 720 keyboard interface -+ */ -+ -+#include <linux/input.h> -+#include <linux/module.h> -+#include <linux/kernel.h> -+#include <linux/init.h> -+#include <linux/delay.h> -+#include <linux/slab.h> -+#include <linux/errno.h> -+#include <linux/interrupt.h> -+ -+#include <asm/arch/hardware.h> -+#include <asm/arch/jornada720.h> -+#include <asm/irq.h> -+#include <asm/mach/irq.h> -+ -+MODULE_AUTHOR("Alex Lange <chicken@handhelds.org>"); -+MODULE_DESCRIPTION("Jornada 720 keyboard driver"); -+MODULE_LICENSE("GPL"); -+ -+static char jornada720_kbd_name[] = "Jornada 720 keyboard"; -+ -+static struct input_dev *dev; -+ -+static unsigned char jornada720_normal_keymap[128] = { -+ 0, 1, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 87, KEY_VOLUMEUP, KEY_VOLUMEDOWN, KEY_MUTE, -+ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 0, 0, 0, -+ 0, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 43, 14, 0, 0, 0, -+ 0, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, KEY_LEFTBRACE, KEY_RIGHTBRACE, 0, 0, 0, -+ 0, 44, 45, 46, 47, 48, 49, 50, 51, 52, KEY_KPMINUS, 40, 28, 0, 0, 0, -+ 0, 15, 0, 42, 0, 40, 0, 0, 0, 0, 103, 0, 54, 0, 0, 0, -+ 0, 0, 0, 0, 0, 56, KEY_GRAVE, 0, 0, 105, 108, 106, 0, 0, 0, 0, -+ 0, 55, 29, 0, 57, 0, 0, 0, 53, 111, 0, 0, 0, 0, 0, 116, -+}; -+ -+static irqreturn_t jornada720_keyboard_interrupt(int irq, void *dev_id, struct pt_regs *regs) -+{ -+ int key, keycode; -+ int count, mcu_data=0; -+ -+ jornada720_mcu_start(MCU_GetScanKeyCode); -+ count = jornada720_mcu_read(); -+ -+ while (count-- > 0) { -+ key = mcu_data = jornada720_mcu_read(); -+ -+ if (key > 128) -+ key = key - 128; -+ -+ keycode = jornada720_normal_keymap[key]; -+ -+ if (mcu_data < 128) { -+ input_report_key(dev, keycode, 1); -+ input_sync(dev); -+ } -+ else { -+ input_report_key(dev, keycode, 0); -+ input_sync(dev); -+ } -+ } -+ -+ jornada720_mcu_end(); -+ -+ return IRQ_HANDLED; -+} -+ -+static int __init jornada720_kbd_init(void) -+{ -+ int i; -+ printk("jorada720_kbd: Jornada 720 keyboard\n"); -+ -+ /*init_input_dev(&dev);*/ -+ dev = input_allocate_device(); -+ dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP); -+ dev->keybit[LONG(KEY_SUSPEND)] |= BIT(KEY_SUSPEND); -+ -+ for ( i=0 ; i<=128 ; i++ ) { -+ if (!(jornada720_normal_keymap[i])) { -+ } -+ else -+ set_bit(jornada720_normal_keymap[i], dev->keybit); -+ } -+ -+ dev->name = jornada720_kbd_name; -+ -+ if (request_irq(GPIO_JORNADA720_KEYBOARD_IRQ, jornada720_keyboard_interrupt, SA_INTERRUPT, "Jornada720 Keyboard", NULL)) -+ printk("Unable to grab Jornada 720 keyboard IRQ!\n"); -+ -+ set_irq_type(GPIO_JORNADA720_KEYBOARD_IRQ, IRQT_FALLING); -+ -+ input_register_device(dev); -+ -+ return 0; -+} -+ -+module_init(jornada720_kbd_init); |