Lines Matching refs:clk
12 #include <clk.h>
13 #include <clk-uclass.h>
19 #include <linux/clk-provider.h>
22 #include "clk.h"
26 static ulong clk_factor_recalc_rate(struct clk *clk)
28 struct clk_fixed_factor *fix = to_clk_fixed_factor(clk);
29 unsigned long parent_rate = clk_get_parent_rate(clk);
41 struct clk *clk_hw_register_fixed_factor(struct device *dev,
46 struct clk *clk;
56 clk = &fix->clk;
57 clk->flags = flags;
59 ret = clk_register(clk, UBOOT_DM_CLK_IMX_FIXED_FACTOR, name,
66 return clk;
69 struct clk *clk_register_fixed_factor(struct device *dev, const char *name,
73 struct clk *clk;
75 clk = clk_hw_register_fixed_factor(dev, name, parent_name, flags, mult,
77 if (IS_ERR(clk))
78 return ERR_CAST(clk);
79 return clk;