Lines Matching refs:clk_in
116 struct clk *clk_in, *clk_can; in mpc512x_can_get_clock() local
161 clk_in = devm_clk_get(&ofdev->dev, "sys"); in mpc512x_can_get_clock()
162 if (IS_ERR(clk_in)) in mpc512x_can_get_clock()
164 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
179 clk_in = devm_clk_get(&ofdev->dev, "ref"); in mpc512x_can_get_clock()
180 if (IS_ERR(clk_in)) in mpc512x_can_get_clock()
183 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
214 clk_in = devm_clk_get(&ofdev->dev, "sys"); in mpc512x_can_get_clock()
216 clk_in = devm_clk_get(&ofdev->dev, "ref"); in mpc512x_can_get_clock()
217 if (IS_ERR(clk_in)) in mpc512x_can_get_clock()
219 clk_set_parent(clk_can, clk_in); in mpc512x_can_get_clock()
220 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()