Lines Matching refs:spi_hclk
161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1211 mdata->spi_hclk = devm_clk_get_optional(dev, "hclk"); in mtk_spi_probe()
1212 if (IS_ERR(mdata->spi_hclk)) in mtk_spi_probe()
1213 return dev_err_probe(dev, PTR_ERR(mdata->spi_hclk), "failed to get hclk\n"); in mtk_spi_probe()
1219 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_probe()
1225 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_probe()
1233 clk_disable(mdata->spi_hclk); in mtk_spi_probe()
1236 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_probe()
1297 clk_unprepare(mdata->spi_hclk); in mtk_spi_remove()
1318 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_suspend()
1337 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_resume()
1348 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_resume()
1363 clk_disable(mdata->spi_hclk); in mtk_spi_runtime_suspend()
1366 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_runtime_suspend()
1384 ret = clk_enable(mdata->spi_hclk); in mtk_spi_runtime_resume()
1397 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_runtime_resume()