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>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user