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()
830 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe()
833 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe()
834 clk_prepare_enable(phy->refclk); in ti_pipe3_probe()
856 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove()
866 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks()
867 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks()
869 dev_err(phy->dev, "Failed to enable refclk %d\n", ret); in ti_pipe3_enable_clocks()
897 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks()
898 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks()
907 if (!IS_ERR(phy->refclk)) in ti_pipe3_disable_clocks()
908 clk_disable_unprepare(phy->refclk); in ti_pipe3_disable_clocks()