summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2008-09-11 01:28:51 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-13 20:07:44 +0100
commitc33de47bce74e0c890f9f830a7641371524edbc1 (patch)
treea2a558883cf75783fc3dba482646c40db3d12051 /arch
parent7bdb22c9d4b4f526b81770cd719d2f5dddf0373d (diff)
downloadlinux-c33de47bce74e0c890f9f830a7641371524edbc1.tar.gz
linux-c33de47bce74e0c890f9f830a7641371524edbc1.tar.bz2
linux-c33de47bce74e0c890f9f830a7641371524edbc1.zip
[ARM] 5247/1: tosa: SW_EAR_IN support
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Acked-by: Eric Miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-pxa/tosa.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/tosa.c b/arch/arm/mach-pxa/tosa.c
index 33da99fa1ccf..9f3ef9eb32e3 100644
--- a/arch/arm/mach-pxa/tosa.c
+++ b/arch/arm/mach-pxa/tosa.c
@@ -522,6 +522,14 @@ static struct gpio_keys_button tosa_gpio_keys[] = {
.wakeup = 1,
.active_low = 1,
},
+ {
+ .type = EV_SW,
+ .code = SW_HEADPHONE_INSERT,
+ .gpio = TOSA_GPIO_EAR_IN,
+ .desc = "HeadPhone insert",
+ .active_low = 1,
+ .debounce_interval = 300,
+ },
};
static struct gpio_keys_platform_data tosa_gpio_keys_platform_data = {