Home
last modified time | relevance | path

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

123

/openbmc/u-boot/drivers/clk/aspeed/
H A Dclk_ast2400.c39 u32 clkin; in ast2400_get_clkin() local
43 clkin = 25 * 1000 * 1000; in ast2400_get_clkin()
46 clkin = 48 * 1000 * 1000; in ast2400_get_clkin()
48 clkin = 24 * 1000 * 1000; in ast2400_get_clkin()
51 return clkin; in ast2400_get_clkin()
64 u32 clkin = ast2400_get_clkin(scu); in ast2400_get_mpll_rate() local
71 return clkin; in ast2400_get_mpll_rate()
82 return (clkin * mult / div); in ast2400_get_mpll_rate()
94 u32 clkin = ast2400_get_clkin(scu); in ast2400_get_hpll_rate() local
120 clkin = hpll_rates[1][rate]; in ast2400_get_hpll_rate()
[all …]
H A Dclk_ast2500.c64 u32 clkin = ast2500_get_clkin(scu); in ast2500_get_mpll_rate() local
73 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_mpll_rate()
82 u32 clkin = ast2500_get_clkin(scu); in ast2500_get_hpll_rate() local
92 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_hpll_rate()
101 u32 clkin = ast2500_get_clkin(scu); in ast2500_get_dpll_rate() local
109 return (((clkin * ((num + 1) / (denum + 1))) / (post_div + 1))/ (od_div + 1)); in ast2500_get_dpll_rate()
118 u32 clkin = ast2500_get_clkin(scu); in ast2500_get_d2pll_rate() local
127 return (((clkin * ((num + 1) / (denum + 1))) / (post_div + 1))/ (od_div + 1)); in ast2500_get_d2pll_rate()
159 u32 clkin = ast2500_get_hpll_rate(scu); in ast2500_get_sdio_clk_rate() local
165 return (clkin / div); in ast2500_get_sdio_clk_rate()
[all …]
H A Dclk_ast2600.c218 u32 clkin = AST2600_CLK_IN; in ast2600_get_pll_rate() local
268 return ((clkin * mult) / div); in ast2600_get_pll_rate()
274 u32 clkin = AST2600_CLK_IN; in ast2600_get_apll_rate() local
309 return ((clkin * mult) / div); in ast2600_get_apll_rate()
489 u32 clkin = 0; in ast2600_get_sdio_clk_rate() local
495 clkin = ast2600_get_apll_rate(scu); in ast2600_get_sdio_clk_rate()
497 clkin = ast2600_get_hclk(scu); in ast2600_get_sdio_clk_rate()
503 return (clkin / div); in ast2600_get_sdio_clk_rate()
509 u32 clkin; in ast2600_get_emmc_clk_rate() local
515 clkin = ast2600_get_pll_rate(scu, ASPEED_CLK_MPLL); in ast2600_get_emmc_clk_rate()
[all …]
/openbmc/linux/drivers/iio/filter/
H A Dadmv8818.c87 struct clk *clkin; member
246 st->cf_hz = clk_get_rate(st->clkin); in admv8818_rfin_band_select()
444 if (!st->clkin) { in admv8818_set_mode()
464 ret = clk_prepare_enable(st->clkin); in admv8818_set_mode()
468 ret = clk_notifier_register(st->clkin, &st->nb); in admv8818_set_mode()
470 clk_disable_unprepare(st->clkin); in admv8818_set_mode()
479 clk_disable_unprepare(st->clkin); in admv8818_set_mode()
481 ret = clk_notifier_unregister(st->clkin, &st->nb); in admv8818_set_mode()
560 clk_notifier_unregister(st->clkin, &st->nb); in admv8818_clk_notifier_unreg()
568 clk_disable_unprepare(st->clkin); in admv8818_clk_disable()
[all …]
/openbmc/linux/drivers/video/fbdev/omap2/omapfb/dss/
H A Dhdmi_pll.c46 unsigned long clkin; in hdmi_pll_compute() local
49 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute()
51 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute()
56 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute()
57 fint = clkin / n; in hdmi_pll_compute()
186 pll->clkin = clk; in dsi_init_pll_data()
H A Dpll.c72 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
92 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
103 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
146 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument
162 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc()
163 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc()
168 fint = clkin / n; in dss_pll_calc()
H A Ddpi.c222 unsigned long clkin; in dpi_dsi_clk_calc() local
233 clkin = clk_get_rate(ctx->pll->clkin); in dpi_dsi_clk_calc()
235 return dss_pll_calc(ctx->pll, clkin, in dpi_dsi_clk_calc()
/openbmc/linux/drivers/gpu/drm/omapdrm/dss/
H A Dpll.c127 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
147 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
158 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
205 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument
221 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a()
222 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a()
236 fint = clkin / n; in dss_pll_calc_a()
272 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b() argument
281 DSSDBG("clkin %lu, target clkout %lu\n", clkin, target_clkout); in dss_pll_calc_b()
284 n = DIV_ROUND_UP(clkin, hw->fint_max); in dss_pll_calc_b()
[all …]
H A Ddpi.c222 unsigned long clkin; in dpi_pll_clk_calc() local
228 clkin = clk_get_rate(dpi->pll->clkin); in dpi_pll_clk_calc()
239 return dss_pll_calc_a(ctx->dpi->pll, clkin, in dpi_pll_clk_calc()
243 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc()
/openbmc/linux/drivers/iio/frequency/
H A Dadf4350.c39 unsigned long clkin; member
128 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt()
285 st->clkin = readin; in adf4350_write()
334 st->clkin = clk_get_rate(st->clk); in adf4350_read()
336 val = st->clkin; in adf4350_read()
501 if (!pdata->clkin) { in adf4350_probe()
533 st->clkin = clk_get_rate(clk); in adf4350_probe()
535 st->clkin = pdata->clkin; in adf4350_probe()
H A Dadmv1014.c121 struct clk *clkin; member
223 u64 rate = clk_get_rate(st->clkin); in admv1014_update_quad_filters()
625 ret = clk_prepare_enable(st->clkin); in admv1014_init()
629 ret = devm_add_action_or_reset(&spi->dev, admv1014_clk_disable, st->clkin); in admv1014_init()
634 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in admv1014_init()
754 st->clkin = devm_clk_get(&spi->dev, "lo_in"); in admv1014_properties_parse()
755 if (IS_ERR(st->clkin)) in admv1014_properties_parse()
756 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in admv1014_properties_parse()
H A Dadmv1013.c95 struct clk *clkin; member
329 u64 rate = clk_get_rate(st->clkin); in admv1013_update_quad_filters()
611 st->clkin = devm_clk_get_enabled(&spi->dev, "lo_in"); in admv1013_probe()
612 if (IS_ERR(st->clkin)) in admv1013_probe()
613 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in admv1013_probe()
617 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in admv1013_probe()
H A Dadf4377.c406 struct clk *clkin; member
517 clkin_freq = clk_get_rate(st->clkin); in adf4377_get_freq()
725 st->clkin_freq = clk_get_rate(st->clkin); in adf4377_init()
876 st->clkin = devm_clk_get_enabled(&spi->dev, "ref_in"); in adf4377_properties_parse()
877 if (IS_ERR(st->clkin)) in adf4377_properties_parse()
878 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in adf4377_properties_parse()
959 ret = devm_clk_notifier_register(&spi->dev, st->clkin, &st->nb); in adf4377_probe()
H A Dadf4371.c160 struct clk *clkin; member
575 st->clkin = devm_clk_get_enabled(&spi->dev, "clkin"); in adf4371_probe()
576 if (IS_ERR(st->clkin)) in adf4371_probe()
577 return PTR_ERR(st->clkin); in adf4371_probe()
579 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
H A Dadrf6780.c75 struct clk *clkin; member
470 st->clkin = devm_clk_get_enabled(&spi->dev, "lo_in"); in adrf6780_probe()
471 if (IS_ERR(st->clkin)) in adrf6780_probe()
472 return dev_err_probe(&spi->dev, PTR_ERR(st->clkin), in adrf6780_probe()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-s3c2410.c795 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument
798 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor()
817 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()
828 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local
834 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
835 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate()
843 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
870 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
/openbmc/linux/drivers/clk/
H A Dclk-aspeed.c586 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local
600 clkin = 25000000; in aspeed_ast2400_cc()
603 clkin = 48000000; in aspeed_ast2400_cc()
606 clkin = 24000000; in aspeed_ast2400_cc()
609 hw = clk_hw_register_fixed_rate(NULL, "clkin", NULL, 0, clkin); in aspeed_ast2400_cc()
610 pr_debug("clkin @%u MHz\n", clkin / 1000000); in aspeed_ast2400_cc()
H A Dclk-cdce706.c82 struct cdce706_hw_data clkin[1]; member
312 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; in cdce706_divider_determine_rate()
505 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); in cdce706_register_clkin()
508 ret = cdce706_register_hw(cdce, cdce->clkin, in cdce706_register_clkin()
509 ARRAY_SIZE(cdce->clkin), in cdce706_register_clkin()
/openbmc/u-boot/drivers/i2c/
H A Dexynos_hs_i2c.c142 ulong clkin; in hsi2c_get_clk_details() local
148 clkin = get_i2c_clk(); in hsi2c_get_clk_details()
150 clkin = get_PCLK(); in hsi2c_get_clk_details()
159 utemp0 = (clkin / op_clk) - 8 - 2 * t_ftl_cycle; in hsi2c_get_clk_details()
/openbmc/u-boot/arch/arm/mach-aspeed/ast2600/
H A Dboard_common.c167 u32 clkin = 25000000; in aspeed_mmc_init() local
213 rate = ((clkin * mult)/div); in aspeed_mmc_init()
/openbmc/linux/Documentation/devicetree/bindings/mmc/
H A Damlogic,meson-mx-sdio.txt22 - clock-names : must contain "core" and "clkin"
46 clock-names = "core", "clkin";
/openbmc/linux/Documentation/devicetree/bindings/clock/
H A Dsilabs,si5351.txt23 handles, shall be xtal reference clock or xtal and clkin for
25 "clkin" respectively.
47 3 = clkin (si5351c only)
/openbmc/linux/drivers/media/i2c/
H A Dds90ub913.c71 struct clk *clkin; member
629 __clk_get_name(priv->clkin), 0, 1, 2); in ub913_register_clkout()
654 ref = clk_get_rate(priv->clkin) / 2; in ub913_i2c_master_init()
840 priv->clkin = devm_clk_get(dev, "clkin"); in ub913_probe()
841 if (IS_ERR(priv->clkin)) in ub913_probe()
842 return dev_err_probe(dev, PTR_ERR(priv->clkin), in ub913_probe()
/openbmc/linux/drivers/hwmon/
H A Dw83795.c281 static unsigned int pwm_freq_from_reg(u8 reg, u16 clkin) in pwm_freq_from_reg() argument
286 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_from_reg()
292 static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) in pwm_freq_to_reg() argument
306 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_to_reg()
363 u16 clkin; /* CLKIN frequency in kHz */ member
843 val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin); in show_pwm()
874 val = pwm_freq_to_reg(val, data->clkin); in store_pwm()
1859 static const u16 clkin[4] = { /* in kHz */ in w83795_init_client() local
1875 data->clkin = clkin[(config >> 3) & 0x3]; in w83795_init_client()
1876 dev_dbg(&client->dev, "clkin = %u kHz\n", data->clkin); in w83795_init_client()
/openbmc/qemu/hw/misc/
H A Daspeed_scu.c469 uint32_t clkin = aspeed_scu_get_clkin(s); in aspeed_2400_scu_calc_hpll() local
486 return clkin * multiplier; in aspeed_2400_scu_calc_hpll()
499 uint32_t clkin = aspeed_scu_get_clkin(s); in aspeed_2500_scu_calc_hpll() local
513 return clkin * multiplier; in aspeed_2500_scu_calc_hpll()
519 uint32_t clkin = aspeed_scu_get_clkin(s); in aspeed_2600_scu_calc_hpll() local
533 return clkin * multiplier; in aspeed_2600_scu_calc_hpll()

123