Lines Matching full:refclk
134 struct clk *refclk; member
448 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk()
449 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk()
450 dev_err(dev, "unable to get refclk\n"); in ti_pipe3_get_clk()
451 /* older DTBs have missing refclk in SATA PHY in ti_pipe3_get_clk()
455 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk()
673 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe()
676 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe()
677 clk_prepare_enable(phy->refclk); in ti_pipe3_probe()
705 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks()
706 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks()
708 dev_err(phy->dev, "Failed to enable refclk %d\n", ret); in ti_pipe3_enable_clocks()
736 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks()
737 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks()
746 if (!IS_ERR(phy->refclk)) { in ti_pipe3_disable_clocks()
747 clk_disable_unprepare(phy->refclk); in ti_pipe3_disable_clocks()
749 * SATA refclk needs an additional disable as we left it in ti_pipe3_disable_clocks()
753 clk_disable_unprepare(phy->refclk); in ti_pipe3_disable_clocks()