Searched refs:src_clk (Results 1 – 5 of 5) sorted by relevance
207 struct clk *src_clk; member749 ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * div); in s3c64xx_spi_config()752 sdd->cur_speed = clk_get_rate(sdd->src_clk) / div; in s3c64xx_spi_config()757 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / div - 1) in s3c64xx_spi_config()1015 speed = clk_get_rate(sdd->src_clk) / div / (0 + 1); in s3c64xx_spi_setup()1020 psr = clk_get_rate(sdd->src_clk) / div / spi->max_speed_hz - 1; in s3c64xx_spi_setup()1025 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup()1035 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup()1337 sdd->src_clk = devm_clk_get_enabled(&pdev->dev, clk_name); in s3c64xx_spi_probe()1338 if (IS_ERR(sdd->src_clk)) in s3c64xx_spi_probe()[all …]
185 struct clk *src_clk; /* for WDT counter */ member373 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq()761 wdt->src_clk = devm_clk_get_optional_enabled(dev, "watchdog_src"); in s3c2410wdt_probe()762 if (IS_ERR(wdt->src_clk)) in s3c2410wdt_probe()763 return dev_err_probe(dev, PTR_ERR(wdt->src_clk), "failed to get source clock\n"); in s3c2410wdt_probe()
143 u32 src_clk = 0; in sun4i_ps2_open() local160 src_clk = clk_get_rate(drvdata->clk); in sun4i_ps2_open()162 clk_scdf = src_clk / PS2_SAMPLE_CLK - 1; in sun4i_ps2_open()
128 struct clk *src_clk; member243 msm_host->src_clk = msm_clk_get(pdev, "src"); in dsi_clk_init_v2()245 if (IS_ERR(msm_host->src_clk)) { in dsi_clk_init_v2()246 ret = PTR_ERR(msm_host->src_clk); in dsi_clk_init_v2()249 msm_host->src_clk = NULL; in dsi_clk_init_v2()445 ret = clk_set_rate(msm_host->src_clk, msm_host->src_clk_rate); in dsi_link_clk_set_rate_v2()476 ret = clk_prepare_enable(msm_host->src_clk); in dsi_link_clk_enable_v2()491 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_enable_v2()513 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_disable_v2()
474 struct clk *src_clk; /* msdc source clock */ member897 clk_disable_unprepare(host->src_clk); in msdc_gate_clock()909 clk_prepare_enable(host->src_clk); in msdc_ungate_clock()2815 host->src_clk = devm_clk_get(&pdev->dev, "source"); in msdc_of_clock_parse()2816 if (IS_ERR(host->src_clk)) in msdc_of_clock_parse()2817 return PTR_ERR(host->src_clk); in msdc_of_clock_parse()2840 host->src_clk_cg = clk_get_parent(host->src_clk); in msdc_of_clock_parse()2953 host->src_clk_freq = clk_get_rate(host->src_clk); in msdc_drv_probe()