Lines Matching refs:clk
39 #include <dev/clk/clk_backend.h>
46 static struct clk *ti_comp_clock_decode(device_t, int, const void *, size_t);
52 static struct clk *ti_comp_clock_get(void *, const char *);
53 static void ti_comp_clock_put(void *, struct clk *);
54 static u_int ti_comp_clock_get_rate(void *, struct clk *);
55 static int ti_comp_clock_enable(void *, struct clk *);
56 static int ti_comp_clock_disable(void *, struct clk *);
57 static struct clk *ti_comp_clock_get_parent(void *, struct clk *);
58 static int ti_comp_clock_set_parent(void *, struct clk *, struct clk *);
75 struct clk sc_clk;
123 static struct clk *
132 static struct clk *
141 ti_comp_clock_put(void *priv, struct clk *clk)
146 ti_comp_clock_get_rate(void *priv, struct clk *clk)
148 struct clk *clk_parent = clk_get_parent(clk);
157 ti_comp_clock_enable(void *priv, struct clk *clk)
160 struct clk *clk_gate = fdtbus_clock_get_index(sc->sc_phandle, 0);
166 ti_comp_clock_disable(void *priv, struct clk *clk)
169 struct clk *clk_gate = fdtbus_clock_get_index(sc->sc_phandle, 0);
174 static struct clk *
175 ti_comp_clock_get_parent(void *priv, struct clk *clk)
183 ti_comp_clock_set_parent(void *priv, struct clk *clk, struct clk *parent_clk)
185 return clk_set_parent(clk, parent_clk);