Lines Matching full:refclk
559 err = clk_enable(cpts->refclk); in cpts_register()
580 clk_disable(cpts->refclk); in cpts_register()
600 clk_disable(cpts->refclk); in cpts_unregister()
609 freq = clk_get_rate(cpts->refclk); in cpts_calc_mult_shift()
660 refclk_np = of_get_child_by_name(node, "cpts-refclk-mux"); in cpts_of_mux_clk_setup()
662 /* refclk selection supported not for all SoCs */ in cpts_of_mux_clk_setup()
767 cpts->refclk = devm_get_clk_from_child(dev, node, "cpts"); in cpts_create()
768 if (IS_ERR(cpts->refclk)) in cpts_create()
770 cpts->refclk = devm_clk_get(dev, "cpts"); in cpts_create()
772 if (IS_ERR(cpts->refclk)) { in cpts_create()
773 dev_err(dev, "Failed to get cpts refclk %ld\n", in cpts_create()
774 PTR_ERR(cpts->refclk)); in cpts_create()
775 return ERR_CAST(cpts->refclk); in cpts_create()
778 ret = clk_prepare(cpts->refclk); in cpts_create()
805 if (WARN_ON(!cpts->refclk)) in cpts_release()
808 clk_unprepare(cpts->refclk); in cpts_release()