diff options
author | Chao Xie <chao.xie@marvell.com> | 2012-05-07 07:22:23 +0400 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-05-07 07:35:00 +0400 |
commit | 87046f4f3194ac0a795a10f3368ac73c04c633e3 (patch) | |
tree | 142681e56baadcb7d6d2269c051d7ee8dcc4311c /arch/arm/mach-mmp/irq.c | |
parent | 5e5661a872600cb4b12d5292160608fb232efdcd (diff) | |
download | linux-87046f4f3194ac0a795a10f3368ac73c04c633e3.tar.xz |
ARM: mmp: add PM support for mmp2
MMP2 can enter system sleep level during suspend.
It can be waken up by PMIC interrupt, RTC/ALARM.
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Diffstat (limited to 'arch/arm/mach-mmp/irq.c')
-rw-r--r-- | arch/arm/mach-mmp/irq.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mmp/irq.c b/arch/arm/mach-mmp/irq.c index 3705470c9f1e..04935f156239 100644 --- a/arch/arm/mach-mmp/irq.c +++ b/arch/arm/mach-mmp/irq.c @@ -23,6 +23,10 @@ #include <mach/irqs.h> +#ifdef CONFIG_CPU_MMP2 +#include <mach/pm-mmp2.h> +#endif + #include "common.h" #define MAX_ICU_NR 16 @@ -305,6 +309,9 @@ void __init mmp2_init_icu(void) set_irq_flags(irq, IRQF_VALID); } irq_set_default_host(icu_data[0].domain); +#ifdef CONFIG_CPU_MMP2 + icu_irq_chip.irq_set_wake = mmp2_set_wake; +#endif } #ifdef CONFIG_OF |