15 #include <linux/export.h>
16 #include <asm/cacheflush.h>
17 #include <asm/system_misc.h>
18 #include <asm/tlbflush.h>
19 #include <mach/common.h>
20 #include <mach/cpuidle.h>
21 #include <mach/hardware.h>
32 #define IMX5_DEFAULT_CPU_IDLE_STATE WAIT_UNCLOCKED_POWER_OFF
40 u32 plat_lpc, arm_srpgcr, ccm_clpcr;
135 .valid = mx5_pm_valid,
136 .enter = mx5_suspend_enter,
139 static inline int imx5_cpu_do_idle(
void)
149 static void imx5_pm_idle(
void)
159 ret = imx5_cpu_do_idle();
167 .name =
"imx5_cpuidle",
169 .en_core_tk_irqen = 1,
171 .enter = imx5_cpuidle_enter,
173 .target_residency = 1,
176 .desc =
"CPU state retained,powered off",
181 static int __init imx5_pm_common_init(
void)
186 if (IS_ERR(gpc_dvfs_clk))
187 return PTR_ERR(gpc_dvfs_clk);
189 ret = clk_prepare_enable(gpc_dvfs_clk);
204 int ret = imx5_pm_common_init();
211 imx5_pm_common_init();