Lines Matching full:refclk
171 struct clk *refclk; member
607 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk()
608 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk()
609 dev_err(dev, "unable to get refclk\n"); in ti_pipe3_get_clk()
610 /* older DTBs have missing refclk in SATA PHY in ti_pipe3_get_clk()
614 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk()
829 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe()
832 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe()
833 clk_prepare_enable(phy->refclk); in ti_pipe3_probe()
855 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove()
867 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks()
868 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks()
870 dev_err(phy->dev, "Failed to enable refclk %d\n", ret); in ti_pipe3_enable_clocks()
898 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks()
899 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks()
908 if (!IS_ERR(phy->refclk)) in ti_pipe3_disable_clocks()
909 clk_disable_unprepare(phy->refclk); in ti_pipe3_disable_clocks()