Home
last modified time | relevance | path

Searched refs:fclk (Results 1 – 25 of 49) sorted by relevance

12

/Linux-v5.4/drivers/cpufreq/
Ds3c2440-cpufreq.c33 static struct clk *fclk; variable
57 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
60 fclk = cfg->freq.fclk; in s3c2440_cpufreq_calcdivs()
65 __func__, fclk, armclk, hclk_max); in s3c2440_cpufreq_calcdivs()
67 if (armclk > fclk) { in s3c2440_cpufreq_calcdivs()
69 armclk = fclk; in s3c2440_cpufreq_calcdivs()
73 if (armclk < fclk && armclk < hclk_max) in s3c2440_cpufreq_calcdivs()
80 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
110 if (armclk < fclk) { in s3c2440_cpufreq_calcdivs()
193 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2440_cpufreq_setdivs()
[all …]
Ds3c2412-cpufreq.c34 static struct clk *fclk; variable
43 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local
46 fclk = cfg->freq.fclk; in s3c2412_cpufreq_calcdivs()
57 __func__, fclk, armclk, hclk_max); in s3c2412_cpufreq_calcdivs()
59 __func__, cfg->freq.fclk, cfg->freq.armclk, in s3c2412_cpufreq_calcdivs()
62 armdiv = fclk / armclk; in s3c2412_cpufreq_calcdivs()
70 armdiv_clk = fclk / armdiv; in s3c2412_cpufreq_calcdivs()
139 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2412_cpufreq_setdivs()
169 .fclk = 200000000,
203 fclk = clk_get(NULL, "fclk"); in s3c2412_cpufreq_add()
[all …]
Ds3c2410-cpufreq.c45 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
49 fclk = cfg->freq.fclk; in s3c2410_cpufreq_calcdivs()
52 cfg->freq.armclk = fclk; in s3c2410_cpufreq_calcdivs()
55 __func__, fclk, hclk_max); in s3c2410_cpufreq_calcdivs()
57 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
58 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs()
84 .fclk = 200000000,
137 s3c2410_cpufreq_info.max.fclk = 266000000; in s3c2410a_cpufreq_add()
Ds3c24xx-cpufreq.c64 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local
66 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
72 cfg->pll.frequency = fclk; in s3c_cpufreq_getcur()
76 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur()
77 cfg->divs.p_divisor = fclk / pclk; in s3c_cpufreq_getcur()
84 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
104 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
174 cpu_new.freq.fclk = cpu_new.pll.frequency; in s3c_cpufreq_settarget()
209 s3c_cpufreq_updateclk(clk_fclk, cpu_new.freq.fclk); in s3c_cpufreq_settarget()
228 if (cpu_new.freq.fclk == cpu_cur.freq.fclk) { in s3c_cpufreq_settarget()
[all …]
Ds3c24xx-cpufreq-debugfs.c33 f->fclk, f->hclk, f->pclk, f->armclk); in show_max()
75 seq_printf(seq, " FCLK %ld Hz\n", cfg->freq.fclk); in info_show()
/Linux-v5.4/arch/h8300/boot/dts/
Dedosk2674.dts38 fclk: fclk { label
75 clocks = <&fclk>;
83 clocks = <&fclk>;
91 clocks = <&fclk>;
98 clocks = <&fclk>;
105 clocks = <&fclk>;
Dh8300h_sim.dts31 fclk: fclk { label
69 clocks = <&fclk>;
78 clocks = <&fclk>;
86 clocks = <&fclk>;
94 clocks = <&fclk>;
Dh8s_sim.dts37 fclk: fclk { label
74 clocks = <&fclk>;
82 clocks = <&fclk>;
90 clocks = <&fclk>;
97 clocks = <&fclk>;
/Linux-v5.4/drivers/usb/host/
Dehci-sh.c14 struct clk *iclk, *fclk; member
119 priv->fclk = devm_clk_get(&pdev->dev, "usb_fck"); in ehci_hcd_sh_probe()
120 if (IS_ERR(priv->fclk)) in ehci_hcd_sh_probe()
121 priv->fclk = NULL; in ehci_hcd_sh_probe()
127 clk_enable(priv->fclk); in ehci_hcd_sh_probe()
147 clk_disable(priv->fclk); in ehci_hcd_sh_probe()
165 clk_disable(priv->fclk); in ehci_hcd_sh_remove()
Dohci-at91.c53 struct clk *fclk; member
78 clk_set_rate(ohci_at91->fclk, 48000000); in at91_start_clock()
81 clk_prepare_enable(ohci_at91->fclk); in at91_start_clock()
90 clk_disable_unprepare(ohci_at91->fclk); in at91_stop_clock()
203 ohci_at91->fclk = devm_clk_get(dev, "uhpck"); in usb_hcd_at91_probe()
204 if (IS_ERR(ohci_at91->fclk)) { in usb_hcd_at91_probe()
206 retval = PTR_ERR(ohci_at91->fclk); in usb_hcd_at91_probe()
/Linux-v5.4/Documentation/devicetree/bindings/display/ti/
Dti,omap3-dss.txt14 - clocks: handle to fclk
37 - clocks: handle to fclk
52 - clocks: handles to fclk and iclk
64 - clocks: handle to fclk
82 - clocks: handles to fclk and pll clock
Dti,omap4-dss.txt14 - clocks: handle to fclk
36 - clocks: handle to fclk
51 - clocks: handles to fclk and iclk
67 - clocks: handle to fclk
88 - clocks: handles to fclk and pll clock
111 - clocks: handles to fclk and pll clock
Dti,omap5-dss.txt14 - clocks: handle to fclk
36 - clocks: handle to fclk
51 - clocks: handles to fclk and iclk
69 - clocks: handles to fclk and pll clock
92 - clocks: handles to fclk and pll clock
Dti,dra7-dss.txt14 - clocks: handle to fclk
47 - clocks: handle to fclk
66 - clocks: handles to fclk and pll clock
/Linux-v5.4/drivers/clocksource/
Dtimer-ti-dm.c150 if (!timer->fclk) in omap_dm_timer_of_set_source()
158 if (clk_is_match(parent, timer->fclk)) in omap_dm_timer_of_set_source()
161 ret = clk_set_parent(timer->fclk, parent); in omap_dm_timer_of_set_source()
177 if (unlikely(!timer) || IS_ERR(timer->fclk)) in omap_dm_timer_set_source()
206 if (clk_hw_get_num_parents(__clk_get_hw(timer->fclk)) < 2) in omap_dm_timer_set_source()
216 ret = clk_set_parent(timer->fclk, parent); in omap_dm_timer_set_source()
259 timer->fclk = clk_get(&timer->pdev->dev, "fck"); in omap_dm_timer_prepare()
260 if (WARN_ON_ONCE(IS_ERR(timer->fclk))) { in omap_dm_timer_prepare()
436 clk_put(timer->fclk); in omap_dm_timer_free()
495 if (timer && !IS_ERR(timer->fclk)) in omap_dm_timer_get_fclk()
[all …]
/Linux-v5.4/drivers/media/dvb-frontends/
Ds5h1420.c39 u32 fclk; member
368 tmp = state->fclk / tmp; in s5h1420_read_status()
475 do_div(val, (state->fclk / 1000)); in s5h1420_setsymbolrate()
502 val = -(int) ((freqoffset * (1<<24)) / (state->fclk / 1000000)); in s5h1420_setfreqoffset()
530 val = (((-val) * (state->fclk/1000000)) / (1<<24)); in s5h1420_getfreqoffset()
668 state->fclk = 80000000; in s5h1420_set_frontend()
670 state->fclk = 59000000; in s5h1420_set_frontend()
672 state->fclk = 86000000; in s5h1420_set_frontend()
674 state->fclk = 88000000; in s5h1420_set_frontend()
676 state->fclk = 44000000; in s5h1420_set_frontend()
[all …]
Dcx24110.c231 u32 tmp, fclk, BDRI; in cx24110_set_symbolrate() local
251 fclk=90999000UL/2; in cx24110_set_symbolrate()
255 fclk=60666000UL; in cx24110_set_symbolrate()
259 fclk=80888000UL; in cx24110_set_symbolrate()
263 fclk=90999000UL; in cx24110_set_symbolrate()
265 dprintk("cx24110 debug: fclk %d Hz\n",fclk); in cx24110_set_symbolrate()
275 BDRI=fclk>>2; in cx24110_set_symbolrate()
288 dprintk("fclk = %d\n", fclk); in cx24110_set_symbolrate()
/Linux-v5.4/arch/arm64/boot/dts/ti/
Dk3-j721e-main.dtsi130 clock-names = "fclk";
143 clock-names = "fclk";
156 clock-names = "fclk";
169 clock-names = "fclk";
182 clock-names = "fclk";
195 clock-names = "fclk";
208 clock-names = "fclk";
221 clock-names = "fclk";
234 clock-names = "fclk";
247 clock-names = "fclk";
/Linux-v5.4/arch/arm/mach-omap2/
Dtimer.c313 timer->fclk = of_clk_get_by_name(np, "fck"); in omap_dm_timer_init_one()
329 if (IS_ERR_OR_NULL(timer->fclk)) in omap_dm_timer_init_one()
330 timer->fclk = clk_get(NULL, omap_hwmod_get_main_clk(oh)); in omap_dm_timer_init_one()
331 if (IS_ERR(timer->fclk)) in omap_dm_timer_init_one()
332 return PTR_ERR(timer->fclk); in omap_dm_timer_init_one()
338 WARN(clk_set_parent(timer->fclk, src) < 0, in omap_dm_timer_init_one()
353 timer->rate = clk_get_rate(timer->fclk); in omap_dm_timer_init_one()
/Linux-v5.4/drivers/iio/adc/
Dad7124.c231 unsigned int fclk, odr_sel_bits; in ad7124_set_channel_odr() local
234 fclk = clk_get_rate(st->mclk); in ad7124_set_channel_odr()
242 odr_sel_bits = DIV_ROUND_CLOSEST(fclk, odr * 32); in ad7124_set_channel_odr()
255 DIV_ROUND_CLOSEST(fclk, odr_sel_bits * 32); in ad7124_set_channel_odr()
510 unsigned int val, fclk, power_mode; in ad7124_setup() local
513 fclk = clk_get_rate(st->mclk); in ad7124_setup()
514 if (!fclk) in ad7124_setup()
520 fclk); in ad7124_setup()
521 if (fclk != ad7124_master_clk_freq_hz[power_mode]) { in ad7124_setup()
522 ret = clk_set_rate(st->mclk, fclk); in ad7124_setup()
/Linux-v5.4/arch/sh/drivers/pci/
Dpcie-sh7786.c25 struct clk *fclk, phy_clk; member
222 port->fclk = clk_get(NULL, fclk_name); in pcie_clk_init()
223 if (IS_ERR(port->fclk)) { in pcie_clk_init()
224 ret = PTR_ERR(port->fclk); in pcie_clk_init()
228 clk_enable(port->fclk); in pcie_clk_init()
248 clk_disable(port->fclk); in pcie_clk_init()
249 clk_put(port->fclk); in pcie_clk_init()
/Linux-v5.4/drivers/staging/iio/adc/
Dad7192.c163 u32 fclk; member
410 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_available_filter_freq()
414 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_available_filter_freq()
418 fadc = DIV_ROUND_CLOSEST(st->fclk, AD7192_MODE_RATE(st->mode)); in ad7192_get_available_filter_freq()
539 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_3db_filter_freq()
587 *val = st->fclk / in ad7192_read_raw()
638 div = st->fclk / (val * st->f_order * 1024); in ad7192_write_raw()
851 st->fclk = AD7192_INT_FREQ_MHZ; in ad7192_probe()
867 st->fclk = clk_get_rate(st->mclk); in ad7192_probe()
868 if (!ad7192_valid_external_frequency(st->fclk)) { in ad7192_probe()
/Linux-v5.4/drivers/pwm/
Dpwm-omap-dmtimer.c99 struct clk *fclk; in pwm_omap_dmtimer_config() local
114 fclk = omap->pdata->get_fclk(omap->dm_timer); in pwm_omap_dmtimer_config()
115 if (!fclk) { in pwm_omap_dmtimer_config()
120 clk_rate = clk_get_rate(fclk); in pwm_omap_dmtimer_config()
/Linux-v5.4/drivers/i2c/busses/
Di2c-omap.c355 struct clk *fclk; in omap_i2c_init() local
374 fclk = clk_get(omap->dev, "fck"); in omap_i2c_init()
375 if (IS_ERR(fclk)) { in omap_i2c_init()
376 error = PTR_ERR(fclk); in omap_i2c_init()
382 fclk_rate = clk_get_rate(fclk); in omap_i2c_init()
383 clk_put(fclk); in omap_i2c_init()
413 fclk = clk_get(omap->dev, "fck"); in omap_i2c_init()
414 if (IS_ERR(fclk)) { in omap_i2c_init()
415 error = PTR_ERR(fclk); in omap_i2c_init()
420 fclk_rate = clk_get_rate(fclk) / 1000; in omap_i2c_init()
[all …]
/Linux-v5.4/sound/soc/ti/
Domap-dmic.c36 struct clk *fclk; member
329 mux = clk_get_parent(dmic->fclk); in omap_dmic_select_fclk()
474 dmic->fclk = devm_clk_get(dmic->dev, "fck"); in asoc_dmic_probe()
475 if (IS_ERR(dmic->fclk)) { in asoc_dmic_probe()

12