Searched refs:src_clk (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/drivers/spi/ |
D | spi-s3c64xx.c | 174 struct clk *src_clk; member 601 clk_set_rate(sdd->src_clk, sdd->cur_speed * 2); in s3c64xx_spi_config() 606 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / 2 - 1) in s3c64xx_spi_config() 819 speed = clk_get_rate(sdd->src_clk) / 2 / (0 + 1); in s3c64xx_spi_setup() 824 psr = clk_get_rate(sdd->src_clk) / 2 / spi->max_speed_hz - 1; in s3c64xx_spi_setup() 829 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup() 839 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup() 1126 sdd->src_clk = devm_clk_get(&pdev->dev, clk_name); in s3c64xx_spi_probe() 1127 if (IS_ERR(sdd->src_clk)) { in s3c64xx_spi_probe() 1130 ret = PTR_ERR(sdd->src_clk); in s3c64xx_spi_probe() [all …]
|
D | spi-sprd.c | 157 u32 src_clk; member 189 ss->src_clk); in sprd_spi_transfer_max_timeout() 665 u32 clk_div = DIV_ROUND_UP(ss->src_clk, speed_hz << 1) - 1; in sprd_spi_set_speed() 668 ss->hw_speed_hz = (ss->src_clk >> 1) / (clk_div + 1); in sprd_spi_set_speed() 881 ss->src_clk = clk_get_rate(clk_spi); in sprd_spi_clk_init() 883 ss->src_clk = SPRD_SPI_DEFAULT_SOURCE; in sprd_spi_clk_init() 946 sctlr->max_speed_hz = min_t(u32, ss->src_clk >> 1, in sprd_spi_probe()
|
/Linux-v5.4/drivers/input/serio/ |
D | sun4i-ps2.c | 145 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.4/drivers/i2c/busses/ |
D | i2c-sprd.c | 83 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.4/drivers/gpu/drm/msm/dsi/ |
D | dsi_host.c | 119 struct clk *src_clk; member 335 msm_host->src_clk = msm_clk_get(pdev, "src"); in dsi_clk_init_v2() 337 if (IS_ERR(msm_host->src_clk)) { in dsi_clk_init_v2() 338 ret = PTR_ERR(msm_host->src_clk); in dsi_clk_init_v2() 341 msm_host->src_clk = NULL; in dsi_clk_init_v2() 353 msm_host->dsi_clk_src = clk_get_parent(msm_host->src_clk); in dsi_clk_init_v2() 596 ret = clk_set_rate(msm_host->src_clk, msm_host->src_clk_rate); in dsi_link_clk_enable_v2() 620 ret = clk_prepare_enable(msm_host->src_clk); in dsi_link_clk_enable_v2() 635 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_enable_v2() 656 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_disable_v2()
|
/Linux-v5.4/drivers/mmc/host/ |
D | mtk-sd.c | 415 struct clk *src_clk; /* msdc source clock */ member 733 clk_disable_unprepare(host->src_clk); in msdc_gate_clock() 742 clk_prepare_enable(host->src_clk); in msdc_ungate_clock() 821 clk_disable_unprepare(clk_get_parent(host->src_clk)); in msdc_set_mclk() 833 clk_prepare_enable(clk_get_parent(host->src_clk)); in msdc_set_mclk() 2213 host->src_clk = devm_clk_get(&pdev->dev, "source"); in msdc_drv_probe() 2214 if (IS_ERR(host->src_clk)) { in msdc_drv_probe() 2215 ret = PTR_ERR(host->src_clk); in msdc_drv_probe() 2265 host->src_clk_freq = clk_get_rate(host->src_clk); in msdc_drv_probe()
|
/Linux-v5.4/arch/arm/boot/dts/ |
D | qcom-apq8064.dtsi | 1265 "src_clk", "byte_clk", "pixel_clk",
|