summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0025-beaglebone-fix-direction-of-gpio-keys.patch
blob: 8fa656a323229febe8d53b48e0892d18ffb1ccb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
From e979180175348c0118f7e461fefa44dcc78e124a Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Mon, 26 Mar 2012 20:28:56 +0200
Subject: [PATCH 25/26] beaglebone: fix direction of gpio-keys

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 arch/arm/mach-omap2/board-am335xevm.c |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index ed2ea68..ed03e14 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -1007,7 +1007,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_LEFT,
 		.gpio                   = GPIO_TO_PIN(1, 16),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "left",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1015,7 +1015,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_RIGHT,
 		.gpio                   = GPIO_TO_PIN(1, 17),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "right",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1023,7 +1023,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_UP,
 		.gpio                   = GPIO_TO_PIN(1, 19),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "up",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1031,7 +1031,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_DOWN,
 		.gpio                   = GPIO_TO_PIN(3, 16),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "down",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1039,7 +1039,7 @@ static struct gpio_keys_button beaglebone_lcd7_gpio_keys[] = {
 	{
 		.code                   = KEY_ENTER,
 		.gpio                   = GPIO_TO_PIN(3, 19),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "enter",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1083,7 +1083,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_LEFT,
 		.gpio                   = GPIO_TO_PIN(1, 16),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "left",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1091,7 +1091,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_RIGHT,
 		.gpio                   = GPIO_TO_PIN(1, 17),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "right",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1099,7 +1099,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_UP,
 		.gpio                   = GPIO_TO_PIN(3, 19),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "up",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1107,7 +1107,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_DOWN,
 		.gpio                   = GPIO_TO_PIN(1, 28),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "down",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
@@ -1115,7 +1115,7 @@ static struct gpio_keys_button beaglebone_lcd3_gpio_keys[] = {
 	{
 		.code                   = KEY_ENTER,
 		.gpio                   = GPIO_TO_PIN(0, 7),
-		.active_low             = false,
+		.active_low             = true,
 		.desc                   = "down",
 		.type                   = EV_KEY,
 		.wakeup                 = 1,
-- 
1.7.9.5