/linux-6.1.9/arch/arm/mach-omap2/ |
D | powerdomain.c | 67 struct powerdomain *pwrdm, *temp_pwrdm; in _pwrdm_lookup() local 69 pwrdm = NULL; in _pwrdm_lookup() 73 pwrdm = temp_pwrdm; in _pwrdm_lookup() 78 return pwrdm; in _pwrdm_lookup() 89 static int _pwrdm_register(struct powerdomain *pwrdm) in _pwrdm_register() argument 94 if (!pwrdm || !pwrdm->name) in _pwrdm_register() 98 pwrdm->prcm_partition == OMAP4430_INVALID_PRCM_PARTITION) { in _pwrdm_register() 100 pwrdm->name); in _pwrdm_register() 104 if (_pwrdm_lookup(pwrdm->name)) in _pwrdm_register() 111 voltdm = voltdm_lookup(pwrdm->voltdm.name); in _pwrdm_register() [all …]
|
D | powerdomain.h | 180 int (*pwrdm_set_next_pwrst)(struct powerdomain *pwrdm, u8 pwrst); 181 int (*pwrdm_read_next_pwrst)(struct powerdomain *pwrdm); 182 int (*pwrdm_read_pwrst)(struct powerdomain *pwrdm); 183 int (*pwrdm_read_prev_pwrst)(struct powerdomain *pwrdm); 184 int (*pwrdm_set_logic_retst)(struct powerdomain *pwrdm, u8 pwrst); 185 int (*pwrdm_set_mem_onst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 186 int (*pwrdm_set_mem_retst)(struct powerdomain *pwrdm, u8 bank, u8 pwrst); 187 int (*pwrdm_read_logic_pwrst)(struct powerdomain *pwrdm); 188 int (*pwrdm_read_prev_logic_pwrst)(struct powerdomain *pwrdm); 189 int (*pwrdm_read_logic_retst)(struct powerdomain *pwrdm); [all …]
|
D | prm33xx.c | 141 static int am33xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in am33xx_pwrdm_set_next_pwrst() argument 145 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_next_pwrst() 149 static int am33xx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_next_pwrst() argument 153 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_read_next_pwrst() 160 static int am33xx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_read_pwrst() argument 164 v = am33xx_prm_read_reg(pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_read_pwrst() 171 static int am33xx_pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm) in am33xx_pwrdm_set_lowpwrstchange() argument 175 pwrdm->prcm_offs, pwrdm->pwrstctrl_offs); in am33xx_pwrdm_set_lowpwrstchange() 179 static int am33xx_pwrdm_clear_all_prev_pwrst(struct powerdomain *pwrdm) in am33xx_pwrdm_clear_all_prev_pwrst() argument 183 pwrdm->prcm_offs, pwrdm->pwrstst_offs); in am33xx_pwrdm_clear_all_prev_pwrst() [all …]
|
D | pm-debug.c | 52 void pm_dbg_update_time(struct powerdomain *pwrdm, int prev) in pm_dbg_update_time() argument 62 pwrdm->state_timer[prev] += t - pwrdm->timer; in pm_dbg_update_time() 64 pwrdm->timer = t; in pm_dbg_update_time() 76 seq_printf(s, "%s->%s (%d)\n", clkdm->name, clkdm->pwrdm.ptr->name, in clkdm_dbg_show_counter() 82 static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user) in pwrdm_dbg_show_counter() argument 87 if (strcmp(pwrdm->name, "emu_pwrdm") == 0 || in pwrdm_dbg_show_counter() 88 strcmp(pwrdm->name, "wkup_pwrdm") == 0 || in pwrdm_dbg_show_counter() 89 strncmp(pwrdm->name, "dpll", 4) == 0) in pwrdm_dbg_show_counter() 92 if (pwrdm->state != pwrdm_read_pwrst(pwrdm)) in pwrdm_dbg_show_counter() 94 pwrdm->name, pwrdm->state, pwrdm_read_pwrst(pwrdm)); in pwrdm_dbg_show_counter() [all …]
|
D | prm44xx.c | 427 static int omap4_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap4_pwrdm_set_next_pwrst() argument 431 pwrdm->prcm_partition, in omap4_pwrdm_set_next_pwrst() 432 pwrdm->prcm_offs, OMAP4_PM_PWSTCTRL); in omap4_pwrdm_set_next_pwrst() 436 static int omap4_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in omap4_pwrdm_read_next_pwrst() argument 440 v = omap4_prminst_read_inst_reg(pwrdm->prcm_partition, pwrdm->prcm_offs, in omap4_pwrdm_read_next_pwrst() 448 static int omap4_pwrdm_read_pwrst(struct powerdomain *pwrdm) in omap4_pwrdm_read_pwrst() argument 452 v = omap4_prminst_read_inst_reg(pwrdm->prcm_partition, pwrdm->prcm_offs, in omap4_pwrdm_read_pwrst() 460 static int omap4_pwrdm_read_prev_pwrst(struct powerdomain *pwrdm) in omap4_pwrdm_read_prev_pwrst() argument 464 v = omap4_prminst_read_inst_reg(pwrdm->prcm_partition, pwrdm->prcm_offs, in omap4_pwrdm_read_prev_pwrst() 472 static int omap4_pwrdm_set_lowpwrstchange(struct powerdomain *pwrdm) in omap4_pwrdm_set_lowpwrstchange() argument [all …]
|
D | pm44xx.c | 27 struct powerdomain *pwrdm; member 60 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 61 pwrst->saved_logic_state = pwrdm_read_logic_retst(pwrst->pwrdm); in omap4_pm_suspend() 66 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap4_pm_suspend() 67 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->next_logic_state); in omap4_pm_suspend() 83 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap4_pm_suspend() 86 pwrst->pwrdm->name, pwrst->next_state); in omap4_pm_suspend() 89 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap4_pm_suspend() 90 pwrdm_set_logic_retst(pwrst->pwrdm, pwrst->saved_logic_state); in omap4_pm_suspend() 113 static int __init pwrdms_setup(struct powerdomain *pwrdm, void *unused) in pwrdms_setup() argument [all …]
|
D | clockdomains33xx_data.c | 19 .pwrdm = { .name = "per_pwrdm" }, 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" }, [all …]
|
D | omap-iommu.c | 20 struct powerdomain *pwrdm; member 58 struct powerdomain *pwrdm = NULL; in _get_pwrdm() local 67 pwrdm = entry->pwrdm; in _get_pwrdm() 74 if (pwrdm) in _get_pwrdm() 75 return pwrdm; in _get_pwrdm() 96 pwrdm = clkdm_get_pwrdm(clkdm); in _get_pwrdm() 97 if (!pwrdm) { in _get_pwrdm() 105 entry->pwrdm = pwrdm; in _get_pwrdm() 111 return pwrdm; in _get_pwrdm() 117 struct powerdomain *pwrdm; in omap_iommu_set_pwrdm_constraint() local [all …]
|
D | clockdomains43xx_data.c | 17 .pwrdm = { .name = "cefuse_pwrdm" }, 26 .pwrdm = { .name = "mpu_pwrdm" }, 35 .pwrdm = { .name = "per_pwrdm" }, 44 .pwrdm = { .name = "tamper_pwrdm" }, 53 .pwrdm = { .name = "rtc_pwrdm" }, 62 .pwrdm = { .name = "per_pwrdm" }, 71 .pwrdm = { .name = "per_pwrdm" }, 80 .pwrdm = { .name = "wkup_pwrdm" }, 89 .pwrdm = { .name = "per_pwrdm" }, 98 .pwrdm = { .name = "per_pwrdm" }, [all …]
|
D | clockdomains81xx_data.c | 32 .pwrdm = { .name = "alwon_pwrdm" }, 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 = "default_pwrdm" }, 88 .pwrdm = { .name = "default_pwrdm" }, 98 .pwrdm = { .name = "alwon_pwrdm" }, 106 .pwrdm = { .name = "active_pwrdm" }, [all …]
|
D | prm2xxx_3xxx.c | 111 int omap2_pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, in omap2_pwrdm_set_mem_onst() argument 118 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_onst() 124 int omap2_pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, in omap2_pwrdm_set_mem_retst() argument 131 omap2_prm_rmw_mod_reg_bits(m, (pwrst << __ffs(m)), pwrdm->prcm_offs, in omap2_pwrdm_set_mem_retst() 137 int omap2_pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank) in omap2_pwrdm_read_mem_pwrst() argument 143 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, OMAP2_PM_PWSTST, in omap2_pwrdm_read_mem_pwrst() 147 int omap2_pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank) in omap2_pwrdm_read_mem_retst() argument 153 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2_pwrdm_read_mem_retst() 157 int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst) in omap2_pwrdm_set_logic_retst() argument 162 omap2_prm_rmw_mod_reg_bits(OMAP_LOGICRETSTATE_MASK, v, pwrdm->prcm_offs, in omap2_pwrdm_set_logic_retst() [all …]
|
D | clockdomains3xxx_data.c | 224 .pwrdm = { .name = "mpu_pwrdm" }, 233 .pwrdm = { .name = "mpu_pwrdm" }, 242 .pwrdm = { .name = "neon_pwrdm" }, 250 .pwrdm = { .name = "iva2_pwrdm" }, 259 .pwrdm = { .name = "gfx_pwrdm" }, 268 .pwrdm = { .name = "sgx_pwrdm" }, 277 .pwrdm = { .name = "sgx_pwrdm" }, 293 .pwrdm = { .name = "core_pwrdm" }, 305 .pwrdm = { .name = "core_pwrdm" }, 318 .pwrdm = { .name = "core_pwrdm" }, [all …]
|
D | clockdomains54xx_data.c | 166 .pwrdm = { .name = "core_pwrdm" }, 178 .pwrdm = { .name = "iva_pwrdm" }, 190 .pwrdm = { .name = "core_pwrdm" }, 201 .pwrdm = { .name = "core_pwrdm" }, 211 .pwrdm = { .name = "core_pwrdm" }, 221 .pwrdm = { .name = "custefuse_pwrdm" }, 230 .pwrdm = { .name = "core_pwrdm" }, 242 .pwrdm = { .name = "core_pwrdm" }, 252 .pwrdm = { .name = "abe_pwrdm" }, 262 .pwrdm = { .name = "dss_pwrdm" }, [all …]
|
D | clockdomains7xx_data.c | 314 .pwrdm = { .name = "l4per_pwrdm" }, 324 .pwrdm = { .name = "l4per_pwrdm" }, 336 .pwrdm = { .name = "cpu0_pwrdm" }, 345 .pwrdm = { .name = "iva_pwrdm" }, 357 .pwrdm = { .name = "coreaon_pwrdm" }, 366 .pwrdm = { .name = "ipu_pwrdm" }, 378 .pwrdm = { .name = "core_pwrdm" }, 390 .pwrdm = { .name = "l3init_pwrdm" }, 402 .pwrdm = { .name = "l4per_pwrdm" }, 414 .pwrdm = { .name = "core_pwrdm" }, [all …]
|
D | clockdomains44xx_data.c | 155 .pwrdm = { .name = "cefuse_pwrdm" }, 164 .pwrdm = { .name = "core_pwrdm" }, 174 .pwrdm = { .name = "tesla_pwrdm" }, 186 .pwrdm = { .name = "gfx_pwrdm" }, 198 .pwrdm = { .name = "ivahd_pwrdm" }, 210 .pwrdm = { .name = "l4per_pwrdm" }, 222 .pwrdm = { .name = "l4per_pwrdm" }, 232 .pwrdm = { .name = "abe_pwrdm" }, 242 .pwrdm = { .name = "core_pwrdm" }, 250 .pwrdm = { .name = "l3init_pwrdm" }, [all …]
|
D | clockdomain.c | 75 struct powerdomain *pwrdm; in _clkdm_register() local 80 pwrdm = pwrdm_lookup(clkdm->pwrdm.name); in _clkdm_register() 81 if (!pwrdm) { in _clkdm_register() 83 clkdm->name, clkdm->pwrdm.name); in _clkdm_register() 86 clkdm->pwrdm.ptr = pwrdm; in _clkdm_register() 94 pwrdm_add_clkdm(pwrdm, clkdm); in _clkdm_register() 575 return clkdm->pwrdm.ptr; in clkdm_get_pwrdm() 605 pwrdm_lock(cd->clkdm->pwrdm.ptr); in clkdm_add_wkdep() 607 pwrdm_unlock(cd->clkdm->pwrdm.ptr); in clkdm_add_wkdep() 634 pwrdm_lock(cd->clkdm->pwrdm.ptr); in clkdm_del_wkdep() [all …]
|
D | pm34xx.c | 55 struct powerdomain *pwrdm; member 308 pwrst->saved_state = pwrdm_read_next_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 311 if (omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state)) in omap3_pm_suspend() 313 if (pwrdm_clear_all_prev_pwrst(pwrst->pwrdm)) in omap3_pm_suspend() 324 state = pwrdm_read_prev_pwrst(pwrst->pwrdm); in omap3_pm_suspend() 327 pwrst->pwrdm->name, pwrst->next_state); in omap3_pm_suspend() 330 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->saved_state); in omap3_pm_suspend() 362 pwrst->pwrdm == core_pwrdm && in omap3_pm_off_mode_enable() 370 omap_set_pwrdm_state(pwrst->pwrdm, pwrst->next_state); in omap3_pm_off_mode_enable() 374 int omap3_pm_get_suspend_state(struct powerdomain *pwrdm) in omap3_pm_get_suspend_state() argument [all …]
|
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 | omap-mpuss-lowpower.c | 67 struct powerdomain *pwrdm; member 269 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_enter_lowpower() 270 pwrdm_set_logic_retst(pm_info->pwrdm, cpu_logic_state); in omap4_enter_lowpower() 293 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_enter_lowpower() 314 power_state = pwrdm_get_valid_lp_state(pm_info->pwrdm, in omap4_hotplug_cpu() 320 pwrdm_clear_all_prev_pwrst(pm_info->pwrdm); in omap4_hotplug_cpu() 321 pwrdm_set_next_pwrst(pm_info->pwrdm, power_state); in omap4_hotplug_cpu() 332 pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON); in omap4_hotplug_cpu() 376 pm_info->pwrdm = pwrdm_lookup("cpu0_pwrdm"); in omap4_mpuss_init() 377 if (!pm_info->pwrdm) { in omap4_mpuss_init() [all …]
|
D | clockdomains2420_data.c | 81 .pwrdm = { .name = "mpu_pwrdm" }, 89 .pwrdm = { .name = "dsp_pwrdm" }, 98 .pwrdm = { .name = "dsp_pwrdm" }, 105 .pwrdm = { .name = "gfx_pwrdm" }, 113 .pwrdm = { .name = "core_pwrdm" }, 121 .pwrdm = { .name = "core_pwrdm" }, 129 .pwrdm = { .name = "core_pwrdm" },
|
D | clockdomains2430_data.c | 92 .pwrdm = { .name = "mpu_pwrdm" }, 101 .pwrdm = { .name = "mdm_pwrdm" }, 110 .pwrdm = { .name = "dsp_pwrdm" }, 119 .pwrdm = { .name = "gfx_pwrdm" }, 132 .pwrdm = { .name = "core_pwrdm" }, 146 .pwrdm = { .name = "core_pwrdm" }, 155 .pwrdm = { .name = "core_pwrdm" },
|
D | prm2xxx_3xxx.h | 107 extern int omap2_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst); 108 extern int omap2_pwrdm_read_next_pwrst(struct powerdomain *pwrdm); 109 extern int omap2_pwrdm_read_pwrst(struct powerdomain *pwrdm); 110 extern int omap2_pwrdm_set_mem_onst(struct powerdomain *pwrdm, u8 bank, 112 extern int omap2_pwrdm_set_mem_retst(struct powerdomain *pwrdm, u8 bank, 114 extern int omap2_pwrdm_read_mem_pwrst(struct powerdomain *pwrdm, u8 bank); 115 extern int omap2_pwrdm_read_mem_retst(struct powerdomain *pwrdm, u8 bank); 116 extern int omap2_pwrdm_set_logic_retst(struct powerdomain *pwrdm, u8 pwrst); 117 extern int omap2_pwrdm_wait_transition(struct powerdomain *pwrdm);
|
D | prm2xxx.c | 136 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_sleep() 144 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_wakeup() 149 static int omap2xxx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in omap2xxx_pwrdm_set_next_pwrst() argument 169 pwrdm->prcm_offs, OMAP2_PM_PWSTCTRL); in omap2xxx_pwrdm_set_next_pwrst() 173 static int omap2xxx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in omap2xxx_pwrdm_read_next_pwrst() argument 177 omap2xxx_pwrst = omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2xxx_pwrdm_read_next_pwrst() 184 static int omap2xxx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in omap2xxx_pwrdm_read_pwrst() argument 188 omap2xxx_pwrst = omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2xxx_pwrdm_read_pwrst()
|
D | powerdomains3xxx_data.c | 513 static int ti81xx_pwrdm_set_next_pwrst(struct powerdomain *pwrdm, u8 pwrst) in ti81xx_pwrdm_set_next_pwrst() argument 517 pwrdm->prcm_offs, TI81XX_PM_PWSTCTRL); in ti81xx_pwrdm_set_next_pwrst() 521 static int ti81xx_pwrdm_read_next_pwrst(struct powerdomain *pwrdm) in ti81xx_pwrdm_read_next_pwrst() argument 523 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in ti81xx_pwrdm_read_next_pwrst() 528 static int ti81xx_pwrdm_read_pwrst(struct powerdomain *pwrdm) in ti81xx_pwrdm_read_pwrst() argument 530 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in ti81xx_pwrdm_read_pwrst() 531 (pwrdm->prcm_offs == TI814X_PRM_GFX_MOD) ? TI81XX_RM_RSTCTRL : in ti81xx_pwrdm_read_pwrst() 536 static int ti81xx_pwrdm_read_logic_pwrst(struct powerdomain *pwrdm) in ti81xx_pwrdm_read_logic_pwrst() argument 538 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in ti81xx_pwrdm_read_logic_pwrst() 539 (pwrdm->prcm_offs == TI814X_PRM_GFX_MOD) ? TI81XX_RM_RSTCTRL : in ti81xx_pwrdm_read_logic_pwrst() [all …]
|
D | pm.h | 49 extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); 50 extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state); 55 extern void pm_dbg_update_time(struct powerdomain *pwrdm, int prev); 57 #define pm_dbg_update_time(pwrdm, prev) do {} while (0); argument
|