diff options
author | Inderpal Singh <inderpal.singh@linaro.org> | 2011-11-22 12:13:07 +0530 |
---|---|---|
committer | Tushar Behera <tushar.behera@linaro.org> | 2012-06-20 11:15:35 +0530 |
commit | 20ee58030b86f917caf2ef45798726ee99f41bc9 (patch) | |
tree | d831c4a0c19d2ade3fe78625076e83347aec1778 | |
parent | 13e8e0bed4bd798fac0b03b27f807d462b3fef9a (diff) |
ARM: EXYNOS: Enable RTC as wake up source
Enable RTC as wake up source.
Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
[tushar.behera@linaro.org: Merged the changes to common.c]
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
-rw-r--r-- | arch/arm/mach-exynos/common.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 742edd3bbec3..fc4382b9f870 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -53,6 +53,12 @@ #define L2_AUX_VAL 0x7C470001 #define L2_AUX_MASK 0xC200ffff +#ifdef CONFIG_PM +extern int s3c_irq_wake(struct irq_data *data, unsigned int state); +#else +#define s3c_irq_wake NULL +#endif + static const char name_exynos4210[] = "EXYNOS4210"; static const char name_exynos4212[] = "EXYNOS4212"; static const char name_exynos4412[] = "EXYNOS4412"; @@ -628,6 +634,9 @@ void __init exynos4_init_irq(void) * uses GIC instead of VIC. */ s5p_init_irq(NULL, 0); +#ifdef CONFIG_PM + irq_get_chip(IRQ_RTC_ALARM)->irq_set_wake = s3c_irq_wake; +#endif } void __init exynos5_init_irq(void) |