Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/watchdog/
Ds3c2410_wdt.c164 struct clk *src_clk; /* for WDT counter */ member
270 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq()
714 wdt->src_clk = devm_clk_get_optional(dev, "watchdog_src"); in s3c2410wdt_probe()
715 if (IS_ERR(wdt->src_clk)) { in s3c2410wdt_probe()
716 dev_err_probe(dev, PTR_ERR(wdt->src_clk), in s3c2410wdt_probe()
718 ret = PTR_ERR(wdt->src_clk); in s3c2410wdt_probe()
722 ret = clk_prepare_enable(wdt->src_clk); in s3c2410wdt_probe()
813 clk_disable_unprepare(wdt->src_clk); in s3c2410wdt_probe()
834 clk_disable_unprepare(wdt->src_clk); in s3c2410wdt_remove()
/linux-5.19.10/drivers/spi/
Dspi-s3c64xx.c178 struct clk *src_clk; member
626 ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * 2); in s3c64xx_spi_config()
629 sdd->cur_speed = clk_get_rate(sdd->src_clk) / 2; in s3c64xx_spi_config()
634 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / 2 - 1) in s3c64xx_spi_config()
851 speed = clk_get_rate(sdd->src_clk) / 2 / (0 + 1); in s3c64xx_spi_setup()
856 psr = clk_get_rate(sdd->src_clk) / 2 / spi->max_speed_hz - 1; in s3c64xx_spi_setup()
861 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup()
871 speed = clk_get_rate(sdd->src_clk) / 2 / (psr + 1); in s3c64xx_spi_setup()
1141 sdd->src_clk = devm_clk_get(&pdev->dev, clk_name); in s3c64xx_spi_probe()
1142 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-5.19.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-5.19.10/drivers/i2c/busses/
Di2c-sprd.c85 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-5.19.10/drivers/gpu/drm/msm/dsi/
Ddsi_host.c126 struct clk *src_clk; member
334 msm_host->src_clk = msm_clk_get(pdev, "src"); in dsi_clk_init_v2()
336 if (IS_ERR(msm_host->src_clk)) { in dsi_clk_init_v2()
337 ret = PTR_ERR(msm_host->src_clk); in dsi_clk_init_v2()
340 msm_host->src_clk = NULL; in dsi_clk_init_v2()
352 msm_host->dsi_clk_src = clk_get_parent(msm_host->src_clk); in dsi_clk_init_v2()
572 ret = clk_set_rate(msm_host->src_clk, msm_host->src_clk_rate); in dsi_link_clk_set_rate_v2()
603 ret = clk_prepare_enable(msm_host->src_clk); in dsi_link_clk_enable_v2()
618 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_enable_v2()
640 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_disable_v2()
/linux-5.19.10/drivers/mmc/host/
Dmtk-sd.c447 struct clk *src_clk; /* msdc source clock */ member
812 clk_disable_unprepare(host->src_clk); in msdc_gate_clock()
824 clk_prepare_enable(host->src_clk); in msdc_ungate_clock()
2514 host->src_clk = devm_clk_get(&pdev->dev, "source"); in msdc_of_clock_parse()
2515 if (IS_ERR(host->src_clk)) in msdc_of_clock_parse()
2516 return PTR_ERR(host->src_clk); in msdc_of_clock_parse()
2539 host->src_clk_cg = clk_get_parent(host->src_clk); in msdc_of_clock_parse()
2645 host->src_clk_freq = clk_get_rate(host->src_clk); in msdc_drv_probe()