aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91/board-sam9263ek.c
diff options
context:
space:
mode:
authorAndrew Victor <linux@maxim.org.za>2008-09-21 16:34:06 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-21 18:01:00 -0400
commit77789ad8b1d58eb9ba5e14860f439d024c5e4120 (patch)
treef3fe2afc6ea36ad1eba321f6119ce7dd8fbf2043 /arch/arm/mach-at91/board-sam9263ek.c
parent2e9f12d6dd061899385bcd910ecb8777c6d05a72 (diff)
[ARM] 5263/2: [AT91] GPIO buttons as wakeup sources
Allow the various GPIO-connected buttons to be used as wakeup sources. Also enable the internal GPIO pullup. Signed-off-by: Sedji Gaouaou <sedji.gaouaou@atmel.com> Signed-off-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/board-sam9263ek.c')
-rw-r--r--arch/arm/mach-at91/board-sam9263ek.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/board-sam9263ek.c b/arch/arm/mach-at91/board-sam9263ek.c
index 2924b6884fe2..8354015c6a23 100644
--- a/arch/arm/mach-at91/board-sam9263ek.c
+++ b/arch/arm/mach-at91/board-sam9263ek.c
@@ -297,7 +297,7 @@ static struct gpio_keys_button ek_buttons[] = {
297 .active_low = 1, 297 .active_low = 1,
298 .desc = "right_click", 298 .desc = "right_click",
299 .wakeup = 1, 299 .wakeup = 1,
300 }, 300 }
301}; 301};
302 302
303static struct gpio_keys_platform_data ek_button_data = { 303static struct gpio_keys_platform_data ek_button_data = {
@@ -316,9 +316,9 @@ static struct platform_device ek_button_device = {
316 316
317static void __init ek_add_device_buttons(void) 317static void __init ek_add_device_buttons(void)
318{ 318{
319 at91_set_GPIO_periph(AT91_PIN_PC5, 0); /* left button */ 319 at91_set_GPIO_periph(AT91_PIN_PC5, 1); /* left button */
320 at91_set_deglitch(AT91_PIN_PC5, 1); 320 at91_set_deglitch(AT91_PIN_PC5, 1);
321 at91_set_GPIO_periph(AT91_PIN_PC4, 0); /* right button */ 321 at91_set_GPIO_periph(AT91_PIN_PC4, 1); /* right button */
322 at91_set_deglitch(AT91_PIN_PC4, 1); 322 at91_set_deglitch(AT91_PIN_PC4, 1);
323 323
324 platform_device_register(&ek_button_device); 324 platform_device_register(&ek_button_device);