Lines Matching refs:spi_hclk
161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1213 mdata->spi_hclk = devm_clk_get_optional(dev, "hclk"); in mtk_spi_probe()
1214 if (IS_ERR(mdata->spi_hclk)) in mtk_spi_probe()
1215 return dev_err_probe(dev, PTR_ERR(mdata->spi_hclk), "failed to get hclk\n"); in mtk_spi_probe()
1221 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_probe()
1227 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_probe()
1235 clk_disable(mdata->spi_hclk); in mtk_spi_probe()
1238 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_probe()
1286 clk_unprepare(mdata->spi_hclk); in mtk_spi_remove()
1308 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_suspend()
1327 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_resume()
1338 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_resume()
1353 clk_disable(mdata->spi_hclk); in mtk_spi_runtime_suspend()
1356 clk_disable_unprepare(mdata->spi_hclk); in mtk_spi_runtime_suspend()
1374 ret = clk_enable(mdata->spi_hclk); in mtk_spi_runtime_resume()
1387 ret = clk_prepare_enable(mdata->spi_hclk); in mtk_spi_runtime_resume()