Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/video/fbdev/omap2/omapfb/dss/
Dhdmi_pll.c49 unsigned long clkin; in hdmi_pll_compute() local
52 clkin = clk_get_rate(pll->pll.clkin); in hdmi_pll_compute()
54 DSSDBG("clkin %lu, target tmds %lu\n", clkin, target_tmds); in hdmi_pll_compute()
59 n = DIV_ROUND_UP(clkin, hw->fint_max); in hdmi_pll_compute()
60 fint = clkin / n; in hdmi_pll_compute()
195 pll->clkin = clk; in dsi_init_pll_data()
Dpll.c83 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
103 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
114 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
157 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc() argument
173 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc()
174 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc()
179 fint = clkin / n; in dss_pll_calc()
Ddpi.c233 unsigned long clkin; in dpi_dsi_clk_calc() local
244 clkin = clk_get_rate(ctx->pll->clkin); in dpi_dsi_clk_calc()
246 return dss_pll_calc(ctx->pll, clkin, in dpi_dsi_clk_calc()
Dvideo-pll.c195 pll->clkin = clk; in dss_video_pll_init()
Ddss.h174 struct clk *clkin; member
508 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin,
/Linux-v4.19/drivers/gpu/drm/omapdrm/dss/
Dpll.c138 r = clk_prepare_enable(pll->clkin); in dss_pll_enable()
158 clk_disable_unprepare(pll->clkin); in dss_pll_enable()
169 clk_disable_unprepare(pll->clkin); in dss_pll_disable()
216 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_a() argument
232 n_start = max(DIV_ROUND_UP(clkin, fint_hw_max), 1ul); in dss_pll_calc_a()
233 n_stop = min((unsigned)(clkin / fint_hw_min), hw->n_max); in dss_pll_calc_a()
244 fint = clkin / n; in dss_pll_calc_a()
277 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b() argument
286 DSSDBG("clkin %lu, target clkout %lu\n", clkin, target_clkout); in dss_pll_calc_b()
289 n = DIV_ROUND_UP(clkin, hw->fint_max); in dss_pll_calc_b()
[all …]
Ddpi.c230 unsigned long clkin; in dpi_pll_clk_calc() local
236 clkin = clk_get_rate(dpi->pll->clkin); in dpi_pll_clk_calc()
247 return dss_pll_calc_a(ctx->dpi->pll, clkin, in dpi_pll_clk_calc()
251 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc()
Ddss.h193 struct clk *clkin; member
474 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin,
478 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin,
Dhdmi_pll.c148 pll->clkin = clk; in hdmi_init_pll_data()
Dvideo-pll.c189 pll->clkin = clk; in dss_video_pll_init()
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/iio/adc/
Damlogic,meson-saradc.txt17 - "clkin" for the reference clock (typically XTAL)
36 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
/Linux-v4.19/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-v4.19/Documentation/devicetree/bindings/clock/
Didt,versaclock5.txt29 5p49v6901: (required) either or both of "xin", "clkin".
31 - 5p49v5935: (optional) property not present or "clkin".
Dsilabs,si5351.txt23 handles, shall be xtal reference clock or xtal and clkin for
25 "clkin" respectively.
47 3 = clkin (si5351c only)
/Linux-v4.19/Documentation/devicetree/bindings/mmc/
Damlogic,meson-mx-sdio.txt22 - clock-names : must contain "core" and "clkin"
46 clock-names = "core", "clkin";
/Linux-v4.19/drivers/i2c/busses/
Di2c-s3c2410.c810 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument
813 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor()
832 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()
843 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local
849 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
850 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate()
858 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
885 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
/Linux-v4.19/drivers/hwmon/
Dw83795.c294 static unsigned int pwm_freq_from_reg(u8 reg, u16 clkin) in pwm_freq_from_reg() argument
299 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_from_reg()
305 static u8 pwm_freq_to_reg(unsigned long val, u16 clkin) in pwm_freq_to_reg() argument
319 base_clock = clkin * 1000 / ((clkin == 48000) ? 384 : 256); in pwm_freq_to_reg()
376 u16 clkin; /* CLKIN frequency in kHz */ member
856 val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin); in show_pwm()
887 val = pwm_freq_to_reg(val, data->clkin); in store_pwm()
1872 static const u16 clkin[4] = { /* in kHz */ in w83795_init_client() local
1888 data->clkin = clkin[(config >> 3) & 0x3]; in w83795_init_client()
1889 dev_dbg(&client->dev, "clkin = %u kHz\n", data->clkin); in w83795_init_client()
/Linux-v4.19/include/linux/iio/frequency/
Dadf4350.h114 unsigned long clkin; member
/Linux-v4.19/drivers/iio/adc/
Dmeson_saradc.c239 struct clk *clkin; member
594 clk_parents[0] = __clk_get_name(priv->clkin); in meson_sar_adc_clk_init()
712 ret = clk_set_parent(priv->adc_sel_clk, priv->clkin); in meson_sar_adc_init()
1034 priv->clkin = devm_clk_get(&pdev->dev, "clkin"); in meson_sar_adc_probe()
1035 if (IS_ERR(priv->clkin)) { in meson_sar_adc_probe()
1037 return PTR_ERR(priv->clkin); in meson_sar_adc_probe()
/Linux-v4.19/arch/arm/boot/dts/
Dmeson8b.dtsi310 clock-names = "clkin", "core";
316 clock-names = "core", "clkin";
Dmeson8.dtsi365 clock-names = "clkin", "core";
371 clock-names = "core", "clkin";
/Linux-v4.19/Documentation/devicetree/bindings/iio/frequency/
Dadf4350.txt79 clock-names = "clkin";

12