/linux-master/include/linux/platform_data/ |
H A D | ti-prm.h | 16 void (*clkdm_deny_idle)(struct clockdomain *clkdm); 17 void (*clkdm_allow_idle)(struct clockdomain *clkdm);
|
H A D | ti-sysc.h | 25 void *clkdm; member in struct:ti_sysc_cookie
|
/linux-master/arch/arm/mach-omap2/ |
H A D | clockdomain.c | 37 /* array of clockdomain deps to be added/removed when clkdm in hwsup mode */ 48 struct clockdomain *clkdm, *temp_clkdm; local 53 clkdm = NULL; 57 clkdm = temp_clkdm; 62 return clkdm; 67 * @clkdm: struct clockdomain * to register 73 static int _clkdm_register(struct clockdomain *clkdm) argument 77 if (!clkdm || !clkdm->name) 80 pwrdm = pwrdm_lookup(clkdm 102 _clkdm_deps_lookup(struct clockdomain *clkdm, struct clkdm_dep *deps) argument 142 struct clockdomain *clkdm; local 165 _resolve_clkdm_deps(struct clockdomain *clkdm, struct clkdm_dep *clkdm_deps) argument 479 struct clockdomain *clkdm; local 513 struct clockdomain *clkdm, *temp_clkdm; local 544 clkdm_for_each(int (*fn)(struct clockdomain *clkdm, void *user), void *user) argument 547 struct clockdomain *clkdm; local 570 clkdm_get_pwrdm(struct clockdomain *clkdm) argument 690 clkdm_clear_all_wkdeps(struct clockdomain *clkdm) argument 814 clkdm_clear_all_sleepdeps(struct clockdomain *clkdm) argument 834 clkdm_sleep_nolock(struct clockdomain *clkdm) argument 868 clkdm_sleep(struct clockdomain *clkdm) argument 888 clkdm_wakeup_nolock(struct clockdomain *clkdm) argument 922 clkdm_wakeup(struct clockdomain *clkdm) argument 944 clkdm_allow_idle_nolock(struct clockdomain *clkdm) argument 985 clkdm_allow_idle(struct clockdomain *clkdm) argument 1002 clkdm_deny_idle_nolock(struct clockdomain *clkdm) argument 1039 clkdm_deny_idle(struct clockdomain *clkdm) argument 1059 clkdm_add_autodeps(struct clockdomain *clkdm) argument 1089 clkdm_del_autodeps(struct clockdomain *clkdm) argument 1124 clkdm_clk_enable(struct clockdomain *clkdm, struct clk *unused) argument 1164 clkdm_clk_disable(struct clockdomain *clkdm, struct clk *clk) argument 1213 clkdm_hwmod_enable(struct clockdomain *clkdm, struct omap_hwmod *oh) argument 1244 clkdm_hwmod_disable(struct clockdomain *clkdm, struct omap_hwmod *oh) argument 1262 _clkdm_save_context(struct clockdomain *clkdm, void *unused) argument 1275 _clkdm_restore_context(struct clockdomain *clkdm, void *unused) argument [all...] |
H A D | clockdomain.h | 57 * struct clkdm_autodep - clkdm deps to add when entering/exiting hwsup mode 58 * @clkdm: clockdomain to add wkdep+sleepdep on - set name member only 72 } clkdm; member in struct:clkdm_autodep 78 * @clkdm: pointer to the struct clockdomain of @clkdm_name 79 * @wkdep_usecount: Number of wakeup dependencies causing this clkdm to wake 80 * @sleepdep_usecount: Number of sleep deps that could prevent clkdm from idle 82 * Statically defined. @clkdm is resolved from @clkdm_name at runtime and 89 struct clockdomain *clkdm; member in struct:clkdm_dep 108 * @prcm_partition: (OMAP4 only) PRCM partition ID for this clkdm's registers 112 * @sleepdep_srcs: Clockdomains that can be told to keep this clkdm fro [all...] |
H A D | cminst44xx.c | 380 static int omap4_clkdm_clear_all_wkup_sleep_deps(struct clockdomain *clkdm) argument 385 if (!clkdm->prcm_partition) 388 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { 389 if (!cd->clkdm) 392 mask |= 1 << cd->clkdm->dep_bit; 396 omap4_cminst_clear_inst_reg_bits(mask, clkdm->prcm_partition, 397 clkdm->cm_inst, clkdm->clkdm_offs + 402 static int omap4_clkdm_sleep(struct clockdomain *clkdm) argument 404 if (clkdm 418 omap4_clkdm_wakeup(struct clockdomain *clkdm) argument 425 omap4_clkdm_allow_idle(struct clockdomain *clkdm) argument 431 omap4_clkdm_deny_idle(struct clockdomain *clkdm) argument 441 omap4_clkdm_clk_enable(struct clockdomain *clkdm) argument 449 omap4_clkdm_clk_disable(struct clockdomain *clkdm) argument 487 omap4_clkdm_save_context(struct clockdomain *clkdm) argument 503 omap4_clkdm_restore_context(struct clockdomain *clkdm) argument [all...] |
H A D | cm33xx.c | 297 static int am33xx_clkdm_sleep(struct clockdomain *clkdm) argument 299 am33xx_cm_clkdm_force_sleep(clkdm->cm_inst, clkdm->clkdm_offs); 303 static int am33xx_clkdm_wakeup(struct clockdomain *clkdm) argument 305 am33xx_cm_clkdm_force_wakeup(clkdm->cm_inst, clkdm->clkdm_offs); 309 static void am33xx_clkdm_allow_idle(struct clockdomain *clkdm) argument 311 am33xx_cm_clkdm_enable_hwsup(clkdm->cm_inst, clkdm->clkdm_offs); 314 static void am33xx_clkdm_deny_idle(struct clockdomain *clkdm) argument 319 am33xx_clkdm_clk_enable(struct clockdomain *clkdm) argument 327 am33xx_clkdm_clk_disable(struct clockdomain *clkdm) argument 350 am33xx_clkdm_save_context(struct clockdomain *clkdm) argument 365 am33xx_clkdm_restore_context(struct clockdomain *clkdm) argument [all...] |
H A D | cm3xxx.c | 172 static int omap3xxx_clkdm_clear_all_sleepdeps(struct clockdomain *clkdm) argument 177 for (cd = clkdm->sleepdep_srcs; cd && cd->clkdm_name; cd++) { 178 if (!cd->clkdm) 181 mask |= 1 << cd->clkdm->dep_bit; 184 omap2_cm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs, 189 static int omap3xxx_clkdm_sleep(struct clockdomain *clkdm) argument 191 omap3xxx_cm_clkdm_force_sleep(clkdm->pwrdm.ptr->prcm_offs, 192 clkdm->clktrctrl_mask); 196 static int omap3xxx_clkdm_wakeup(struct clockdomain *clkdm) argument 198 omap3xxx_cm_clkdm_force_wakeup(clkdm 203 omap3xxx_clkdm_allow_idle(struct clockdomain *clkdm) argument 212 omap3xxx_clkdm_deny_idle(struct clockdomain *clkdm) argument 221 omap3xxx_clkdm_clk_enable(struct clockdomain *clkdm) argument 257 omap3xxx_clkdm_clk_disable(struct clockdomain *clkdm) argument [all...] |
H A D | cm2xxx.c | 171 static void omap2xxx_clkdm_allow_idle(struct clockdomain *clkdm) argument 173 omap2xxx_cm_clkdm_enable_hwsup(clkdm->pwrdm.ptr->prcm_offs, 174 clkdm->clktrctrl_mask); 177 static void omap2xxx_clkdm_deny_idle(struct clockdomain *clkdm) argument 179 omap2xxx_cm_clkdm_disable_hwsup(clkdm->pwrdm.ptr->prcm_offs, 180 clkdm->clktrctrl_mask); 183 static int omap2xxx_clkdm_clk_enable(struct clockdomain *clkdm) argument 187 if (!clkdm->clktrctrl_mask) 190 hwsup = omap2xxx_cm_is_clkdm_in_hwsup(clkdm->pwrdm.ptr->prcm_offs, 191 clkdm 198 omap2xxx_clkdm_clk_disable(struct clockdomain *clkdm) argument [all...] |
H A D | omap-iommu.c | 57 struct clockdomain *clkdm; local 90 clkdm = clkdm_lookup(hwclk->clkdm_name); 91 if (!clkdm) { 92 dev_err(dev, "clkdm not found: %s\n", hwclk->clkdm_name); 96 pwrdm = clkdm_get_pwrdm(clkdm); 98 dev_err(dev, "pwrdm not found: %s\n", clkdm->name);
|
H A D | pm-debug.c | 67 static int clkdm_dbg_show_counter(struct clockdomain *clkdm, void *user) argument 71 if (strcmp(clkdm->name, "emu_clkdm") == 0 || 72 strcmp(clkdm->name, "wkup_clkdm") == 0 || 73 strncmp(clkdm->name, "dpll", 4) == 0) 76 seq_printf(s, "%s->%s (%d)\n", clkdm->name, clkdm->pwrdm.ptr->name, 77 clkdm->usecount);
|
H A D | prm2xxx.c | 133 int omap2xxx_clkdm_sleep(struct clockdomain *clkdm) argument 136 clkdm->pwrdm.ptr->prcm_offs, 141 int omap2xxx_clkdm_wakeup(struct clockdomain *clkdm) argument 144 clkdm->pwrdm.ptr->prcm_offs,
|
H A D | pm.c | 67 int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused) argument 69 clkdm_allow_idle(clkdm);
|
H A D | prm2xxx_3xxx.c | 218 /* XXX Caller must hold the clkdm's powerdomain lock */ 219 int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm) argument 224 for (cd = clkdm->wkdep_srcs; cd && cd->clkdm_name; cd++) { 225 if (!cd->clkdm) 229 mask |= 1 << cd->clkdm->dep_bit; 233 omap2_prm_clear_mod_reg_bits(mask, clkdm->pwrdm.ptr->prcm_offs,
|
H A D | omap_hwmod.c | 633 if (oh->clkdm) { 634 return oh->clkdm; 639 return clk->clkdm; 659 struct clockdomain *clkdm, *init_clkdm; local 661 clkdm = _get_clkdm(oh); 664 if (!clkdm || !init_clkdm) 667 if (clkdm && clkdm->flags & CLKDM_NO_AUTODEPS) 670 return clkdm_add_sleepdep(clkdm, init_clkdm); 688 struct clockdomain *clkdm, *init_clkd local 1176 struct clockdomain *clkdm; local 3381 omap_hwmod_allocate_module(struct device *dev, struct omap_hwmod *oh, const struct ti_sysc_module_data *data, struct sysc_regbits *sysc_fields, struct clockdomain *clkdm, s32 rev_offs, s32 sysc_offs, s32 syss_offs, u32 sysc_flags, u32 idlemodes) argument [all...] |
H A D | pdata-quirks.c | 303 struct clockdomain *clkdm = NULL; local 311 clkdm = clkdm_lookup(hwclk->clkdm_name); 313 return clkdm; 335 cookie->clkdm = ti_sysc_find_one_clockdomain(fck); 336 if (cookie->clkdm) 339 cookie->clkdm = ti_sysc_find_one_clockdomain(ick); 340 if (cookie->clkdm) 349 if (cookie->clkdm) 350 clkdm_deny_idle(cookie->clkdm); 356 if (cookie->clkdm) [all...] |
H A D | clockdomains3xxx_data.c | 299 * XXX add usecounting for clkdm dependencies, otherwise the presence 312 * XXX add usecounting for clkdm dependencies, otherwise the presence 431 .clkdm = { .name = "mpu_clkdm" }, 434 .clkdm = { .name = "iva2_clkdm" }, 437 .clkdm = { .name = NULL }, 443 .clkdm = { .name = "mpu_clkdm" }, 446 .clkdm = { .name = NULL },
|
H A D | prm2xxx.h | 121 extern int omap2xxx_clkdm_sleep(struct clockdomain *clkdm); 122 extern int omap2xxx_clkdm_wakeup(struct clockdomain *clkdm);
|
H A D | pm.h | 33 extern int omap_pm_clkdms_setup(struct clockdomain *clkdm, void *unused);
|
H A D | powerdomain.c | 258 * _pwrdm_restore_clkdm_state - restore the clkdm hwsup state after pwrst change 458 * @clkdm: struct clockdomain * to associate with a powerdomain 460 * Associate the clockdomain @clkdm with a powerdomain @pwrdm. This 465 int pwrdm_add_clkdm(struct powerdomain *pwrdm, struct clockdomain *clkdm) argument 470 if (!pwrdm || !clkdm) 474 pwrdm->name, clkdm->name); 480 if (pwrdm->pwrdm_clkdms[i] == clkdm) { 488 pr_debug("powerdomain: %s: increase PWRDM_MAX_CLKDMS for clkdm %s\n", 489 pwrdm->name, clkdm->name); 495 pwrdm->pwrdm_clkdms[i] = clkdm; [all...] |
H A D | prm2xxx_3xxx.h | 122 extern int omap2_clkdm_clear_all_wkdeps(struct clockdomain *clkdm);
|
/linux-master/drivers/clk/ti/ |
H A D | clockdomain.c | 23 * omap2_clkops_enable_clkdm - increment usecount on clkdm of @hw 41 if (unlikely(!clk->clkdm)) { 42 pr_err("%s: %s: no clkdm set ?!\n", __func__, 53 ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk); 61 * omap2_clkops_disable_clkdm - decrement usecount on clkdm of @hw 75 if (unlikely(!clk->clkdm)) { 76 pr_err("%s: %s: no clkdm set ?!\n", __func__, 87 ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk); 101 struct clockdomain *clkdm; local 109 clkdm [all...] |
H A D | clkt_dflt.c | 208 if (clkdm_control && clk->clkdm) { 209 ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk); 259 clk->clkdm) 260 ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk);
|
H A D | clkctrl.c | 137 if (clk->clkdm) { 138 ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk); 200 if (clk->clkdm) 201 ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk); 612 * Create default clkdm name, replace _cm from end of parent 624 * Create default clkdm name, replace _clkctrl from end of 630 strcat(provider->clkdm_name, "clkdm"); 632 /* Replace any dash from the clkdm name with underscore */
|
/linux-master/include/linux/clk/ |
H A D | ti.h | 163 * @clkdm: pointer to struct clockdomain, resolved from @clkdm_name at runtime 177 struct clockdomain *clkdm; member in struct:clk_hw_omap 251 int (*clkdm_clk_enable)(struct clockdomain *clkdm, struct clk *clk); 252 int (*clkdm_clk_disable)(struct clockdomain *clkdm,
|
/linux-master/drivers/pmdomain/ti/ |
H A D | omap_prm.c | 77 struct clockdomain *clkdm; member in struct:omap_reset_data 819 if (reset->clkdm) 820 pdata->clkdm_deny_idle(reset->clkdm); 849 if (reset->clkdm) 850 pdata->clkdm_allow_idle(reset->clkdm); 917 reset->clkdm = pdata->clkdm_lookup(buf); 918 if (!reset->clkdm)
|