Lines Matching refs:spi_hclk
164 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1249 mdata->spi_hclk = devm_clk_get_optional(dev, "hclk"); in mtk_spi_probe()
1250 if (IS_ERR(mdata->spi_hclk)) in mtk_spi_probe()
1251 return dev_err_probe(dev, PTR_ERR(mdata->spi_hclk), "failed to get hclk\n"); in mtk_spi_probe()
1257 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_probe()
1263 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_probe()
1271 clk_disable(mdata->spi_hclk); in mtk_spi_probe()
1274 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_probe()
1339 clk_unprepare(mdata->spi_hclk); in mtk_spi_remove()
1360 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_suspend()
1383 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_resume()
1394 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_resume()
1409 clk_disable(mdata->spi_hclk); in mtk_spi_runtime_suspend()
1412 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_runtime_suspend()
1430 ret = clk_enable(mdata->spi_hclk); in mtk_spi_runtime_resume()
1443 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_runtime_resume()