Lines Matching refs:clk_in
118 struct clk *clk_in, *clk_can; in mpc512x_can_get_clock() local
163 clk_in = devm_clk_get(&ofdev->dev, "sys"); in mpc512x_can_get_clock()
164 if (IS_ERR(clk_in)) in mpc512x_can_get_clock()
166 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
181 clk_in = devm_clk_get(&ofdev->dev, "ref"); in mpc512x_can_get_clock()
182 if (IS_ERR(clk_in)) in mpc512x_can_get_clock()
185 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()
216 clk_in = devm_clk_get(&ofdev->dev, "sys"); in mpc512x_can_get_clock()
218 clk_in = devm_clk_get(&ofdev->dev, "ref"); in mpc512x_can_get_clock()
219 if (IS_ERR(clk_in)) in mpc512x_can_get_clock()
221 clk_set_parent(clk_can, clk_in); in mpc512x_can_get_clock()
222 freq_calc = clk_get_rate(clk_in); in mpc512x_can_get_clock()