plat-nomadik: make GPIO interrupts work with cpuidle ApSleep
authorRabin Vincent <rabin.vincent@stericsson.com>
Thu, 10 Feb 2011 06:15:58 +0000 (11:45 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Mar 2011 13:05:17 +0000 (14:05 +0100)
commitb9df468d8630c583e3597e24ad8cc4c0318790c1
tree2abfac8c7aa590a874eb49d6dd83036847a269f2
parent96cb164bdec6f91eadf09a858c4820701f791b37
plat-nomadik: make GPIO interrupts work with cpuidle ApSleep

Enable wakeups by default for any GPIO interrupts and in the suspend/resume
path narrow this down to only the the real wakeup interrupts. This approach is
based on the assumption that cpuidle ApSleep will be entered more often than
system suspend.

Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
[Fixup for genirq changes to struct irq_data on 2.6.38]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/plat-nomadik/gpio.c
arch/arm/plat-nomadik/include/plat/gpio.h