Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/u-boot/drivers/clk/aspeed/
H A Dclk_ast2500.c53 static ulong ast2500_get_mpll_rate(ulong clkin, u32 mpll_reg) in ast2500_get_mpll_rate() argument
61 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_mpll_rate()
68 static ulong ast2500_get_hpll_rate(ulong clkin, u32 hpll_reg) in ast2500_get_hpll_rate() argument
76 return (clkin * ((num + 1) / (denum + 1))) / (post_div + 1); in ast2500_get_hpll_rate()
119 ulong clkin = ast2500_get_clkin(priv->scu); in ast2500_clk_get_rate() local
129 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
133 rate = ast2500_get_mpll_rate(clkin, in ast2500_clk_get_rate()
141 rate = ast2500_get_hpll_rate(clkin, in ast2500_clk_get_rate()
223 ulong clkin = ast2500_get_clkin(scu); in ast2500_configure_ddr() local
231 ast2500_calc_clock_config(clkin, rate, &div_cfg); in ast2500_configure_ddr()
[all …]
/OK3568_Linux_fs/kernel/drivers/mfd/
H A Drk618.c133 rk618->clkin = devm_clk_get(dev, "clkin"); in rk618_probe()
134 if (IS_ERR(rk618->clkin)) { in rk618_probe()
136 return PTR_ERR(rk618->clkin); in rk618_probe()
139 ret = clk_prepare_enable(rk618->clkin); in rk618_probe()
166 clk_disable_unprepare(rk618->clkin); in rk618_probe()
176 clk_disable_unprepare(rk618->clkin); in rk618_remove()
186 clk_disable_unprepare(rk618->clkin); in rk618_shutdown()
/OK3568_Linux_fs/kernel/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()
192 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()
/OK3568_Linux_fs/kernel/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()
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 …]
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()
H A Ddss.h182 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,
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Drk618.txt7 - clocks: phandle to the clkin clock provider
8 - clock-names: Must be "clkin"
26 clock-names = "clkin";
/OK3568_Linux_fs/kernel/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()
512 if (!pdata->clkin) { in adf4350_probe()
554 st->clkin = clk_get_rate(clk); in adf4350_probe()
556 st->clkin = pdata->clkin; in adf4350_probe()
H A Dadf4371.c160 struct clk *clkin; member
547 clk_disable_unprepare(st->clkin); in adf4371_clk_disable()
582 st->clkin = devm_clk_get(&spi->dev, "clkin"); in adf4371_probe()
583 if (IS_ERR(st->clkin)) in adf4371_probe()
584 return PTR_ERR(st->clkin); in adf4371_probe()
586 ret = clk_prepare_enable(st->clkin); in adf4371_probe()
594 st->clkin_freq = clk_get_rate(st->clkin); in adf4371_probe()
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Drk618.c146 ret = clk_get_by_name(dev, "clkin", &rk618->clkin); in rk618_probe()
152 ret = clk_set_rate(&rk618->clkin, 11289600); in rk618_probe()
158 clk_enable(&rk618->clkin); in rk618_probe()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/
H A Drockchip,rk618-cru.txt9 the AP I2S master clock output(mclk) "clkin", and the AP LCDC master
19 clock-names = "clkin", "lcdc0_dclkp";
H A Dsilabs,si5351.txt23 handles, shall be xtal reference clock or xtal and clkin for
25 "clkin" respectively.
47 3 = clkin (si5351c only)
/OK3568_Linux_fs/kernel/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
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()
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A Di2c-s3c2410.c800 static int s3c24xx_i2c_calcdivisor(unsigned long clkin, unsigned int wanted, in s3c24xx_i2c_calcdivisor() argument
803 unsigned int calc_divs = clkin / wanted; in s3c24xx_i2c_calcdivisor()
822 return clkin / (calc_divs * calc_div1); in s3c24xx_i2c_calcdivisor()
833 unsigned long clkin = clk_get_rate(i2c->clk); in s3c24xx_i2c_clockrate() local
839 i2c->clkrate = clkin; in s3c24xx_i2c_clockrate()
840 clkin /= 1000; /* clkin now in KHz */ in s3c24xx_i2c_clockrate()
848 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
875 sda_delay = clkin * pdata->sda_delay; in s3c24xx_i2c_clockrate()
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Dpx30-ad-r35-mb-rk618-hdmi.dts23 clock-names = "clkin";
32 clock-names = "clkin", "lcdc0_dclkp";
H A Dpx30-ad-r35-mb-rk618-lvds.dts65 clock-names = "clkin";
74 clock-names = "clkin", "lcdc0_dclkp";
H A Dpx30-ad-r35-mb-rk618-dual-lvds.dts65 clock-names = "clkin";
74 clock-names = "clkin", "lcdc0_dclkp";
H A Dpx30-ad-r35-mb-rk618-hdmi-lvds.dts66 clock-names = "clkin";
75 clock-names = "clkin", "lcdc0_dclkp";
H A Dpx30-evb-ext-rk618.dtsi126 clock-names = "clkin";
135 clock-names = "clkin", "lcdc0_dclkp";
/OK3568_Linux_fs/u-boot/drivers/i2c/
H A Dexynos_hs_i2c.c143 ulong clkin; in hsi2c_get_clk_details() local
149 clkin = get_i2c_clk(); in hsi2c_get_clk_details()
151 clkin = get_PCLK(); in hsi2c_get_clk_details()
160 utemp0 = (clkin / op_clk) - 8 - 2 * t_ftl_cycle; in hsi2c_get_clk_details()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mmc/
H A Damlogic,meson-mx-sdio.txt22 - clock-names : must contain "core" and "clkin"
46 clock-names = "core", "clkin";
/OK3568_Linux_fs/kernel/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()

123