Lines Matching full:spi_clk
139 * @spi_clk: Peripheral clock
161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1207 mdata->spi_clk = devm_clk_get(dev, "spi-clk"); in mtk_spi_probe()
1208 if (IS_ERR(mdata->spi_clk)) in mtk_spi_probe()
1209 return dev_err_probe(dev, PTR_ERR(mdata->spi_clk), "failed to get spi-clk\n"); in mtk_spi_probe()
1223 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_probe()
1226 return dev_err_probe(dev, ret, "failed to enable spi_clk\n"); in mtk_spi_probe()
1229 mdata->spi_clk_hz = clk_get_rate(mdata->spi_clk); in mtk_spi_probe()
1232 clk_disable(mdata->spi_clk); in mtk_spi_probe()
1235 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe()
1296 clk_unprepare(mdata->spi_clk); in mtk_spi_remove()
1317 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_suspend()
1331 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_resume()
1333 dev_err(dev, "failed to enable spi_clk (%d)\n", ret); in mtk_spi_resume()
1340 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_resume()
1347 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_resume()
1362 clk_disable(mdata->spi_clk); in mtk_spi_runtime_suspend()
1365 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_runtime_suspend()
1379 ret = clk_enable(mdata->spi_clk); in mtk_spi_runtime_resume()
1381 dev_err(dev, "failed to enable spi_clk (%d)\n", ret); in mtk_spi_runtime_resume()
1387 clk_disable(mdata->spi_clk); in mtk_spi_runtime_resume()
1391 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_runtime_resume()
1393 dev_err(dev, "failed to prepare_enable spi_clk (%d)\n", ret); in mtk_spi_runtime_resume()
1400 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_runtime_resume()