aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-mxc/include/mach/common.h
diff options
context:
space:
mode:
authorShawn Guo <shawn.guo@linaro.org>2011-09-28 05:16:06 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2011-10-04 04:55:06 -0400
commit41e7daf27a321848adcfcea9764ac8665133f3ea (patch)
tree9bc9f65b5a0b1a5b1e13ec31e2c919ca307eb559 /arch/arm/plat-mxc/include/mach/common.h
parentddd5f51bf661f49fb5f2be371ff1cf9cfe5fa98b (diff)
arm/imx: remove cpu_is_xxx() from arch_idle()
This patch adds an idle hook imx_idle to be called in arch_idle(). Any soc that needs a customized idle implementation other than cpu_do_idle() can set up this hook in soc specific call. Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/include/mach/common.h')
-rw-r--r--arch/arm/plat-mxc/include/mach/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/include/mach/common.h b/arch/arm/plat-mxc/include/mach/common.h
index 4e3d97890d69..afaa96733c9b 100644
--- a/arch/arm/plat-mxc/include/mach/common.h
+++ b/arch/arm/plat-mxc/include/mach/common.h
@@ -72,4 +72,15 @@ extern void mxc_arch_reset_init(void __iomem *);
72extern void mx51_efikamx_reset(void); 72extern void mx51_efikamx_reset(void);
73extern int mx53_revision(void); 73extern int mx53_revision(void);
74extern int mx53_display_revision(void); 74extern int mx53_display_revision(void);
75
76enum mxc_cpu_pwr_mode {
77 WAIT_CLOCKED, /* wfi only */
78 WAIT_UNCLOCKED, /* WAIT */
79 WAIT_UNCLOCKED_POWER_OFF, /* WAIT + SRPG */
80 STOP_POWER_ON, /* just STOP */
81 STOP_POWER_OFF, /* STOP + SRPG */
82};
83
84extern void mx5_cpu_lp_set(enum mxc_cpu_pwr_mode mode);
85extern void (*imx_idle)(void);
75#endif 86#endif