summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/include/mach/mxc.h
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2012-12-11 15:32:19 +0800
committerEd Nash <enash@enash-desktop.(none)>2012-12-12 14:46:30 -0500
commitefe491be15ead3bbcf7e715337fdee7dfa41f699 (patch)
tree994f0d44a53f97a8cb35bece0fc0c25536e8fb80 /arch/arm/plat-mxc/include/mach/mxc.h
parent7974a95ddfa0ad24e6d3684f350b7bfd84feb816 (diff)
ENGR00216076-1: PM: Add Power Management driver for Vybrid
System could run into STOP and LPRun modes. When system was working in STOP mode, pressing SW1 button or inserting or removing SD card could wake up it. Signed-off-by: Alison Wang <b18965@freescale.com>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/mxc.h')
-rwxr-xr-xarch/arm/plat-mxc/include/mach/mxc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/mxc.h b/arch/arm/plat-mxc/include/mach/mxc.h
index afcf1255150b..b291d9015025 100755
--- a/arch/arm/plat-mxc/include/mach/mxc.h
+++ b/arch/arm/plat-mxc/include/mach/mxc.h
@@ -257,6 +257,15 @@ struct cpu_op {
u32 cpu_podf;
};
+#ifdef CONFIG_SOC_MVFA5
+enum mvf_cpu_pwr_mode {
+ RUN_MODE,
+ LOW_POWER_RUN,
+ WAIT_MODE,
+ STOP_MODE,
+ LOW_POWER_STOP,
+};
+#else
enum mxc_cpu_pwr_mode {
WAIT_CLOCKED, /* wfi only */
WAIT_UNCLOCKED, /* WAIT */
@@ -265,10 +274,15 @@ enum mxc_cpu_pwr_mode {
STOP_POWER_OFF, /* STOP + SRPG */
ARM_POWER_OFF, /* STOP + SRPG + ARM power off */
};
+#endif
int tzic_enable_wake(int is_idle);
+#ifdef CONFIG_SOC_MVFA5
+extern void mvf_cpu_lp_set(enum mvf_cpu_pwr_mode mode);
+#else
extern void mxc_cpu_lp_set(enum mxc_cpu_pwr_mode mode);
+#endif
extern int tzic_enable_wake(int is_idle);
#endif