Home
last modified time | relevance | path

Searched refs:clkdm (Results 1 – 21 of 21) sorted by relevance

/arch/arm/mach-omap2/
Dclockdomain.c48 struct clockdomain *clkdm, *temp_clkdm; in _clkdm_lookup() local
53 clkdm = NULL; in _clkdm_lookup()
57 clkdm = temp_clkdm; in _clkdm_lookup()
62 return clkdm; in _clkdm_lookup()
73 static int _clkdm_register(struct clockdomain *clkdm) in _clkdm_register() argument
77 if (!clkdm || !clkdm->name) in _clkdm_register()
80 pwrdm = pwrdm_lookup(clkdm->pwrdm.name); in _clkdm_register()
83 clkdm->name, clkdm->pwrdm.name); in _clkdm_register()
86 clkdm->pwrdm.ptr = pwrdm; in _clkdm_register()
89 if (_clkdm_lookup(clkdm->name)) in _clkdm_register()
[all …]
Dclockdomain.h72 } clkdm; member
89 struct clockdomain *clkdm; member
167 int (*clkdm_clear_all_wkdeps)(struct clockdomain *clkdm);
171 int (*clkdm_clear_all_sleepdeps)(struct clockdomain *clkdm);
172 int (*clkdm_sleep)(struct clockdomain *clkdm);
173 int (*clkdm_wakeup)(struct clockdomain *clkdm);
174 void (*clkdm_allow_idle)(struct clockdomain *clkdm);
175 void (*clkdm_deny_idle)(struct clockdomain *clkdm);
176 int (*clkdm_clk_enable)(struct clockdomain *clkdm);
177 int (*clkdm_clk_disable)(struct clockdomain *clkdm);
[all …]
Dcminst44xx.c380 static int omap4_clkdm_clear_all_wkup_sleep_deps(struct clockdomain *clkdm) in omap4_clkdm_clear_all_wkup_sleep_deps() argument
385 if (!clkdm->prcm_partition) in omap4_clkdm_clear_all_wkup_sleep_deps()
388 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { in omap4_clkdm_clear_all_wkup_sleep_deps()
389 if (!cd->clkdm) in omap4_clkdm_clear_all_wkup_sleep_deps()
392 mask |= 1 << cd->clkdm->dep_bit; in omap4_clkdm_clear_all_wkup_sleep_deps()
396 omap4_cminst_clear_inst_reg_bits(mask, clkdm->prcm_partition, in omap4_clkdm_clear_all_wkup_sleep_deps()
397 clkdm->cm_inst, clkdm->clkdm_offs + in omap4_clkdm_clear_all_wkup_sleep_deps()
402 static int omap4_clkdm_sleep(struct clockdomain *clkdm) in omap4_clkdm_sleep() argument
404 if (clkdm->flags & CLKDM_CAN_HWSUP) in omap4_clkdm_sleep()
405 omap4_cminst_clkdm_enable_hwsup(clkdm->prcm_partition, in omap4_clkdm_sleep()
[all …]
Dcm33xx.c305 static int am33xx_clkdm_sleep(struct clockdomain *clkdm) in am33xx_clkdm_sleep() argument
307 am33xx_cm_clkdm_force_sleep(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_sleep()
311 static int am33xx_clkdm_wakeup(struct clockdomain *clkdm) in am33xx_clkdm_wakeup() argument
313 am33xx_cm_clkdm_force_wakeup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_wakeup()
317 static void am33xx_clkdm_allow_idle(struct clockdomain *clkdm) in am33xx_clkdm_allow_idle() argument
319 am33xx_cm_clkdm_enable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_allow_idle()
322 static void am33xx_clkdm_deny_idle(struct clockdomain *clkdm) in am33xx_clkdm_deny_idle() argument
324 am33xx_cm_clkdm_disable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); in am33xx_clkdm_deny_idle()
327 static int am33xx_clkdm_clk_enable(struct clockdomain *clkdm) in am33xx_clkdm_clk_enable() argument
329 if (clkdm->flags & CLKDM_CAN_FORCE_WAKEUP) in am33xx_clkdm_clk_enable()
[all …]
Dcm3xxx.c172 static int omap3xxx_clkdm_clear_all_sleepdeps(struct clockdomain *clkdm) in omap3xxx_clkdm_clear_all_sleepdeps() argument
177 for (cd = clkdm->sleepdep_srcs; cd && cd->clkdm_name; cd++) { in omap3xxx_clkdm_clear_all_sleepdeps()
178 if (!cd->clkdm) in omap3xxx_clkdm_clear_all_sleepdeps()
181 mask |= 1 << cd->clkdm->dep_bit; in omap3xxx_clkdm_clear_all_sleepdeps()
184 omap2_cm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs, in omap3xxx_clkdm_clear_all_sleepdeps()
189 static int omap3xxx_clkdm_sleep(struct clockdomain *clkdm) in omap3xxx_clkdm_sleep() argument
191 omap3xxx_cm_clkdm_force_sleep(clkdm->pwrdm.ptr->prcm_offs, in omap3xxx_clkdm_sleep()
192 clkdm->clktrctrl_mask); in omap3xxx_clkdm_sleep()
196 static int omap3xxx_clkdm_wakeup(struct clockdomain *clkdm) in omap3xxx_clkdm_wakeup() argument
198 omap3xxx_cm_clkdm_force_wakeup(clkdm->pwrdm.ptr->prcm_offs, in omap3xxx_clkdm_wakeup()
[all …]
Dcm2xxx.c268 static void omap2xxx_clkdm_allow_idle(struct clockdomain *clkdm) in omap2xxx_clkdm_allow_idle() argument
270 omap2xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_allow_idle()
271 clkdm->clktrctrl_mask); in omap2xxx_clkdm_allow_idle()
274 static void omap2xxx_clkdm_deny_idle(struct clockdomain *clkdm) in omap2xxx_clkdm_deny_idle() argument
276 omap2xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_deny_idle()
277 clkdm->clktrctrl_mask); in omap2xxx_clkdm_deny_idle()
280 static int omap2xxx_clkdm_clk_enable(struct clockdomain *clkdm) in omap2xxx_clkdm_clk_enable() argument
284 if (!clkdm->clktrctrl_mask) in omap2xxx_clkdm_clk_enable()
287 hwsup = omap2xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_clk_enable()
288 clkdm->clktrctrl_mask); in omap2xxx_clkdm_clk_enable()
[all …]
Domap_hwmod.c663 if (oh->clkdm) { in _get_clkdm()
664 return oh->clkdm; in _get_clkdm()
669 return clk->clkdm; in _get_clkdm()
689 struct clockdomain *clkdm, *init_clkdm; in _add_initiator_dep() local
691 clkdm = _get_clkdm(oh); in _add_initiator_dep()
694 if (!clkdm || !init_clkdm) in _add_initiator_dep()
697 if (clkdm && clkdm->flags & CLKDM_NO_AUTODEPS) in _add_initiator_dep()
700 return clkdm_add_sleepdep(clkdm, init_clkdm); in _add_initiator_dep()
718 struct clockdomain *clkdm, *init_clkdm; in _del_initiator_dep() local
720 clkdm = _get_clkdm(oh); in _del_initiator_dep()
[all …]
Dpm-debug.c69 static int clkdm_dbg_show_counter(struct clockdomain *clkdm, void *user) in clkdm_dbg_show_counter() argument
73 if (strcmp(clkdm->name, "emu_clkdm") == 0 || in clkdm_dbg_show_counter()
74 strcmp(clkdm->name, "wkup_clkdm") == 0 || in clkdm_dbg_show_counter()
75 strncmp(clkdm->name, "dpll", 4) == 0) in clkdm_dbg_show_counter()
78 seq_printf(s, "%s->%s (%d)\n", clkdm->name, clkdm->pwrdm.ptr->name, in clkdm_dbg_show_counter()
79 clkdm->usecount); in clkdm_dbg_show_counter()
Dpdata-quirks.c366 struct clockdomain *clkdm = NULL; in ti_sysc_find_one_clockdomain() local
374 clkdm = clkdm_lookup(hwclk->clkdm_name); in ti_sysc_find_one_clockdomain()
376 return clkdm; in ti_sysc_find_one_clockdomain()
398 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); in ti_sysc_clkdm_init()
399 if (cookie->clkdm) in ti_sysc_clkdm_init()
402 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); in ti_sysc_clkdm_init()
403 if (cookie->clkdm) in ti_sysc_clkdm_init()
412 if (cookie->clkdm) in ti_sysc_clkdm_deny_idle()
413 clkdm_deny_idle(cookie->clkdm); in ti_sysc_clkdm_deny_idle()
419 if (cookie->clkdm) in ti_sysc_clkdm_allow_idle()
[all …]
Dprm2xxx_3xxx.c219 int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm) in omap2_clkdm_clear_all_wkdeps() argument
224 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { in omap2_clkdm_clear_all_wkdeps()
225 if (!cd->clkdm) in omap2_clkdm_clear_all_wkdeps()
229 mask |= 1 << cd->clkdm->dep_bit; in omap2_clkdm_clear_all_wkdeps()
233 omap2_prm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs, in omap2_clkdm_clear_all_wkdeps()
Dprm2xxx.c133 int omap2xxx_clkdm_sleep(struct clockdomain *clkdm) in omap2xxx_clkdm_sleep() argument
136 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_sleep()
141 int omap2xxx_clkdm_wakeup(struct clockdomain *clkdm) in omap2xxx_clkdm_wakeup() argument
144 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_wakeup()
Dpm.c71 int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused) in omap_pm_clkdms_setup() argument
73 clkdm_allow_idle(clkdm); in omap_pm_clkdms_setup()
Dclockdomains3xxx_data.c431 .clkdm = { .name = "mpu_clkdm" },
434 .clkdm = { .name = "iva2_clkdm" },
437 .clkdm = { .name = NULL },
443 .clkdm = { .name = "mpu_clkdm" },
446 .clkdm = { .name = NULL },
Dprm2xxx.h121 extern int omap2xxx_clkdm_sleep(struct clockdomain *clkdm);
122 extern int omap2xxx_clkdm_wakeup(struct clockdomain *clkdm);
Dpowerdomain.c465 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) in pwrdm_add_clkdm() argument
470 if (!pwrdm || !clkdm) in pwrdm_add_clkdm()
474 pwrdm->name, clkdm->name); in pwrdm_add_clkdm()
480 if (pwrdm->pwrdm_clkdms[i] == clkdm) { in pwrdm_add_clkdm()
489 pwrdm->name, clkdm->name); in pwrdm_add_clkdm()
495 pwrdm->pwrdm_clkdms[i] = clkdm; in pwrdm_add_clkdm()
Dpm.h33 extern int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused);
Dprm2xxx_3xxx.h125 extern int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm);
Dpowerdomain.h214 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm);
Domap_hwmod.h590 struct clockdomain *clkdm; member
/arch/arm/boot/dts/
Domap44xx-clocks.dtsi543 compatible = "ti,clkdm-gate-clock";
Domap3xxx-clocks.dtsi1525 compatible = "ti,clkdm-gate-clock";