[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / beaglebone / 0025-beaglebone-add-enter-key-for-lcd7-cape.patch
1 From 18a371473e99ca637dafe68d9d77ebae4585b873 Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Mon, 19 Mar 2012 14:26:37 +0100
4 Subject: [PATCH 25/27] beaglebone: add enter key for lcd7 cape
6 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
7 ---
8 arch/arm/mach-omap2/board-am335xevm.c | 9 +++++++++
9 1 files changed, 9 insertions(+), 0 deletions(-)
11 diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
12 index 7a2b851..ed2ff18 100644
13 --- a/arch/arm/mach-omap2/board-am335xevm.c
14 +++ b/arch/arm/mach-omap2/board-am335xevm.c
15 @@ -986,6 +986,7 @@ static struct pinmux_config lcd7_keys_pin_mux[] = {
16 {"gpmc_a1.gpio1_17", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
17 {"gpmc_a3.gpio1_19", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
18 {"mcasp0_axr0.gpio3_16", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
19 + {"mcasp0_fsr.gpio3_19", OMAP_MUX_MODE7 | AM33XX_PIN_INPUT},
20 {NULL, 0},
21 };
23 @@ -1023,6 +1024,14 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
24 .type = EV_KEY,
25 .wakeup = 1,
26 },
27 + {
28 + .code = KEY_ENTER,
29 + .gpio = GPIO_TO_PIN(3, 19),
30 + .active_low = false,
31 + .desc = "enter",
32 + .type = EV_KEY,
33 + .wakeup = 1,
34 + },
35 };
37 static struct gpio_keys_platform_data beaglebone_lcd7_gpio_key_info = {
38 --
39 1.7.2.5