Home
last modified time | relevance | path

Searched refs:pwrdm (Results 1 – 25 of 33) sorted by relevance

12

/linux-6.1.9/arch/arm/mach-omap2/
Dpowerdomain.c67 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 …]
Dpowerdomain.h180 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 …]
Dprm33xx.c141 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 …]
Dpm-debug.c52 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 …]
Dprm44xx.c427 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 …]
Dpm44xx.c27 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 …]
Dclockdomains33xx_data.c19 .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 …]
Domap-iommu.c20 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 …]
Dclockdomains43xx_data.c17 .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 …]
Dclockdomains81xx_data.c32 .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 …]
Dprm2xxx_3xxx.c111 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 …]
Dclockdomains3xxx_data.c224 .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 …]
Dclockdomains54xx_data.c166 .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 …]
Dclockdomains7xx_data.c314 .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 …]
Dclockdomains44xx_data.c155 .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 …]
Dclockdomain.c75 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 …]
Dpm34xx.c55 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 …]
Dprm3xxx.c536 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 …]
Domap-mpuss-lowpower.c67 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 …]
Dclockdomains2420_data.c81 .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" },
Dclockdomains2430_data.c92 .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" },
Dprm2xxx_3xxx.h107 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);
Dprm2xxx.c136 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()
Dpowerdomains3xxx_data.c513 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 …]
Dpm.h49 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

12