]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 5247/1: tosa: SW_EAR_IN support
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Thu, 11 Sep 2008 00:28:51 +0000 (01:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 13 Sep 2008 19:07:44 +0000 (20:07 +0100)
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>
arch/arm/mach-pxa/tosa.c

index 33da99fa1ccfe8b7c1036d9d50944364948604cc..9f3ef9eb32e37366d0ecf5d3b6e8d1abaada4fab 100644 (file)
@@ -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 = {