Searched refs:spi_clk (Results 1 – 10 of 10) sorted by relevance
/drivers/spi/ |
D | spi-slave-mt27xx.c | 69 struct clk *spi_clk; member 442 mdata->spi_clk = devm_clk_get(&pdev->dev, "spi"); in mtk_spi_slave_probe() 443 if (IS_ERR(mdata->spi_clk)) { in mtk_spi_slave_probe() 444 ret = PTR_ERR(mdata->spi_clk); in mtk_spi_slave_probe() 449 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_slave_probe() 461 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_probe() 465 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_probe() 496 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_suspend() 508 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_slave_resume() 517 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_resume() [all …]
|
D | spi-clps711x.c | 27 struct clk *spi_clk; member 54 clk_set_rate(hw->spi_clk, xfer->speed_hz ? : spi->max_speed_hz); in spi_clps711x_transfer_one() 114 hw->spi_clk = devm_clk_get(&pdev->dev, NULL); in spi_clps711x_probe() 115 if (IS_ERR(hw->spi_clk)) { in spi_clps711x_probe() 116 ret = PTR_ERR(hw->spi_clk); in spi_clps711x_probe()
|
D | spi-mt65xx.c | 106 struct clk *parent_clk, *sel_clk, *spi_clk; member 827 mdata->spi_clk = devm_clk_get(&pdev->dev, "spi-clk"); in mtk_spi_probe() 828 if (IS_ERR(mdata->spi_clk)) { in mtk_spi_probe() 829 ret = PTR_ERR(mdata->spi_clk); in mtk_spi_probe() 834 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_probe() 843 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe() 847 mdata->spi_clk_hz = clk_get_rate(mdata->spi_clk); in mtk_spi_probe() 850 clk_disable(mdata->spi_clk); in mtk_spi_probe() 852 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe() 924 clk_unprepare(mdata->spi_clk); in mtk_spi_remove() [all …]
|
D | spi-lantiq-ssc.c | 168 struct clk *spi_clk; member 269 u32 spi_clk, brt; in hw_setup_speed_hz() local 279 spi_clk = clk_get_rate(spi->fpi_clk) / 2; in hw_setup_speed_hz() 281 if (max_speed_hz > spi_clk) in hw_setup_speed_hz() 284 brt = spi_clk / max_speed_hz - 1; in hw_setup_speed_hz() 290 spi_clk, max_speed_hz, brt); in hw_setup_speed_hz() 940 spi->spi_clk = devm_clk_get(dev, "gate"); in lantiq_ssc_probe() 941 if (IS_ERR(spi->spi_clk)) { in lantiq_ssc_probe() 942 err = PTR_ERR(spi->spi_clk); in lantiq_ssc_probe() 945 err = clk_prepare_enable(spi->spi_clk); in lantiq_ssc_probe() [all …]
|
D | spi-mtk-nor.c | 104 struct clk *spi_clk; member 674 clk_disable_unprepare(sp->spi_clk); in mtk_nor_disable_clk() 683 ret = clk_prepare_enable(sp->spi_clk); in mtk_nor_enable_clk() 689 clk_disable_unprepare(sp->spi_clk); in mtk_nor_enable_clk() 695 clk_disable_unprepare(sp->spi_clk); in mtk_nor_enable_clk() 758 struct clk *spi_clk, *ctlr_clk, *axi_clk; in mtk_nor_probe() local 766 spi_clk = devm_clk_get(&pdev->dev, "spi"); in mtk_nor_probe() 767 if (IS_ERR(spi_clk)) in mtk_nor_probe() 768 return PTR_ERR(spi_clk); in mtk_nor_probe() 808 sp->spi_clk = spi_clk; in mtk_nor_probe() [all …]
|
D | spi-xlp.c | 100 u32 spi_clk; /* spi clock frequency */ member 147 fdiv = DIV_ROUND_UP(xspi->spi_clk, spi->max_speed_hz); in xlp_spi_setup() 400 xspi->spi_clk = clk_get_rate(clk); in xlp_spi_probe()
|
D | spi-at91-usart.c | 97 u32 spi_clk; member 331 DIV_ROUND_UP(aus->spi_clk, xfer->speed_hz)); in at91_usart_spi_set_xfer_speed() 580 aus->spi_clk = clk_get_rate(clk); in at91_usart_spi_probe()
|
D | spi-imx.c | 98 unsigned long spi_clk; member 452 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv() 748 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, spi_imx->spi_bus_clk, &clk) << in mx31_prepare_transfer() 853 reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, spi_imx->spi_bus_clk, max, &clk) in mx21_prepare_transfer() 927 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, spi_imx->spi_bus_clk, &clk) << in mx1_prepare_transfer() 1728 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe()
|
D | spi-axi-spi-engine.c | 169 unsigned int spi_clk = clk_get_rate(spi_engine->ref_clk); in spi_engine_gen_sleep() local 181 t = DIV_ROUND_UP(delay * spi_clk, (clk_div + 1) * 2); in spi_engine_gen_sleep()
|
D | spi-atmel.c | 261 unsigned long spi_clk; member 815 bus_hz = as->spi_clk; in atmel_spi_set_xfer_speed() 1155 return (as->spi_clk / 1000000 * value) >> 5; in atmel_word_delay_csr() 1563 as->spi_clk = clk_get_rate(clk); in atmel_spi_probe()
|