Searched refs:spi_clk (Results 1 – 6 of 6) sorted by relevance
/drivers/spi/ |
D | spi-clps711x.c | 31 struct clk *spi_clk; member 77 clk_set_rate(hw->spi_clk, xfer->speed_hz ? : spi->max_speed_hz); in spi_clps711x_transfer_one() 138 hw->spi_clk = devm_clk_get(&pdev->dev, NULL); in spi_clps711x_probe() 139 if (IS_ERR(hw->spi_clk)) { in spi_clps711x_probe() 140 ret = PTR_ERR(hw->spi_clk); in spi_clps711x_probe()
|
D | spi-mt65xx.c | 90 struct clk *parent_clk, *sel_clk, *spi_clk; member 227 spi_clk_hz = clk_get_rate(mdata->spi_clk); in mtk_spi_prepare_transfer() 610 mdata->spi_clk = devm_clk_get(&pdev->dev, "spi-clk"); in mtk_spi_probe() 611 if (IS_ERR(mdata->spi_clk)) { in mtk_spi_probe() 612 ret = PTR_ERR(mdata->spi_clk); in mtk_spi_probe() 617 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_probe() 626 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe() 630 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe() 704 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_suspend() 716 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_resume() [all …]
|
D | spi-xlp.c | 108 u32 spi_clk; /* spi clock frequency */ member 155 fdiv = DIV_ROUND_UP(xspi->spi_clk, spi->max_speed_hz); in xlp_spi_setup() 412 xspi->spi_clk = clk_get_rate(clk); in xlp_spi_probe()
|
D | spi-imx.c | 94 unsigned long spi_clk; member 284 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv() 492 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, config->speed_hz, &clk) << in mx31_config() 578 reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, config->speed_hz, max) << in mx21_config() 644 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, config->speed_hz, &clk) << in mx1_config() 1245 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 175 t = DIV_ROUND_UP(delay * spi_clk, (clk_div + 1) * 2); in spi_engine_gen_sleep()
|
/drivers/mtd/spi-nor/ |
D | mtk-quadspi.c | 116 struct clk *spi_clk; member 431 mt8173_nor->spi_clk = devm_clk_get(&pdev->dev, "spi"); in mtk_nor_drv_probe() 432 if (IS_ERR(mt8173_nor->spi_clk)) in mtk_nor_drv_probe() 433 return PTR_ERR(mt8173_nor->spi_clk); in mtk_nor_drv_probe() 440 ret = clk_prepare_enable(mt8173_nor->spi_clk); in mtk_nor_drv_probe() 446 clk_disable_unprepare(mt8173_nor->spi_clk); in mtk_nor_drv_probe() 460 clk_disable_unprepare(mt8173_nor->spi_clk); in mtk_nor_drv_probe() 470 clk_disable_unprepare(mt8173_nor->spi_clk); in mtk_nor_drv_remove()
|