Lines Matching full:refclk
172 struct clk *refclk; member
608 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk()
609 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk()
610 dev_err(dev, "unable to get refclk\n"); in ti_pipe3_get_clk()
611 /* older DTBs have missing refclk in SATA PHY in ti_pipe3_get_clk()
615 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk()
817 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe()
820 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe()
821 clk_prepare_enable(phy->refclk); in ti_pipe3_probe()
843 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove()
853 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks()
854 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks()
856 dev_err(phy->dev, "Failed to enable refclk %d\n", ret); in ti_pipe3_enable_clocks()
884 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks()
885 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks()
894 if (!IS_ERR(phy->refclk)) in ti_pipe3_disable_clocks()
895 clk_disable_unprepare(phy->refclk); in ti_pipe3_disable_clocks()