Lines Matching defs:clk
18 #include <linux/clk.h>
19 #include <linux/clk-provider.h>
23 #include <linux/clk/ti.h>
44 struct clk_hw_omap *clk;
47 clk = to_clk_hw_omap(hw);
49 if (unlikely(!clk->clkdm)) {
61 ret = ti_clk_ll_ops->clkdm_clk_enable(clk->clkdm, hw->clk);
63 __func__, clk_hw_get_name(hw), clk->clkdm_name, ret);
79 struct clk_hw_omap *clk;
81 clk = to_clk_hw_omap(hw);
83 if (unlikely(!clk->clkdm)) {
95 ti_clk_ll_ops->clkdm_clk_disable(clk->clkdm, hw->clk);
99 * omap2_init_clk_clkdm - look up a clockdomain name, store pointer in clk
100 * @clk: OMAP clock struct ptr to use
102 * Convert a clockdomain name stored in a struct clk 'clk' into a
103 * clockdomain pointer, and save it into the struct clk. Intended to be
108 struct clk_hw_omap *clk = to_clk_hw_omap(hw);
112 if (!clk->clkdm_name)
115 clk_name = __clk_get_name(hw->clk);
117 clkdm = ti_clk_ll_ops->clkdm_lookup(clk->clkdm_name);
119 pr_debug("clock: associated clk %s to clkdm %s\n",
120 clk_name, clk->clkdm_name);
121 clk->clkdm = clkdm;
123 pr_debug("clock: could not associate clk %s to clkdm %s\n",
124 clk_name, clk->clkdm_name);
132 struct clk *clk;
141 clk = of_clk_get(node, i);
142 if (IS_ERR(clk)) {
144 __func__, node, i, PTR_ERR(clk));
147 clk_hw = __clk_get_hw(clk);
149 pr_warn("can't setup clkdm for basic clk %s\n",
150 __clk_get_name(clk));
151 clk_put(clk);
156 clk_put(clk);