Lines Matching refs:pm_info
120 struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu_id); in set_cpu_wakeup_addr() local
122 if (pm_info->wkup_sar_addr) in set_cpu_wakeup_addr()
123 writel_relaxed(addr, pm_info->wkup_sar_addr); in set_cpu_wakeup_addr()
131 struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu_id); in scu_pwrst_prepare() local
148 if (pm_info->scu_sar_addr) in scu_pwrst_prepare()
149 writel_relaxed(scu_pwr_st, pm_info->scu_sar_addr); in scu_pwrst_prepare()
185 struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu_id); in l2x0_pwrst_prepare() local
187 if (pm_info->l2x0_sar_addr) in l2x0_pwrst_prepare()
188 writel_relaxed(save_state, pm_info->l2x0_sar_addr); in l2x0_pwrst_prepare()
228 struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu); in omap4_enter_lowpower() local
271 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_enter_lowpower()
272 pwrdm_set_logic_retst(pm_info->pwrdm, cpu_logic_state); in omap4_enter_lowpower()
296 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_enter_lowpower()
310 struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu); in omap4_hotplug_cpu() local
317 power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, in omap4_hotplug_cpu()
323 pwrdm_clear_all_prev_pwrst(pm_info->pwrdm); in omap4_hotplug_cpu()
324 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_hotplug_cpu()
335 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_hotplug_cpu()
360 struct omap4_cpu_pm_info *pm_info; in omap4_mpuss_init() local
368 pm_info = &per_cpu(omap4_pm_info, 0x0); in omap4_mpuss_init()
370 pm_info->scu_sar_addr = sar_base + SCU_OFFSET0; in omap4_mpuss_init()
372 pm_info->wkup_sar_addr = sar_base + in omap4_mpuss_init()
375 pm_info->wkup_sar_addr = sar_base + in omap4_mpuss_init()
377 pm_info->l2x0_sar_addr = sar_base + L2X0_SAVE_OFFSET0; in omap4_mpuss_init()
379 pm_info->pwrdm = pwrdm_lookup("cpu0_pwrdm"); in omap4_mpuss_init()
380 if (!pm_info->pwrdm) { in omap4_mpuss_init()
386 pwrdm_clear_all_prev_pwrst(pm_info->pwrdm); in omap4_mpuss_init()
390 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_mpuss_init()
392 pm_info = &per_cpu(omap4_pm_info, 0x1); in omap4_mpuss_init()
394 pm_info->scu_sar_addr = sar_base + SCU_OFFSET1; in omap4_mpuss_init()
396 pm_info->wkup_sar_addr = sar_base + in omap4_mpuss_init()
399 pm_info->wkup_sar_addr = sar_base + in omap4_mpuss_init()
401 pm_info->l2x0_sar_addr = sar_base + L2X0_SAVE_OFFSET1; in omap4_mpuss_init()
404 pm_info->pwrdm = pwrdm_lookup("cpu1_pwrdm"); in omap4_mpuss_init()
405 if (!pm_info->pwrdm) { in omap4_mpuss_init()
411 pwrdm_clear_all_prev_pwrst(pm_info->pwrdm); in omap4_mpuss_init()
415 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_mpuss_init()