Commit 3445513c authored by Inderpal Singh's avatar Inderpal Singh Committed by Kukjin Kim

ARM: EXYNOS: Add support for rtc wakeup

Set the gic arch extension callback to support rtc wakeup.
Signed-off-by: default avatarInderpal Singh <inderpal.singh@samsung.com>
Signed-off-by: default avatarAbhilash Kesavan <a.kesavan@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 756e46db
...@@ -647,6 +647,8 @@ void __init exynos5_init_irq(void) ...@@ -647,6 +647,8 @@ void __init exynos5_init_irq(void)
* uses GIC instead of VIC. * uses GIC instead of VIC.
*/ */
s5p_init_irq(NULL, 0); s5p_init_irq(NULL, 0);
gic_arch_extn.irq_set_wake = s3c_irq_wake;
} }
struct bus_type exynos_subsys = { struct bus_type exynos_subsys = {
......
...@@ -107,10 +107,12 @@ extern void s3c_pm_do_restore(struct sleep_save *ptr, int count); ...@@ -107,10 +107,12 @@ extern void s3c_pm_do_restore(struct sleep_save *ptr, int count);
extern void s3c_pm_do_restore_core(struct sleep_save *ptr, int count); extern void s3c_pm_do_restore_core(struct sleep_save *ptr, int count);
#ifdef CONFIG_PM #ifdef CONFIG_PM
extern int s3c_irq_wake(struct irq_data *data, unsigned int state);
extern int s3c_irqext_wake(struct irq_data *data, unsigned int state); extern int s3c_irqext_wake(struct irq_data *data, unsigned int state);
extern int s3c24xx_irq_suspend(void); extern int s3c24xx_irq_suspend(void);
extern void s3c24xx_irq_resume(void); extern void s3c24xx_irq_resume(void);
#else #else
#define s3c_irq_wake NULL
#define s3c_irqext_wake NULL #define s3c_irqext_wake NULL
#define s3c24xx_irq_suspend NULL #define s3c24xx_irq_suspend NULL
#define s3c24xx_irq_resume NULL #define s3c24xx_irq_resume NULL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment