diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2012-04-22 13:37:24 +0200 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-04-27 10:46:45 +0800 |
commit | b95ace54a23e2f8ebb032744cebb17c9f43bf651 (patch) | |
tree | 7c7053a33426848bd27edabc977b7d5cfd1b84a7 /include/linux/gpio-pxa.h | |
parent | 66f75a5d028beaf67c931435fdc3e7823125730c (diff) | |
download | kernel_goldelico_gta04-b95ace54a23e2f8ebb032744cebb17c9f43bf651.zip kernel_goldelico_gta04-b95ace54a23e2f8ebb032744cebb17c9f43bf651.tar.gz kernel_goldelico_gta04-b95ace54a23e2f8ebb032744cebb17c9f43bf651.tar.bz2 |
ARM: pxa: fix gpio wakeup setting
In 3.3, gpio wakeup setting was broken. The call
enable_irq_wake() didn't set up the PXA gpio registers
(PWER, ...) anymore.
Fix it at least for pxa27x. The driver doesn't seem to be
used in pxa25x (weird ...), and the fix doesn't extend to
pxa3xx and pxa95x (which don't have a gpio_set_wake()
available).
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'include/linux/gpio-pxa.h')
-rw-r--r-- | include/linux/gpio-pxa.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/gpio-pxa.h b/include/linux/gpio-pxa.h index 05071ee..d755b28 100644 --- a/include/linux/gpio-pxa.h +++ b/include/linux/gpio-pxa.h @@ -13,4 +13,8 @@ extern int pxa_last_gpio; extern int pxa_irq_to_gpio(int irq); +struct pxa_gpio_platform_data { + int (*gpio_set_wake)(unsigned int gpio, unsigned int on); +}; + #endif /* __GPIO_PXA_H */ |