Skip to content

Commit

Permalink
ARM: pxa3xx: enable external wakeup pins
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Mack authored and Robert Jarzmik committed May 25, 2018
1 parent 5716c20 commit c1c14f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-pxa/pxa3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c1c14f8

Please sign in to comment.