Home
last modified time | relevance | path

Searched refs:clkin (Results 1 – 8 of 8) sorted by relevance

/linux-4.19.296/drivers/iio/frequency/
Dadf4350.c40 unsigned long clkin; member
123 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt()
280 st->clkin = readin; in adf4350_write()
329 st->clkin = clk_get_rate(st->clk); in adf4350_read()
331 val = st->clkin; in adf4350_read()
514 if (!pdata->clkin) { in adf4350_probe()
555 st->clkin = clk_get_rate(clk); in adf4350_probe()
557 st->clkin = pdata->clkin; in adf4350_probe()
/linux-4.19.296/drivers/clk/
Dclk-aspeed.c581 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local
595 clkin = 25000000; in aspeed_ast2400_cc()
598 clkin = 48000000; in aspeed_ast2400_cc()
601 clkin = 24000000; in aspeed_ast2400_cc()
604 hw = clk_hw_register_fixed_rate(NULL, "clkin", NULL, 0, clkin); in aspeed_ast2400_cc()
605 pr_debug("clkin @%u MHz\n", clkin / 1000000); in aspeed_ast2400_cc()
Dclk-cdce706.c85 struct cdce706_hw_data clkin[1]; member
313 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; in cdce706_divider_round_rate()
504 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); in cdce706_register_clkin()
507 ret = cdce706_register_hw(cdce, cdce->clkin, in cdce706_register_clkin()
508 ARRAY_SIZE(cdce->clkin), in cdce706_register_clkin()
Dclk-si5351.c63 struct clk_hw clkin; member
250 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_prepare()
259 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_unprepare()
273 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_recalc_rate()
1499 drvdata->clkin.init = &init; in si5351_i2c_probe()
1500 ret = devm_clk_hw_register(&client->dev, &drvdata->clkin); in si5351_i2c_probe()
/linux-4.19.296/drivers/i2c/busses/
Di2c-s3c2410.c813 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument
816 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor()
835 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()
846 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local
852 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
853 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate()
861 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
888 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
Di2c-exynos5.c286 unsigned int clkin = clk_get_rate(i2c->clk); in exynos5_i2c_set_timing() local
308 temp = clkin / op_clk - 8 - t_ftl_cycle; in exynos5_i2c_set_timing()
/linux-4.19.296/include/linux/iio/frequency/
Dadf4350.h114 unsigned long clkin; member
/linux-4.19.296/drivers/iio/adc/
Dmeson_saradc.c239 struct clk *clkin; member
597 clk_parents[0] = __clk_get_name(priv->clkin); in meson_sar_adc_clk_init()
718 ret = clk_set_parent(priv->adc_sel_clk, priv->clkin); in meson_sar_adc_init()
1040 priv->clkin = devm_clk_get(&pdev->dev, "clkin"); in meson_sar_adc_probe()
1041 if (IS_ERR(priv->clkin)) { in meson_sar_adc_probe()
1043 return PTR_ERR(priv->clkin); in meson_sar_adc_probe()