Home
last modified time | relevance | path

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

/linux-3.4.99/arch/arm/mach-omap2/
Dclockdomain.c45 struct clockdomain *clkdm, *temp_clkdm; in _clkdm_lookup() local
50 clkdm = NULL; in _clkdm_lookup()
54 clkdm = temp_clkdm; in _clkdm_lookup()
59 return clkdm; in _clkdm_lookup()
70 static int _clkdm_register(struct clockdomain *clkdm) in _clkdm_register() argument
74 if (!clkdm || !clkdm->name) in _clkdm_register()
77 pwrdm = pwrdm_lookup(clkdm->pwrdm.name); in _clkdm_register()
80 clkdm->name, clkdm->pwrdm.name); in _clkdm_register()
83 clkdm->pwrdm.ptr = pwrdm; in _clkdm_register()
86 if (_clkdm_lookup(clkdm->name)) in _clkdm_register()
[all …]
Dclockdomain2xxx_3xxx.c49 static int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm) in omap2_clkdm_clear_all_wkdeps() argument
54 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { in omap2_clkdm_clear_all_wkdeps()
55 if (!cd->clkdm) in omap2_clkdm_clear_all_wkdeps()
59 mask |= 1 << cd->clkdm->dep_bit; in omap2_clkdm_clear_all_wkdeps()
63 omap2_prm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs, in omap2_clkdm_clear_all_wkdeps()
93 static int omap3_clkdm_clear_all_sleepdeps(struct clockdomain *clkdm) in omap3_clkdm_clear_all_sleepdeps() argument
98 for (cd = clkdm->sleepdep_srcs; cd && cd->clkdm_name; cd++) { in omap3_clkdm_clear_all_sleepdeps()
99 if (!cd->clkdm) in omap3_clkdm_clear_all_sleepdeps()
103 mask |= 1 << cd->clkdm->dep_bit; in omap3_clkdm_clear_all_sleepdeps()
106 omap2_prm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs, in omap3_clkdm_clear_all_sleepdeps()
[all …]
Dclockdomain44xx.c49 static int omap4_clkdm_clear_all_wkup_sleep_deps(struct clockdomain *clkdm) in omap4_clkdm_clear_all_wkup_sleep_deps() argument
54 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { in omap4_clkdm_clear_all_wkup_sleep_deps()
55 if (!cd->clkdm) in omap4_clkdm_clear_all_wkup_sleep_deps()
58 mask |= 1 << cd->clkdm->dep_bit; in omap4_clkdm_clear_all_wkup_sleep_deps()
62 omap4_cminst_clear_inst_reg_bits(mask, clkdm->prcm_partition, in omap4_clkdm_clear_all_wkup_sleep_deps()
63 clkdm->cm_inst, clkdm->clkdm_offs + in omap4_clkdm_clear_all_wkup_sleep_deps()
68 static int omap4_clkdm_sleep(struct clockdomain *clkdm) in omap4_clkdm_sleep() argument
70 omap4_cminst_clkdm_force_sleep(clkdm->prcm_partition, in omap4_clkdm_sleep()
71 clkdm->cm_inst, clkdm->clkdm_offs); in omap4_clkdm_sleep()
75 static int omap4_clkdm_wakeup(struct clockdomain *clkdm) in omap4_clkdm_wakeup() argument
[all …]
Dclockdomain.h61 } clkdm; member
78 struct clockdomain *clkdm; member
150 int (*clkdm_clear_all_wkdeps)(struct clockdomain *clkdm);
154 int (*clkdm_clear_all_sleepdeps)(struct clockdomain *clkdm);
155 int (*clkdm_sleep)(struct clockdomain *clkdm);
156 int (*clkdm_wakeup)(struct clockdomain *clkdm);
157 void (*clkdm_allow_idle)(struct clockdomain *clkdm);
158 void (*clkdm_deny_idle)(struct clockdomain *clkdm);
159 int (*clkdm_clk_enable)(struct clockdomain *clkdm);
160 int (*clkdm_clk_disable)(struct clockdomain *clkdm);
[all …]
Dclock.c94 struct clockdomain *clkdm; in omap2_init_clk_clkdm() local
99 clkdm = clkdm_lookup(clk->clkdm_name); in omap2_init_clk_clkdm()
100 if (clkdm) { in omap2_init_clk_clkdm()
103 clk->clkdm = clkdm; in omap2_init_clk_clkdm()
292 if (clkdm_control && clk->clkdm) in omap2_clk_disable()
293 clkdm_clk_disable(clk->clkdm, clk); in omap2_clk_disable()
332 if (clkdm_control && clk->clkdm) { in omap2_clk_enable()
333 ret = clkdm_clk_enable(clk->clkdm, clk); in omap2_clk_enable()
336 "%d\n", clk->name, clk->clkdm->name, ret); in omap2_clk_enable()
354 if (clkdm_control && clk->clkdm) in omap2_clk_enable()
[all …]
Dpowerdomain.c334 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) in pwrdm_add_clkdm() argument
339 if (!pwrdm || !clkdm) in pwrdm_add_clkdm()
343 "%s\n", clkdm->name, pwrdm->name); in pwrdm_add_clkdm()
349 if (pwrdm->pwrdm_clkdms[i] == clkdm) { in pwrdm_add_clkdm()
358 "pwrdm %s clkdm %s\n", pwrdm->name, clkdm->name); in pwrdm_add_clkdm()
364 pwrdm->pwrdm_clkdms[i] = clkdm; in pwrdm_add_clkdm()
382 int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) in pwrdm_del_clkdm() argument
387 if (!pwrdm || !clkdm) in pwrdm_del_clkdm()
391 "%s\n", clkdm->name, pwrdm->name); in pwrdm_del_clkdm()
394 if (pwrdm->pwrdm_clkdms[i] == clkdm) in pwrdm_del_clkdm()
[all …]
Domap_hwmod.c517 if (oh->_clk->clkdm && oh->_clk->clkdm->flags & CLKDM_NO_AUTODEPS) in _add_initiator_dep()
520 return clkdm_add_sleepdep(oh->_clk->clkdm, init_oh->_clk->clkdm); in _add_initiator_dep()
541 if (oh->_clk->clkdm && oh->_clk->clkdm->flags & CLKDM_NO_AUTODEPS) in _del_initiator_dep()
544 return clkdm_del_sleepdep(oh->_clk->clkdm, init_oh->_clk->clkdm); in _del_initiator_dep()
569 if (!oh->_clk->clkdm) in _init_main_clk()
741 if (!oh->clkdm || !oh->prcm.omap4.modulemode) in _enable_module()
748 oh->clkdm->prcm_partition, in _enable_module()
749 oh->clkdm->cm_inst, in _enable_module()
750 oh->clkdm->clkdm_offs, in _enable_module()
777 return omap4_cminst_wait_module_idle(oh->clkdm->prcm_partition, in _omap4_wait_target_disable()
[all …]
Dpm-debug.c78 static int clkdm_dbg_show_counter(struct clockdomain *clkdm, void *user) in clkdm_dbg_show_counter() argument
82 if (strcmp(clkdm->name, "emu_clkdm") == 0 || in clkdm_dbg_show_counter()
83 strcmp(clkdm->name, "wkup_clkdm") == 0 || in clkdm_dbg_show_counter()
84 strncmp(clkdm->name, "dpll", 4) == 0) in clkdm_dbg_show_counter()
87 seq_printf(s, "%s->%s (%d)", clkdm->name, in clkdm_dbg_show_counter()
88 clkdm->pwrdm.ptr->name, in clkdm_dbg_show_counter()
89 atomic_read(&clkdm->usecount)); in clkdm_dbg_show_counter()
Dpm.c81 int __init omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused) in omap_pm_clkdms_setup() argument
83 if (clkdm->flags & CLKDM_CAN_ENABLE_AUTO) in omap_pm_clkdms_setup()
84 clkdm_allow_idle(clkdm); in omap_pm_clkdms_setup()
85 else if (clkdm->flags & CLKDM_CAN_FORCE_SLEEP && in omap_pm_clkdms_setup()
86 atomic_read(&clkdm->usecount) == 0) in omap_pm_clkdms_setup()
87 clkdm_sleep(clkdm); in omap_pm_clkdms_setup()
Dpowerdomain.h183 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm);
184 int pwrdm_del_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm);
187 struct clockdomain *clkdm));
216 int pwrdm_clkdm_state_switch(struct clockdomain *clkdm);
Dcpuidle34xx.c77 struct clockdomain *clkdm) in _cpuidle_allow_idle() argument
79 clkdm_allow_idle(clkdm); in _cpuidle_allow_idle()
84 struct clockdomain *clkdm) in _cpuidle_deny_idle() argument
86 clkdm_deny_idle(clkdm); in _cpuidle_deny_idle()
Dclockdomains3xxx_data.c334 .clkdm = { .name = "mpu_clkdm" },
337 .clkdm = { .name = "iva2_clkdm" },
340 .clkdm = { .name = NULL },
Dpm.h24 extern int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused);
/linux-3.4.99/arch/arm/plat-omap/include/plat/
Dclock.h265 struct clockdomain *clkdm; member
Domap_hwmod.h531 struct clockdomain *clkdm; member