diff mbox

[2/2] ARM: EXYNOS4: Enable Internal RTC's Wakeup from Suspend-to-Ram

Message ID 1309398750-25859-2-git-send-email-myungjoo.ham@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

MyungJoo Ham June 30, 2011, 1:52 a.m. UTC
Allow Exynos4 to setup WAKEUP-MASK bits based on IRQ numbers. Currently,
Exynos4's cpu.c supports RTC ALARM/TICK based IRQs only.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 arch/arm/mach-exynos4/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/mach-exynos4/cpu.c b/arch/arm/mach-exynos4/cpu.c
index 9babe44..fbb6f30 100644
--- a/arch/arm/mach-exynos4/cpu.c
+++ b/arch/arm/mach-exynos4/cpu.c
@@ -10,6 +10,7 @@ 
 
 #include <linux/sched.h>
 #include <linux/sysdev.h>
+#include <linux/irq.h>
 
 #include <asm/mach/map.h>
 #include <asm/mach/irq.h>
@@ -23,6 +24,7 @@ 
 #include <plat/sdhci.h>
 #include <plat/devs.h>
 #include <plat/fimc-core.h>
+#include <plat/pm.h>
 
 #include <mach/regs-irq.h>
 
@@ -170,6 +172,8 @@  void __init exynos4_init_irq(void)
 	 * uses GIC instead of VIC.
 	 */
 	s5p_init_irq(NULL, 0);
+
+	irq_get_chip(IRQ_RTC_ALARM)->irq_set_wake = s3c_irq_wake;
 }
 
 struct sysdev_class exynos4_sysclass = {