Searched refs:src_clk (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/watchdog/ |
D | s3c2410_wdt.c | 168 struct clk *src_clk; /* for WDT counter */ member 300 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq() 747 wdt->src_clk = devm_clk_get_optional(dev, "watchdog_src"); in s3c2410wdt_probe() 748 if (IS_ERR(wdt->src_clk)) { in s3c2410wdt_probe() 749 dev_err_probe(dev, PTR_ERR(wdt->src_clk), in s3c2410wdt_probe() 751 ret = PTR_ERR(wdt->src_clk); in s3c2410wdt_probe() 755 ret = clk_prepare_enable(wdt->src_clk); in s3c2410wdt_probe() 846 clk_disable_unprepare(wdt->src_clk); in s3c2410wdt_probe() 867 clk_disable_unprepare(wdt->src_clk); in s3c2410wdt_remove()
|
/linux-6.1.9/drivers/spi/ |
D | spi-s3c64xx.c | 184 struct clk *src_clk; member 675 ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * div); in s3c64xx_spi_config() 678 sdd->cur_speed = clk_get_rate(sdd->src_clk) / div; in s3c64xx_spi_config() 683 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / div - 1) in s3c64xx_spi_config() 910 speed = clk_get_rate(sdd->src_clk) / div / (0 + 1); in s3c64xx_spi_setup() 915 psr = clk_get_rate(sdd->src_clk) / div / spi->max_speed_hz - 1; in s3c64xx_spi_setup() 920 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup() 930 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup() 1204 sdd->src_clk = devm_clk_get(&pdev->dev, clk_name); in s3c64xx_spi_probe() 1205 if (IS_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() 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-6.1.9/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-6.1.9/drivers/i2c/busses/ |
D | i2c-sprd.c | 85 u32 src_clk; member 324 u32 apb_clk = i2c_dev->src_clk; in sprd_i2c_set_clk() 466 i2c_dev->src_clk = clk_get_rate(clk_i2c); in sprd_i2c_clk_init() 468 i2c_dev->src_clk = 26000000; in sprd_i2c_clk_init() 471 i2c_dev->adap.nr, i2c_dev->src_clk); in sprd_i2c_clk_init()
|
/linux-6.1.9/drivers/gpu/drm/msm/dsi/ |
D | dsi_host.c | 129 struct clk *src_clk; member 262 msm_host->src_clk = msm_clk_get(pdev, "src"); in dsi_clk_init_v2() 264 if (IS_ERR(msm_host->src_clk)) { in dsi_clk_init_v2() 265 ret = PTR_ERR(msm_host->src_clk); in dsi_clk_init_v2() 268 msm_host->src_clk = NULL; in dsi_clk_init_v2() 280 msm_host->dsi_clk_src = clk_get_parent(msm_host->src_clk); in dsi_clk_init_v2() 500 ret = clk_set_rate(msm_host->src_clk, msm_host->src_clk_rate); in dsi_link_clk_set_rate_v2() 531 ret = clk_prepare_enable(msm_host->src_clk); in dsi_link_clk_enable_v2() 546 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_enable_v2() 568 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_disable_v2()
|
/linux-6.1.9/drivers/mmc/host/ |
D | mtk-sd.c | 450 struct clk *src_clk; /* msdc source clock */ member 830 clk_disable_unprepare(host->src_clk); in msdc_gate_clock() 842 clk_prepare_enable(host->src_clk); in msdc_ungate_clock() 2561 host->src_clk = devm_clk_get(&pdev->dev, "source"); in msdc_of_clock_parse() 2562 if (IS_ERR(host->src_clk)) in msdc_of_clock_parse() 2563 return PTR_ERR(host->src_clk); in msdc_of_clock_parse() 2586 host->src_clk_cg = clk_get_parent(host->src_clk); in msdc_of_clock_parse() 2704 host->src_clk_freq = clk_get_rate(host->src_clk); in msdc_drv_probe()
|