Searched refs:src_clk (Results 1 – 10 of 10) sorted by relevance
/openbmc/u-boot/arch/arm/cpu/arm926ejs/lpc32xx/ |
H A D | clk.c | 102 unsigned int src_clk; in get_sdram_clk_rate() local 107 src_clk = get_hclk_pll_rate(); in get_sdram_clk_rate() 113 return src_clk/2; in get_sdram_clk_rate() 115 return src_clk; in get_sdram_clk_rate() 123 return src_clk/4; in get_sdram_clk_rate() 125 return src_clk/2; in get_sdram_clk_rate() 127 return src_clk; in get_sdram_clk_rate()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-s3c64xx.c | 201 struct clk *src_clk; member 706 ret = clk_set_rate(sdd->src_clk, sdd->cur_speed * div); in s3c64xx_spi_config() 709 sdd->cur_speed = clk_get_rate(sdd->src_clk) / div; in s3c64xx_spi_config() 714 val |= ((clk_get_rate(sdd->src_clk) / sdd->cur_speed / div - 1) in s3c64xx_spi_config() 972 speed = clk_get_rate(sdd->src_clk) / div / (0 + 1); in s3c64xx_spi_setup() 977 psr = clk_get_rate(sdd->src_clk) / div / spi->max_speed_hz - 1; in s3c64xx_spi_setup() 982 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup() 992 speed = clk_get_rate(sdd->src_clk) / div / (psr + 1); in s3c64xx_spi_setup() 1271 sdd->src_clk = devm_clk_get_enabled(&pdev->dev, clk_name); in s3c64xx_spi_probe() 1272 if (IS_ERR(sdd->src_clk)) in s3c64xx_spi_probe() [all …]
|
H A D | spi-sprd.c | 156 u32 src_clk; member 188 ss->src_clk); in sprd_spi_transfer_max_timeout() 657 u32 clk_div = DIV_ROUND_UP(ss->src_clk, speed_hz << 1) - 1; in sprd_spi_set_speed() 660 ss->hw_speed_hz = (ss->src_clk >> 1) / (clk_div + 1); in sprd_spi_set_speed() 882 ss->src_clk = clk_get_rate(clk_spi); in sprd_spi_clk_init() 884 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()
|
/openbmc/linux/drivers/watchdog/ |
H A D | s3c2410_wdt.c | 167 struct clk *src_clk; /* for WDT counter */ member 299 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq() 667 wdt->src_clk = devm_clk_get_optional_enabled(dev, "watchdog_src"); in s3c2410wdt_probe() 668 if (IS_ERR(wdt->src_clk)) in s3c2410wdt_probe() 669 return dev_err_probe(dev, PTR_ERR(wdt->src_clk), "failed to get source clock\n"); in s3c2410wdt_probe()
|
/openbmc/linux/drivers/input/serio/ |
H A 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()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-sprd.c | 84 u32 src_clk; member 323 u32 apb_clk = i2c_dev->src_clk; in sprd_i2c_set_clk() 465 i2c_dev->src_clk = clk_get_rate(clk_i2c); in sprd_i2c_clk_init() 467 i2c_dev->src_clk = 26000000; in sprd_i2c_clk_init() 470 i2c_dev->adap.nr, i2c_dev->src_clk); in sprd_i2c_clk_init()
|
/openbmc/u-boot/arch/arm/mach-imx/mx5/ |
H A D | clock.c | 617 #define calc_div(tgt_clk, src_clk, limit) ({ \ argument 619 if (((src_clk) % (tgt_clk)) <= 100) \ 620 v = (src_clk) / (tgt_clk); \ 622 v = ((src_clk) / (tgt_clk)) + 1;\
|
/openbmc/linux/drivers/gpu/drm/msm/dsi/ |
H A D | dsi_host.c | 129 struct clk *src_clk; member 257 msm_host->src_clk = msm_clk_get(pdev, "src"); in dsi_clk_init_v2() 259 if (IS_ERR(msm_host->src_clk)) { in dsi_clk_init_v2() 260 ret = PTR_ERR(msm_host->src_clk); in dsi_clk_init_v2() 263 msm_host->src_clk = NULL; in dsi_clk_init_v2() 459 ret = clk_set_rate(msm_host->src_clk, msm_host->src_clk_rate); in dsi_link_clk_set_rate_v2() 490 ret = clk_prepare_enable(msm_host->src_clk); in dsi_link_clk_enable_v2() 505 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_enable_v2() 527 clk_disable_unprepare(msm_host->src_clk); in dsi_link_clk_disable_v2()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mtk-sd.c | 249 struct clk src_clk; /* for SD/MMC bus clock */ member 1270 clk_enable(&host->src_clk); in msdc_ungate_clock() 1285 host->src_clk_freq = clk_get_rate(&host->src_clk); in msdc_drv_probe() 1327 ret = clk_get_by_name(dev, "source", &host->src_clk); in msdc_ofdata_to_platdata()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | mtk-sd.c | 448 struct clk *src_clk; /* msdc source clock */ member 845 clk_disable_unprepare(host->src_clk); in msdc_gate_clock() 857 clk_prepare_enable(host->src_clk); in msdc_ungate_clock() 2616 host->src_clk = devm_clk_get(&pdev->dev, "source"); in msdc_of_clock_parse() 2617 if (IS_ERR(host->src_clk)) in msdc_of_clock_parse() 2618 return PTR_ERR(host->src_clk); in msdc_of_clock_parse() 2641 host->src_clk_cg = clk_get_parent(host->src_clk); in msdc_of_clock_parse() 2758 host->src_clk_freq = clk_get_rate(host->src_clk); in msdc_drv_probe()
|