ARM: pxa3xx: enable external wakeup pins
authorDaniel Mack <daniel@zonque.org>
Thu, 24 May 2018 20:40:46 +0000 (22:40 +0200)
committerRobert Jarzmik <robert.jarzmik@free.fr>
Fri, 25 May 2018 20:40:17 +0000 (22:40 +0200)
The PXA3xx SoCs feature dedicated pins for wakeup functionality. These pins
have no alternate functions, so let's always enable them as wakeup source on
DT enabled boards. The WAKEUP1 pin is only available on PXA320.

Signed-off-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
arch/arm/mach-pxa/pxa3xx.c

index 4b8a0df..8c64f93 100644 (file)
@@ -446,6 +446,10 @@ static int __init pxa3xx_init(void)
 
                pxa3xx_init_pm();
 
+               enable_irq_wake(IRQ_WAKEUP0);
+               if (cpu_is_pxa320())
+                       enable_irq_wake(IRQ_WAKEUP1);
+
                register_syscore_ops(&pxa_irq_syscore_ops);
                register_syscore_ops(&pxa3xx_mfp_syscore_ops);