/Linux-v5.4/drivers/video/fbdev/omap2/omapfb/dss/ |
D | hdmi_pll.c | 46 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() 192 pll->clkin = clk; in dsi_init_pll_data()
|
D | pll.c | 72 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()
|
D | dpi.c | 222 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()
|
D | video-pll.c | 189 pll->clkin = clk; in dss_video_pll_init()
|
D | dss.h | 163 struct clk *clkin; member 493 bool dss_pll_calc(const struct dss_pll *pll, unsigned long clkin,
|
/Linux-v5.4/drivers/gpu/drm/omapdrm/dss/ |
D | pll.c | 127 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() 233 fint = clkin / n; in dss_pll_calc_a() 266 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin, in dss_pll_calc_b() argument 275 DSSDBG("clkin %lu, target clkout %lu\n", clkin, target_clkout); in dss_pll_calc_b() 278 n = DIV_ROUND_UP(clkin, hw->fint_max); in dss_pll_calc_b() [all …]
|
D | dpi.c | 220 unsigned long clkin; in dpi_pll_clk_calc() local 226 clkin = clk_get_rate(dpi->pll->clkin); in dpi_pll_clk_calc() 237 return dss_pll_calc_a(ctx->dpi->pll, clkin, in dpi_pll_clk_calc() 241 dss_pll_calc_b(dpi->pll, clkin, pck, &ctx->pll_cinfo); in dpi_pll_clk_calc()
|
D | dss.h | 182 struct clk *clkin; member 460 bool dss_pll_calc_a(const struct dss_pll *pll, unsigned long clkin, 464 bool dss_pll_calc_b(const struct dss_pll *pll, unsigned long clkin,
|
D | hdmi_pll.c | 145 pll->clkin = clk; in hdmi_init_pll_data()
|
D | video-pll.c | 181 pll->clkin = clk; in dss_video_pll_init()
|
/Linux-v5.4/drivers/iio/frequency/ |
D | adf4350.c | 39 unsigned long clkin; member 122 st->fpfd = (st->clkin * (pdata->ref_doubler_en ? 2 : 1)) / in adf4350_tune_r_cnt() 279 st->clkin = readin; in adf4350_write() 328 st->clkin = clk_get_rate(st->clk); in adf4350_read() 330 val = st->clkin; in adf4350_read() 513 if (!pdata->clkin) { in adf4350_probe() 554 st->clkin = clk_get_rate(clk); in adf4350_probe() 556 st->clkin = pdata->clkin; in adf4350_probe()
|
D | adf4371.c | 160 struct clk *clkin; member 547 clk_disable_unprepare(st->clkin); in adf4371_clk_disable() 583 st->clkin = devm_clk_get(&spi->dev, "clkin"); in adf4371_probe() 584 if (IS_ERR(st->clkin)) in adf4371_probe() 585 return PTR_ERR(st->clkin); in adf4371_probe() 587 ret = clk_prepare_enable(st->clkin); in adf4371_probe() 595 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
|
/Linux-v5.4/drivers/clk/ |
D | clk-aspeed.c | 561 u32 val, div, clkin, hpll; in aspeed_ast2400_cc() local 575 clkin = 25000000; in aspeed_ast2400_cc() 578 clkin = 48000000; in aspeed_ast2400_cc() 581 clkin = 24000000; in aspeed_ast2400_cc() 584 hw = clk_hw_register_fixed_rate(NULL, "clkin", NULL, 0, clkin); in aspeed_ast2400_cc() 585 pr_debug("clkin @%u MHz\n", clkin / 1000000); in aspeed_ast2400_cc()
|
D | clk-cdce706.c | 82 struct cdce706_hw_data clkin[1]; member 310 struct clk *gp_clk = cdce->clkin_clk[cdce->clkin[0].parent]; in cdce706_divider_round_rate() 501 cdce->clkin[0].parent = !!(clock & CDCE706_CLKIN_CLOCK_MASK); in cdce706_register_clkin() 504 ret = cdce706_register_hw(cdce, cdce->clkin, in cdce706_register_clkin() 505 ARRAY_SIZE(cdce->clkin), in cdce706_register_clkin()
|
D | clk-si5351.c | 59 struct clk_hw clkin; member 246 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_prepare() 255 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_unprepare() 269 container_of(hw, struct si5351_driver_data, clkin); in si5351_clkin_recalc_rate() 1495 drvdata->clkin.init = &init; in si5351_i2c_probe() 1496 ret = devm_clk_hw_register(&client->dev, &drvdata->clkin); in si5351_i2c_probe()
|
/Linux-v5.4/Documentation/devicetree/bindings/clock/ |
D | idt,versaclock5.txt | 29 5p49v6901: (required) either or both of "xin", "clkin". 31 - 5p49v5935: (optional) property not present or "clkin".
|
D | silabs,si5351.txt | 23 handles, shall be xtal reference clock or xtal and clkin for 25 "clkin" respectively. 47 3 = clkin (si5351c only)
|
/Linux-v5.4/drivers/i2c/busses/ |
D | i2c-s3c2410.c | 798 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument 801 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor() 820 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor() 831 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local 837 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate() 838 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate() 846 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate() 873 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
|
/Linux-v5.4/Documentation/devicetree/bindings/iio/adc/ |
D | amlogic,meson-saradc.txt | 18 - "clkin" for the reference clock (typically XTAL) 47 clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel";
|
/Linux-v5.4/Documentation/devicetree/bindings/mmc/ |
D | amlogic,meson-mx-sdio.txt | 22 - clock-names : must contain "core" and "clkin" 46 clock-names = "core", "clkin";
|
/Linux-v5.4/drivers/hwmon/ |
D | w83795.c | 281 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()
|
/Linux-v5.4/include/linux/iio/frequency/ |
D | adf4350.h | 113 unsigned long clkin; member
|
/Linux-v5.4/drivers/iio/adc/ |
D | meson_saradc.c | 271 struct clk *clkin; member 665 clk_parents[0] = __clk_get_name(priv->clkin); in meson_sar_adc_clk_init() 895 ret = clk_set_parent(priv->adc_sel_clk, priv->clkin); in meson_sar_adc_init() 1236 priv->clkin = devm_clk_get(&pdev->dev, "clkin"); in meson_sar_adc_probe() 1237 if (IS_ERR(priv->clkin)) { in meson_sar_adc_probe() 1239 return PTR_ERR(priv->clkin); in meson_sar_adc_probe()
|
/Linux-v5.4/Documentation/devicetree/bindings/pinctrl/ |
D | cirrus,lochnagar.txt | 75 codec-mclk1, codec-mclk2, dsp-clkin, psia1-mclk, psia2-mclk, 86 dsp-clkin, psia1-mclk, psia2-mclk, spdif-mclk, codec-irq,
|
/Linux-v5.4/Documentation/devicetree/bindings/iio/frequency/ |
D | adf4350.txt | 79 clock-names = "clkin";
|