Lines Matching full:ref_clk
103 * @ref_clk: Pointer to the peripheral clock
105 * @clk_rate: Reference clock frequency, taken from @ref_clk
117 struct clk *ref_clk; member
598 xspi->ref_clk = devm_clk_get(&pdev->dev, "ref_clk"); in cdns_spi_probe()
599 if (IS_ERR(xspi->ref_clk)) { in cdns_spi_probe()
600 dev_err(&pdev->dev, "ref_clk clock not found.\n"); in cdns_spi_probe()
601 ret = PTR_ERR(xspi->ref_clk); in cdns_spi_probe()
605 ret = clk_prepare_enable(xspi->ref_clk); in cdns_spi_probe()
660 xspi->clk_rate = clk_get_rate(xspi->ref_clk); in cdns_spi_probe()
682 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_probe()
706 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_remove()
767 ret = clk_prepare_enable(xspi->ref_clk); in cdns_spi_runtime_resume()
789 clk_disable_unprepare(xspi->ref_clk); in cdns_spi_runtime_suspend()