Lines Matching full:refclk
150 struct clk *refclk;
913 unsigned long refclk,
944 fin = DIV_ROUND_CLOSEST(refclk, p);
1318 tc358746_init_output_port(struct tc358746 *tc358746, unsigned long refclk)
1354 tc358746->pll_rate = tc358746_find_pll_settings(tc358746, refclk,
1512 unsigned long refclk;
1525 tc358746->refclk = devm_clk_get(dev, "refclk");
1526 if (IS_ERR(tc358746->refclk))
1527 return dev_err_probe(dev, PTR_ERR(tc358746->refclk),
1528 "Failed to get refclk\n");
1530 err = clk_prepare_enable(tc358746->refclk);
1533 "Failed to enable refclk\n");
1535 refclk = clk_get_rate(tc358746->refclk);
1536 clk_disable_unprepare(tc358746->refclk);
1538 if (refclk < 6 * HZ_PER_MHZ || refclk > 40 * HZ_PER_MHZ)
1539 return dev_err_probe(dev, -EINVAL, "Invalid refclk range\n");
1559 err = tc358746_init_output_port(tc358746, refclk);
1634 clk_prepare_enable(tc358746->refclk);
1642 clk_disable_unprepare(tc358746->refclk);
1669 err = clk_prepare_enable(tc358746->refclk);
1687 clk_disable_unprepare(tc358746->refclk);