summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/beaglebone/0025-beaglebone-fix-direction-of-gpio-keys.patch
blob: 39f255b7bfe62ac911f7221479f79b09e9d5a4e8 (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 9ae51575e2d99c806ee5caabb4a11a380e5e9b7b 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/56] beaglebone: fix direction of gpio-keys

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

diff --git a/arch/arm/mach-omap2/board-am335xevm.c b/arch/arm/mach-omap2/board-am335xevm.c
index 5266f78..36b0c85 100644
--- a/arch/arm/mach-omap2/board-am335xevm.c
+++ b/arch/arm/mach-omap2/board-am335xevm.c
@@ -1009,7 +1009,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,
@@ -1017,7 +1017,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,
@@ -1025,7 +1025,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,
@@ -1033,7 +1033,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,
@@ -1041,7 +1041,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,
@@ -1085,7 +1085,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,
@@ -1093,7 +1093,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,
@@ -1101,7 +1101,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,
@@ -1109,7 +1109,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,
@@ -1117,7 +1117,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.7.6