Lines Matching full:spi_clk
169 struct clk *spi_clk; member
270 u32 spi_clk, brt; in hw_setup_speed_hz() local
280 spi_clk = clk_get_rate(spi->fpi_clk) / 2; in hw_setup_speed_hz()
282 if (max_speed_hz > spi_clk) in hw_setup_speed_hz()
285 brt = spi_clk / max_speed_hz - 1; in hw_setup_speed_hz()
290 dev_dbg(spi->dev, "spi_clk %u, max_speed_hz %u, brt %u\n", in hw_setup_speed_hz()
291 spi_clk, max_speed_hz, brt); in hw_setup_speed_hz()
935 spi->spi_clk = devm_clk_get(dev, "gate"); in lantiq_ssc_probe()
936 if (IS_ERR(spi->spi_clk)) { in lantiq_ssc_probe()
937 err = PTR_ERR(spi->spi_clk); in lantiq_ssc_probe()
940 err = clk_prepare_enable(spi->spi_clk); in lantiq_ssc_probe()
1014 clk_disable_unprepare(spi->spi_clk); in lantiq_ssc_probe()
1032 clk_disable_unprepare(spi->spi_clk); in lantiq_ssc_remove()