Home
last modified time | relevance | path

Searched refs:src_clk (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.10/drivers/spi/
Dspi-s3c64xx.c179 struct clk *src_clk; member
627 ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * 2); in s3c64xx_spi_config()
630 sdd->cur_speed = clk_get_rate(sdd->src_clk) / 2; in s3c64xx_spi_config()
635 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / 2 - 1) in s3c64xx_spi_config()
868 speed = clk_get_rate(sdd->src_clk) / 2 / (0 + 1); in s3c64xx_spi_setup()
873 psr = clk_get_rate(sdd->src_clk) / 2 / spi->max_speed_hz - 1; in s3c64xx_spi_setup()
878 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup()
888 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup()
1175 sdd->src_clk = devm_clk_get(&pdev->dev, clk_name); in s3c64xx_spi_probe()
1176 if (IS_ERR(sdd->src_clk)) { in s3c64xx_spi_probe()
[all …]
Dspi-sprd.c157 u32 src_clk; member
189 ss->src_clk); in sprd_spi_transfer_max_timeout()
658 u32 clk_div = DIV_ROUND_UP(ss->src_clk, speed_hz << 1) - 1; in sprd_spi_set_speed()
661 ss->hw_speed_hz = (ss->src_clk >> 1) / (clk_div + 1); in sprd_spi_set_speed()
883 ss->src_clk = clk_get_rate(clk_spi); in sprd_spi_clk_init()
885 ss->src_clk = SPRD_SPI_DEFAULT_SOURCE; in sprd_spi_clk_init()
948 sctlr->max_speed_hz = min_t(u32, ss->src_clk >> 1, in sprd_spi_probe()
/Linux-v5.10/drivers/input/serio/
Dsun4i-ps2.c145 u32 src_clk = 0; in sun4i_ps2_open() local
163 src_clk = clk_get_rate(drvdata->clk); in sun4i_ps2_open()
165 clk_scdf = src_clk / PS2_SAMPLE_CLK - 1; in sun4i_ps2_open()
/Linux-v5.10/drivers/i2c/busses/
Di2c-sprd.c83 u32 src_clk; member
318 u32 apb_clk = i2c_dev->src_clk; in sprd_i2c_set_clk()
460 i2c_dev->src_clk = clk_get_rate(clk_i2c); in sprd_i2c_clk_init()
462 i2c_dev->src_clk = 26000000; in sprd_i2c_clk_init()
465 i2c_dev->adap.nr, i2c_dev->src_clk); in sprd_i2c_clk_init()
/Linux-v5.10/drivers/gpu/drm/msm/dsi/
Ddsi_host.c123 struct clk *src_clk; member
339 msm_host->src_clk = msm_clk_get(pdev, "src"); in dsi_clk_init_v2()
341 if (IS_ERR(msm_host->src_clk)) { in dsi_clk_init_v2()
342 ret = PTR_ERR(msm_host->src_clk); in dsi_clk_init_v2()
345 msm_host->src_clk = NULL; in dsi_clk_init_v2()
357 msm_host->dsi_clk_src = clk_get_parent(msm_host->src_clk); in dsi_clk_init_v2()
609 ret = clk_set_rate(msm_host->src_clk, msm_host->src_clk_rate); in dsi_link_clk_set_rate_v2()
640 ret = clk_prepare_enable(msm_host->src_clk); in dsi_link_clk_enable_v2()
655 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_enable_v2()
678 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_disable_v2()
/Linux-v5.10/drivers/mmc/host/
Dmtk-sd.c424 struct clk *src_clk; /* msdc source clock */ member
789 clk_disable_unprepare(host->src_clk); in msdc_gate_clock()
798 clk_prepare_enable(host->src_clk); in msdc_ungate_clock()
878 clk_disable_unprepare(clk_get_parent(host->src_clk)); in msdc_set_mclk()
890 clk_prepare_enable(clk_get_parent(host->src_clk)); in msdc_set_mclk()
2409 host->src_clk = devm_clk_get(&pdev->dev, "source"); in msdc_drv_probe()
2410 if (IS_ERR(host->src_clk)) { in msdc_drv_probe()
2411 ret = PTR_ERR(host->src_clk); in msdc_drv_probe()
2465 host->src_clk_freq = clk_get_rate(host->src_clk); in msdc_drv_probe()
/Linux-v5.10/arch/arm/boot/dts/
Dqcom-apq8064.dtsi1266 "src_clk", "byte_clk", "pixel_clk",