15 #include <linux/module.h>
16 #include <linux/list.h>
18 #include <linux/slab.h>
19 #include <asm/system_misc.h>
31 u32 saved_logic_state;
39 static int omap4_pm_suspend(
void)
72 pr_info(
"Powerdomain (%s) didn't enter target state %d\n",
80 pr_crit(
"Could not enter target state in pm_suspend\n");
82 pr_info(
"Successfully put all powerdomains to target state\n");
116 list_add(&pwrst->
node, &pwrst_list);
128 static void omap_default_idle(
void)
146 struct clockdomain *emif_clkdm, *mpuss_clkdm, *l3_1_clkdm, *l4wkup;
147 struct clockdomain *ducati_clkdm, *l3_2_clkdm, *l4_per_clkdm;
150 WARN(1,
"Power Management not supported on OMAP4430 ES1.0\n");
154 pr_err(
"Power Management for TI OMAP4.\n");
158 pr_err(
"Failed to setup powerdomains\n");
179 if ((!mpuss_clkdm) || (!emif_clkdm) || (!l3_1_clkdm) || (!l4wkup) ||
180 (!l3_2_clkdm) || (!ducati_clkdm) || (!l4_per_clkdm))
191 pr_err(
"Failed to add MPUSS -> L3/EMIF/L4PER, DUCATI -> L3 wakeup dependency\n");
195 ret = omap4_mpuss_init();
197 pr_err(
"Failed to initialise OMAP4 MPUSS\n");
203 #ifdef CONFIG_SUSPEND