Lines Matching refs:refclk
150 struct clk *refclk; member
811 unsigned long refclk, in tc358746_find_pll_settings() argument
842 fin = DIV_ROUND_CLOSEST(refclk, p); in tc358746_find_pll_settings()
1307 tc358746_init_output_port(struct tc358746 *tc358746, unsigned long refclk) in tc358746_init_output_port() argument
1343 tc358746->pll_rate = tc358746_find_pll_settings(tc358746, refclk, in tc358746_init_output_port()
1504 unsigned long refclk; in tc358746_probe() local
1517 tc358746->refclk = devm_clk_get(dev, "refclk"); in tc358746_probe()
1518 if (IS_ERR(tc358746->refclk)) in tc358746_probe()
1519 return dev_err_probe(dev, PTR_ERR(tc358746->refclk), in tc358746_probe()
1522 err = clk_prepare_enable(tc358746->refclk); in tc358746_probe()
1527 refclk = clk_get_rate(tc358746->refclk); in tc358746_probe()
1528 clk_disable_unprepare(tc358746->refclk); in tc358746_probe()
1530 if (refclk < 6 * HZ_PER_MHZ || refclk > 40 * HZ_PER_MHZ) in tc358746_probe()
1551 err = tc358746_init_output_port(tc358746, refclk); in tc358746_probe()
1626 clk_prepare_enable(tc358746->refclk); in tc358746_clk_enable()
1634 clk_disable_unprepare(tc358746->refclk); in tc358746_suspend()
1661 err = clk_prepare_enable(tc358746->refclk); in tc358746_resume()
1679 clk_disable_unprepare(tc358746->refclk); in tc358746_resume()