Skip to contentSkip to conversation

ARM: tegra: irq: add wake up handling

PATCH Superseded Joseph Lo 1 participant 1 message Mar 4, 2013

Subsystems (3)

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Joseph Lo

author
#0 lore raw

PATCH 2/10 ARM: tegra: irq: add wake up handling

Add the wake up handling for legacy irq controller, and using IRQCHIP_MASK_ON_SUSPEND for wake irq handling.

Based on the work by:
Varun Wadekar <[email protected]>

---
 arch/arm/mach-tegra/common.c |  2 +
 arch/arm/mach-tegra/irq.c    | 95 +++++++++++++++++++++++++++++++++++++++++++-
 arch/arm/mach-tegra/irq.h    |  6 +++
 3 files changed, 102 insertions(+), 1 deletion(-)
arch/arm/mach-tegra/common.c +2 -0
index f0315c9..bc7268a 100644
@@ -33,6 +33,7 @@
 #include "common.h"
 #include "fuse.h"
 #include "iomap.h"
+#include "irq.h"
 #include "pmc.h"
 #include "apbio.h"
 #include "sleep.h"
@@ -63,6 +64,7 @@ void __init tegra_dt_init_irq(void)
 	tegra_clocks_init();
 	tegra_init_irq();
 	irqchip_init();
+	tegra_legacy_irq_syscore_init();
 }
 #endif
 
arch/arm/mach-tegra/irq.c +94 -1

131 lines not on this page · raw message

arch/arm/mach-tegra/irq.h +6 -0
index 5142649..bc05ce5 100644
@@ -19,4 +19,10 @@
 
 bool tegra_pending_sgi(void);
 
+#ifdef CONFIG_PM_SLEEP
+int tegra_legacy_irq_syscore_init(void);
+#else
+static inline int tegra_legacy_irq_syscore_init(void) { return 0; }
+#endif
+
 #endif
Signature · 1 line
1.8.1.1