diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2007-06-22 17:57:39 +0000 |
---|---|---|
committer | Philipp Zabel <philipp.zabel@gmail.com> | 2007-06-22 17:57:39 +0000 |
commit | b669962c250fb4a2a8c5badfe5b3717569b80abc (patch) | |
tree | b75f8720b17f1fe93c76dc19407dc86cd73ad555 /packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch | |
parent | a14b857a5eb21816991ca6ec50c9520f9bcc61dd (diff) | |
parent | 2f7f445a9c6463ce4a7cec1844911085b1536b1c (diff) |
merge of 'a9d59f7c5db704e36d7f7dbda87b750cabbbc775'
and 'fcf3721db5cf2d3c669e8d3d36cd3ca4df792f6f'
Diffstat (limited to 'packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch')
-rwxr-xr-x | packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch b/packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch new file mode 100755 index 0000000000..b93b1b14e4 --- /dev/null +++ b/packages/linux/linux-ezx-2.6.21/patches/a780-flip.patch @@ -0,0 +1,44 @@ +Index: linux-2.6.21/arch/arm/mach-pxa/ezx-a780.c +=================================================================== +--- linux-2.6.21.orig/arch/arm/mach-pxa/ezx-a780.c 2007-06-08 18:38:47.000000000 +0200 ++++ linux-2.6.21/arch/arm/mach-pxa/ezx-a780.c 2007-06-08 18:38:50.000000000 +0200 +@@ -17,6 +17,7 @@ + #include <linux/mmc/host.h> + #include <linux/irq.h> + #include <linux/input.h> ++#include <linux/gpio_keys.h> + + #include <asm/mach-types.h> + #include <asm/mach/arch.h> +@@ -214,8 +215,31 @@ + }, + }; + ++static struct gpio_keys_button a780flip_buttons[] = { ++ [0] = { ++ .keycode = KEY_SLEEP, ++ .gpio = GPIO_FLIP_PIN, ++ .desc = "A780 flip", ++ }, ++}; ++ ++static struct gpio_keys_platform_data a780flip_platform_data = { ++ .buttons = a780flip_buttons, ++ .nbuttons = 1, ++}; ++ ++static struct platform_device a780flip_device = { ++ .name = "gpio-keys", ++ .id = -1, ++ .dev = { ++ .platform_data = &a780flip_platform_data, ++ }, ++}; ++ ++ + static struct platform_device *devices[] __initdata = { + &pcap_ts_device, ++ &a780flip_device, + }; + + static void __init a780_init(void) |