/arch/arm/mach-omap2/ |
D | powerdomain.c | 66 struct powerdomain *pwrdm, *temp_pwrdm; in _pwrdm_lookup() local 68 pwrdm = NULL; in _pwrdm_lookup() 72 pwrdm = temp_pwrdm; in _pwrdm_lookup() 77 return pwrdm; in _pwrdm_lookup() 88 static int _pwrdm_register(struct powerdomain *pwrdm) in _pwrdm_register() argument 93 if (!pwrdm || !pwrdm->name) in _pwrdm_register() 97 pwrdm->prcm_partition == OMAP4430_INVALID_PRCM_PARTITION) { in _pwrdm_register() 99 pwrdm->name); in _pwrdm_register() 103 if (_pwrdm_lookup(pwrdm->name)) in _pwrdm_register() 110 voltdm = voltdm_lookup(pwrdm->voltdm.name); in _pwrdm_register() [all …]
|
D | powerdomain.h | 182 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); 183 int (*pwrdm_read_next_pwrst)(struct powerdomain *pwrdm); 184 int (*pwrdm_read_pwrst)(struct powerdomain *pwrdm); 185 int (*pwrdm_read_prev_pwrst)(struct powerdomain *pwrdm); 186 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); 187 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 188 int (*pwrdm_set_mem_retst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 189 int (*pwrdm_read_logic_pwrst)(struct powerdomain *pwrdm); 190 int (*pwrdm_read_prev_logic_pwrst)(struct powerdomain *pwrdm); 191 int (*pwrdm_read_logic_retst)(struct powerdomain *pwrdm); [all …]
|
D | prm33xx.c | 149 static int am33xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_next_pwrst() argument 153 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_next_pwrst() 157 static int am33xx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_next_pwrst() argument 161 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_read_next_pwrst() 168 static int am33xx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_pwrst() argument 172 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_read_pwrst() 179 static int am33xx_pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm) in am33xx_pwrdm_set_lowpwrstchange() argument 183 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_lowpwrstchange() 187 static int am33xx_pwrdm_clear_all_prev_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_clear_all_prev_pwrst() argument 191 pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_clear_all_prev_pwrst() [all …]
|
D | pm-debug.c | 62 void pm_dbg_update_time(struct powerdomain *pwrdm, int prev) in pm_dbg_update_time() argument 72 pwrdm->state_timer[prev] += t - pwrdm->timer; in pm_dbg_update_time() 74 pwrdm->timer = t; in pm_dbg_update_time() 86 seq_printf(s, "%s->%s (%d)\n", clkdm->name, clkdm->pwrdm.ptr->name, in clkdm_dbg_show_counter() 92 static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user) in pwrdm_dbg_show_counter() argument 97 if (strcmp(pwrdm->name, "emu_pwrdm") == 0 || in pwrdm_dbg_show_counter() 98 strcmp(pwrdm->name, "wkup_pwrdm") == 0 || in pwrdm_dbg_show_counter() 99 strncmp(pwrdm->name, "dpll", 4) == 0) in pwrdm_dbg_show_counter() 102 if (pwrdm->state != pwrdm_read_pwrst(pwrdm)) in pwrdm_dbg_show_counter() 104 pwrdm->name, pwrdm->state, pwrdm_read_pwrst(pwrdm)); in pwrdm_dbg_show_counter() [all …]
|
D | clockdomains33xx_data.c | 27 .pwrdm = { .name = "per_pwrdm" }, 35 .pwrdm = { .name = "per_pwrdm" }, 43 .pwrdm = { .name = "per_pwrdm" }, 51 .pwrdm = { .name = "per_pwrdm" }, 59 .pwrdm = { .name = "per_pwrdm" }, 67 .pwrdm = { .name = "per_pwrdm" }, 75 .pwrdm = { .name = "per_pwrdm" }, 83 .pwrdm = { .name = "per_pwrdm" }, 91 .pwrdm = { .name = "per_pwrdm" }, 99 .pwrdm = { .name = "per_pwrdm" }, [all …]
|
D | prm44xx.c | 423 static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_next_pwrst() argument 427 pwrdm->prcm_partition, in omap4_pwrdm_set_next_pwrst() 428 pwrdm->prcm_offs, OMAP4_PM_PWSTCTRL); in omap4_pwrdm_set_next_pwrst() 432 static int omap4_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in omap4_pwrdm_read_next_pwrst() argument 436 v = omap4_prminst_read_inst_reg(pwrdm->prcm_partition, pwrdm->prcm_offs, in omap4_pwrdm_read_next_pwrst() 444 static int omap4_pwrdm_read_pwrst(struct powerdomain *pwrdm) in omap4_pwrdm_read_pwrst() argument 448 v = omap4_prminst_read_inst_reg(pwrdm->prcm_partition, pwrdm->prcm_offs, in omap4_pwrdm_read_pwrst() 456 static int omap4_pwrdm_read_prev_pwrst(struct powerdomain *pwrdm) in omap4_pwrdm_read_prev_pwrst() argument 460 v = omap4_prminst_read_inst_reg(pwrdm->prcm_partition, pwrdm->prcm_offs, in omap4_pwrdm_read_prev_pwrst() 468 static int omap4_pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm) in omap4_pwrdm_set_lowpwrstchange() argument [all …]
|
D | clockdomains43xx_data.c | 20 .pwrdm = { .name = "cefuse_pwrdm" }, 29 .pwrdm = { .name = "mpu_pwrdm" }, 38 .pwrdm = { .name = "per_pwrdm" }, 47 .pwrdm = { .name = "tamper_pwrdm" }, 56 .pwrdm = { .name = "rtc_pwrdm" }, 65 .pwrdm = { .name = "per_pwrdm" }, 74 .pwrdm = { .name = "per_pwrdm" }, 83 .pwrdm = { .name = "wkup_pwrdm" }, 92 .pwrdm = { .name = "per_pwrdm" }, 101 .pwrdm = { .name = "wkup_pwrdm" }, [all …]
|
D | clockdomains81xx_data.c | 40 .pwrdm = { .name = "alwon_pwrdm" }, 48 .pwrdm = { .name = "alwon_pwrdm" }, 56 .pwrdm = { .name = "alwon_pwrdm" }, 64 .pwrdm = { .name = "alwon_pwrdm" }, 72 .pwrdm = { .name = "alwon_pwrdm" }, 80 .pwrdm = { .name = "alwon_pwrdm" }, 90 .pwrdm = { .name = "alwon_pwrdm" }, 98 .pwrdm = { .name = "active_pwrdm" }, 106 .pwrdm = { .name = "ivahd0_pwrdm" }, 114 .pwrdm = { .name = "ivahd1_pwrdm" }, [all …]
|
D | pm44xx.c | 30 struct powerdomain *pwrdm; member 63 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 64 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend() 69 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend() 70 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->next_logic_state); in omap4_pm_suspend() 86 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 89 pwrst->pwrdm->name, pwrst->next_state); in omap4_pm_suspend() 92 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap4_pm_suspend() 93 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->saved_logic_state); in omap4_pm_suspend() 116 static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused) in pwrdms_setup() argument [all …]
|
D | prm2xxx_3xxx.c | 114 int omap2_pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, in omap2_pwrdm_set_mem_onst() argument 121 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 127 int omap2_pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, in omap2_pwrdm_set_mem_retst() argument 134 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 140 int omap2_pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank) in omap2_pwrdm_read_mem_pwrst() argument 146 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, OMAP2_PM_PWSTST, in omap2_pwrdm_read_mem_pwrst() 150 int omap2_pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank) in omap2_pwrdm_read_mem_retst() argument 156 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2_pwrdm_read_mem_retst() 160 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument 165 omap2_prm_rmw_mod_reg_bits(OMAP_LOGICRETSTATE_MASK, v, pwrdm->prcm_offs, in omap2_pwrdm_set_logic_retst() [all …]
|
D | clockdomains3xxx_data.c | 223 .pwrdm = { .name = "mpu_pwrdm" }, 232 .pwrdm = { .name = "mpu_pwrdm" }, 241 .pwrdm = { .name = "neon_pwrdm" }, 249 .pwrdm = { .name = "iva2_pwrdm" }, 258 .pwrdm = { .name = "gfx_pwrdm" }, 267 .pwrdm = { .name = "sgx_pwrdm" }, 276 .pwrdm = { .name = "sgx_pwrdm" }, 292 .pwrdm = { .name = "core_pwrdm" }, 304 .pwrdm = { .name = "core_pwrdm" }, 317 .pwrdm = { .name = "core_pwrdm" }, [all …]
|
D | clockdomains54xx_data.c | 169 .pwrdm = { .name = "core_pwrdm" }, 181 .pwrdm = { .name = "iva_pwrdm" }, 193 .pwrdm = { .name = "core_pwrdm" }, 204 .pwrdm = { .name = "core_pwrdm" }, 214 .pwrdm = { .name = "core_pwrdm" }, 224 .pwrdm = { .name = "custefuse_pwrdm" }, 233 .pwrdm = { .name = "core_pwrdm" }, 245 .pwrdm = { .name = "core_pwrdm" }, 255 .pwrdm = { .name = "abe_pwrdm" }, 265 .pwrdm = { .name = "dss_pwrdm" }, [all …]
|
D | clockdomains44xx_data.c | 158 .pwrdm = { .name = "cefuse_pwrdm" }, 167 .pwrdm = { .name = "core_pwrdm" }, 177 .pwrdm = { .name = "tesla_pwrdm" }, 189 .pwrdm = { .name = "gfx_pwrdm" }, 201 .pwrdm = { .name = "ivahd_pwrdm" }, 213 .pwrdm = { .name = "l4per_pwrdm" }, 225 .pwrdm = { .name = "l4per_pwrdm" }, 235 .pwrdm = { .name = "abe_pwrdm" }, 245 .pwrdm = { .name = "core_pwrdm" }, 253 .pwrdm = { .name = "l3init_pwrdm" }, [all …]
|
D | clockdomain.c | 74 struct powerdomain *pwrdm; in _clkdm_register() local 79 pwrdm = pwrdm_lookup(clkdm->pwrdm.name); in _clkdm_register() 80 if (!pwrdm) { in _clkdm_register() 82 clkdm->name, clkdm->pwrdm.name); in _clkdm_register() 85 clkdm->pwrdm.ptr = pwrdm; in _clkdm_register() 93 pwrdm_add_clkdm(pwrdm, clkdm); in _clkdm_register() 554 return clkdm->pwrdm.ptr; in clkdm_get_pwrdm() 584 pwrdm_lock(cd->clkdm->pwrdm.ptr); in clkdm_add_wkdep() 586 pwrdm_unlock(cd->clkdm->pwrdm.ptr); in clkdm_add_wkdep() 613 pwrdm_lock(cd->clkdm->pwrdm.ptr); in clkdm_del_wkdep() [all …]
|
D | clockdomains7xx_data.c | 317 .pwrdm = { .name = "l4per_pwrdm" }, 327 .pwrdm = { .name = "l4per_pwrdm" }, 339 .pwrdm = { .name = "cpu0_pwrdm" }, 348 .pwrdm = { .name = "iva_pwrdm" }, 360 .pwrdm = { .name = "coreaon_pwrdm" }, 369 .pwrdm = { .name = "ipu_pwrdm" }, 381 .pwrdm = { .name = "core_pwrdm" }, 393 .pwrdm = { .name = "l3init_pwrdm" }, 405 .pwrdm = { .name = "l4per_pwrdm" }, 417 .pwrdm = { .name = "core_pwrdm" }, [all …]
|
D | pm34xx.c | 60 struct powerdomain *pwrdm; member 319 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 322 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend() 324 if (pwrdm_clear_all_prev_pwrst(pwrst->pwrdm)) in omap3_pm_suspend() 335 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 338 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend() 341 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap3_pm_suspend() 373 pwrst->pwrdm == core_pwrdm && in omap3_pm_off_mode_enable() 381 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap3_pm_off_mode_enable() 385 int omap3_pm_get_suspend_state(struct powerdomain *pwrdm) in omap3_pm_get_suspend_state() argument [all …]
|
D | omap-mpuss-lowpower.c | 68 struct powerdomain *pwrdm; member 272 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_enter_lowpower() 273 pwrdm_set_logic_retst(pm_info->pwrdm, cpu_logic_state); in omap4_enter_lowpower() 297 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_enter_lowpower() 318 power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, in omap4_hotplug_cpu() 324 pwrdm_clear_all_prev_pwrst(pm_info->pwrdm); in omap4_hotplug_cpu() 325 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_hotplug_cpu() 336 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_hotplug_cpu() 379 pm_info->pwrdm = pwrdm_lookup("cpu0_pwrdm"); in omap4_mpuss_init() 380 if (!pm_info->pwrdm) { in omap4_mpuss_init() [all …]
|
D | clockdomains2420_data.c | 80 .pwrdm = { .name = "mpu_pwrdm" }, 88 .pwrdm = { .name = "dsp_pwrdm" }, 97 .pwrdm = { .name = "dsp_pwrdm" }, 104 .pwrdm = { .name = "gfx_pwrdm" }, 112 .pwrdm = { .name = "core_pwrdm" }, 120 .pwrdm = { .name = "core_pwrdm" }, 128 .pwrdm = { .name = "core_pwrdm" },
|
D | clockdomains2430_data.c | 91 .pwrdm = { .name = "mpu_pwrdm" }, 100 .pwrdm = { .name = "mdm_pwrdm" }, 109 .pwrdm = { .name = "dsp_pwrdm" }, 118 .pwrdm = { .name = "gfx_pwrdm" }, 131 .pwrdm = { .name = "core_pwrdm" }, 145 .pwrdm = { .name = "core_pwrdm" }, 154 .pwrdm = { .name = "core_pwrdm" },
|
D | prm3xxx.c | 536 static int omap3_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap3_pwrdm_set_next_pwrst() argument 540 pwrdm->prcm_offs, OMAP2_PM_PWSTCTRL); in omap3_pwrdm_set_next_pwrst() 544 static int omap3_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in omap3_pwrdm_read_next_pwrst() argument 546 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_next_pwrst() 551 static int omap3_pwrdm_read_pwrst(struct powerdomain *pwrdm) in omap3_pwrdm_read_pwrst() argument 553 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_pwrst() 559 static int omap3_pwrdm_read_prev_pwrst(struct powerdomain *pwrdm) in omap3_pwrdm_read_prev_pwrst() argument 561 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_prev_pwrst() 566 static int omap3_pwrdm_read_logic_pwrst(struct powerdomain *pwrdm) in omap3_pwrdm_read_logic_pwrst() argument 568 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_logic_pwrst() [all …]
|
D | prm2xxx_3xxx.h | 110 extern int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); 111 extern int omap2_pwrdm_read_next_pwrst(struct powerdomain *pwrdm); 112 extern int omap2_pwrdm_read_pwrst(struct powerdomain *pwrdm); 113 extern int omap2_pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, 115 extern int omap2_pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, 117 extern int omap2_pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank); 118 extern int omap2_pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank); 119 extern int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst); 120 extern int omap2_pwrdm_wait_transition(struct powerdomain *pwrdm);
|
D | prm2xxx.c | 139 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_sleep() 147 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_wakeup() 152 static int omap2xxx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap2xxx_pwrdm_set_next_pwrst() argument 172 pwrdm->prcm_offs, OMAP2_PM_PWSTCTRL); in omap2xxx_pwrdm_set_next_pwrst() 176 static int omap2xxx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in omap2xxx_pwrdm_read_next_pwrst() argument 180 omap2xxx_pwrst = omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2xxx_pwrdm_read_next_pwrst() 187 static int omap2xxx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in omap2xxx_pwrdm_read_pwrst() argument 191 omap2xxx_pwrst = omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2xxx_pwrdm_read_pwrst()
|
D | powerdomains3xxx_data.c | 514 static int ti81xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in ti81xx_pwrdm_set_next_pwrst() argument 518 pwrdm->prcm_offs, TI81XX_PM_PWSTCTRL); in ti81xx_pwrdm_set_next_pwrst() 522 static int ti81xx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in ti81xx_pwrdm_read_next_pwrst() argument 524 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in ti81xx_pwrdm_read_next_pwrst() 529 static int ti81xx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in ti81xx_pwrdm_read_pwrst() argument 531 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in ti81xx_pwrdm_read_pwrst() 532 (pwrdm->prcm_offs == TI814X_PRM_GFX_MOD) ? TI81XX_RM_RSTCTRL : in ti81xx_pwrdm_read_pwrst() 537 static int ti81xx_pwrdm_read_logic_pwrst(struct powerdomain *pwrdm) in ti81xx_pwrdm_read_logic_pwrst() argument 539 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in ti81xx_pwrdm_read_logic_pwrst() 540 (pwrdm->prcm_offs == TI814X_PRM_GFX_MOD) ? TI81XX_RM_RSTCTRL : in ti81xx_pwrdm_read_logic_pwrst() [all …]
|
D | pm.h | 52 extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); 53 extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state); 62 extern void pm_dbg_update_time(struct powerdomain *pwrdm, int prev); 64 #define pm_dbg_update_time(pwrdm, prev) do {} while (0); argument
|
D | pm24xx.c | 193 struct powerdomain *pwrdm; in prcm_setup_regs() local 216 pwrdm = clkdm_get_pwrdm(dsp_clkdm); in prcm_setup_regs() 217 pwrdm_set_next_pwrst(pwrdm, PWRDM_POWER_OFF); in prcm_setup_regs() 219 pwrdm = clkdm_get_pwrdm(gfx_clkdm); in prcm_setup_regs() 220 pwrdm_set_next_pwrst(pwrdm, PWRDM_POWER_OFF); in prcm_setup_regs()
|