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()
823 * Prevent auto-disable of refclk for SATA PHY due to Errata i783 in ti_pipe3_probe()
826 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe()
827 clk_prepare_enable(phy->refclk); in ti_pipe3_probe()
849 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove()
861 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks()
862 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks()
864 dev_err(phy->dev, "Failed to enable refclk %d\n", ret); in ti_pipe3_enable_clocks()
892 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks()
893 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks()
902 if (!IS_ERR(phy->refclk)) in ti_pipe3_disable_clocks()
903 clk_disable_unprepare(phy->refclk); in ti_pipe3_disable_clocks()