Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/cpufreq/
Ds3c2440-cpufreq.c36 static struct clk *fclk; variable
60 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
63 fclk = cfg->freq.fclk; in s3c2440_cpufreq_calcdivs()
68 __func__, fclk, armclk, hclk_max); in s3c2440_cpufreq_calcdivs()
70 if (armclk > fclk) { in s3c2440_cpufreq_calcdivs()
72 armclk = fclk; in s3c2440_cpufreq_calcdivs()
76 if (armclk < fclk && armclk < hclk_max) in s3c2440_cpufreq_calcdivs()
83 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
113 if (armclk < fclk) { in s3c2440_cpufreq_calcdivs()
196 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2440_cpufreq_setdivs()
[all …]
Ds3c2412-cpufreq.c37 static struct clk *fclk; variable
46 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local
49 fclk = cfg->freq.fclk; in s3c2412_cpufreq_calcdivs()
60 __func__, fclk, armclk, hclk_max); in s3c2412_cpufreq_calcdivs()
62 __func__, cfg->freq.fclk, cfg->freq.armclk, in s3c2412_cpufreq_calcdivs()
65 armdiv = fclk / armclk; in s3c2412_cpufreq_calcdivs()
73 armdiv_clk = fclk / armdiv; in s3c2412_cpufreq_calcdivs()
142 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2412_cpufreq_setdivs()
172 .fclk = 200000000,
206 fclk = clk_get(NULL, "fclk"); in s3c2412_cpufreq_add()
[all …]
Ds3c2410-cpufreq.c48 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
52 fclk = cfg->freq.fclk; in s3c2410_cpufreq_calcdivs()
55 cfg->freq.armclk = fclk; in s3c2410_cpufreq_calcdivs()
58 __func__, fclk, hclk_max); in s3c2410_cpufreq_calcdivs()
60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
61 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs()
87 .fclk = 200000000,
140 s3c2410_cpufreq_info.max.fclk = 266000000; in s3c2410a_cpufreq_add()
Ds3c24xx-cpufreq.c67 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local
69 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
75 cfg->pll.frequency = fclk; in s3c_cpufreq_getcur()
79 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur()
80 cfg->divs.p_divisor = fclk / pclk; in s3c_cpufreq_getcur()
87 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
107 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
177 cpu_new.freq.fclk = cpu_new.pll.frequency; in s3c_cpufreq_settarget()
212 s3c_cpufreq_updateclk(clk_fclk, cpu_new.freq.fclk); in s3c_cpufreq_settarget()
231 if (cpu_new.freq.fclk == cpu_cur.freq.fclk) { in s3c_cpufreq_settarget()
[all …]
Ds3c24xx-cpufreq-debugfs.c36 f->fclk, f->hclk, f->pclk, f->armclk); in show_max()
89 seq_printf(seq, " FCLK %ld Hz\n", cfg->freq.fclk); in info_show()
/Linux-v4.19/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-v4.19/drivers/usb/host/
Dehci-sh.c14 struct clk *iclk, *fclk; member
122 priv->fclk = devm_clk_get(&pdev->dev, "usb_fck"); in ehci_hcd_sh_probe()
123 if (IS_ERR(priv->fclk)) in ehci_hcd_sh_probe()
124 priv->fclk = NULL; in ehci_hcd_sh_probe()
130 clk_enable(priv->fclk); in ehci_hcd_sh_probe()
150 clk_disable(priv->fclk); in ehci_hcd_sh_probe()
168 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()
200 ohci_at91->fclk = devm_clk_get(dev, "uhpck"); in usb_hcd_at91_probe()
201 if (IS_ERR(ohci_at91->fclk)) { in usb_hcd_at91_probe()
203 retval = PTR_ERR(ohci_at91->fclk); in usb_hcd_at91_probe()
/Linux-v4.19/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-v4.19/drivers/media/dvb-frontends/
Ds5h1420.c49 u32 fclk; member
378 tmp = state->fclk / tmp; in s5h1420_read_status()
485 do_div(val, (state->fclk / 1000)); in s5h1420_setsymbolrate()
512 val = -(int) ((freqoffset * (1<<24)) / (state->fclk / 1000000)); in s5h1420_setfreqoffset()
540 val = (((-val) * (state->fclk/1000000)) / (1<<24)); in s5h1420_getfreqoffset()
678 state->fclk = 80000000; in s5h1420_set_frontend()
680 state->fclk = 59000000; in s5h1420_set_frontend()
682 state->fclk = 86000000; in s5h1420_set_frontend()
684 state->fclk = 88000000; in s5h1420_set_frontend()
686 state->fclk = 44000000; in s5h1420_set_frontend()
[all …]
Dcx24110.c244 u32 tmp, fclk, BDRI; in cx24110_set_symbolrate() local
264 fclk=90999000UL/2; in cx24110_set_symbolrate()
268 fclk=60666000UL; in cx24110_set_symbolrate()
272 fclk=80888000UL; in cx24110_set_symbolrate()
276 fclk=90999000UL; in cx24110_set_symbolrate()
278 dprintk("cx24110 debug: fclk %d Hz\n",fclk); in cx24110_set_symbolrate()
288 BDRI=fclk>>2; in cx24110_set_symbolrate()
301 dprintk("fclk = %d\n", fclk); in cx24110_set_symbolrate()
Dmb86a20s.h30 u32 fclk; member
/Linux-v4.19/drivers/clocksource/
Dtimer-ti-dm.c150 if (!timer->fclk) in omap_dm_timer_of_set_source()
157 ret = clk_set_parent(timer->fclk, parent); in omap_dm_timer_of_set_source()
173 if (unlikely(!timer) || IS_ERR(timer->fclk)) in omap_dm_timer_set_source()
202 if (clk_hw_get_num_parents(__clk_get_hw(timer->fclk)) < 2) in omap_dm_timer_set_source()
212 ret = clk_set_parent(timer->fclk, parent); in omap_dm_timer_set_source()
255 timer->fclk = clk_get(&timer->pdev->dev, "fck"); in omap_dm_timer_prepare()
256 if (WARN_ON_ONCE(IS_ERR(timer->fclk))) { in omap_dm_timer_prepare()
432 clk_put(timer->fclk); in omap_dm_timer_free()
491 if (timer && !IS_ERR(timer->fclk)) in omap_dm_timer_get_fclk()
492 return timer->fclk; in omap_dm_timer_get_fclk()
[all …]
/Linux-v4.19/arch/arm/mach-omap2/
Dtimer.c314 timer->fclk = of_clk_get_by_name(np, "fck"); in omap_dm_timer_init_one()
330 if (IS_ERR_OR_NULL(timer->fclk)) in omap_dm_timer_init_one()
331 timer->fclk = clk_get(NULL, omap_hwmod_get_main_clk(oh)); in omap_dm_timer_init_one()
332 if (IS_ERR(timer->fclk)) in omap_dm_timer_init_one()
333 return PTR_ERR(timer->fclk); in omap_dm_timer_init_one()
339 WARN(clk_set_parent(timer->fclk, src) < 0, in omap_dm_timer_init_one()
354 timer->rate = clk_get_rate(timer->fclk); in omap_dm_timer_init_one()
/Linux-v4.19/arch/sh/drivers/pci/
Dpcie-sh7786.c28 struct clk *fclk, phy_clk; member
225 port->fclk = clk_get(NULL, fclk_name); in pcie_clk_init()
226 if (IS_ERR(port->fclk)) { in pcie_clk_init()
227 ret = PTR_ERR(port->fclk); in pcie_clk_init()
231 clk_enable(port->fclk); in pcie_clk_init()
251 clk_disable(port->fclk); in pcie_clk_init()
252 clk_put(port->fclk); in pcie_clk_init()
/Linux-v4.19/drivers/pwm/
Dpwm-omap-dmtimer.c102 struct clk *fclk; in pwm_omap_dmtimer_config() local
117 fclk = omap->pdata->get_fclk(omap->dm_timer); in pwm_omap_dmtimer_config()
118 if (!fclk) { in pwm_omap_dmtimer_config()
123 clk_rate = clk_get_rate(fclk); in pwm_omap_dmtimer_config()
/Linux-v4.19/drivers/i2c/busses/
Di2c-omap.c362 struct clk *fclk; in omap_i2c_init() local
381 fclk = clk_get(omap->dev, "fck"); in omap_i2c_init()
382 if (IS_ERR(fclk)) { in omap_i2c_init()
383 error = PTR_ERR(fclk); in omap_i2c_init()
389 fclk_rate = clk_get_rate(fclk); in omap_i2c_init()
390 clk_put(fclk); in omap_i2c_init()
420 fclk = clk_get(omap->dev, "fck"); in omap_i2c_init()
421 if (IS_ERR(fclk)) { in omap_i2c_init()
422 error = PTR_ERR(fclk); in omap_i2c_init()
427 fclk_rate = clk_get_rate(fclk) / 1000; in omap_i2c_init()
[all …]
/Linux-v4.19/sound/soc/omap/
Domap-dmic.c50 struct clk *fclk; member
334 mux = clk_get_parent(dmic->fclk); in omap_dmic_select_fclk()
479 dmic->fclk = devm_clk_get(dmic->dev, "fck"); in asoc_dmic_probe()
480 if (IS_ERR(dmic->fclk)) { in asoc_dmic_probe()
/Linux-v4.19/drivers/net/hamradio/
Dbaycom_epp.c182 unsigned int fclk; member
321 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in eppconfig()
322 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), in eppconfig()
1005 bc->cfg.fclk = simple_strtoul(cp+5, NULL, 0); in baycom_setmode()
1006 if (bc->cfg.fclk < 1000000) in baycom_setmode()
1007 bc->cfg.fclk = 1000000; in baycom_setmode()
1008 if (bc->cfg.fclk > 25000000) in baycom_setmode()
1009 bc->cfg.fclk = 25000000; in baycom_setmode()
1103 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_ioctl()
1228 bc->cfg.fclk = 19666600; in baycom_epp_dev_setup()
/Linux-v4.19/drivers/mmc/host/
Domap.c128 struct clk * fclk; member
192 clk_enable(host->fclk); in mmc_omap_fclk_enable()
194 clk_disable(host->fclk); in mmc_omap_fclk_enable()
1131 int func_clk_rate = clk_get_rate(host->fclk); in mmc_omap_calc_divisor()
1376 host->fclk = clk_get(&pdev->dev, "fck"); in mmc_omap_probe()
1377 if (IS_ERR(host->fclk)) { in mmc_omap_probe()
1378 ret = PTR_ERR(host->fclk); in mmc_omap_probe()
1389 clk_put(host->fclk); in mmc_omap_probe()
1403 clk_put(host->fclk); in mmc_omap_probe()
1454 clk_put(host->fclk); in mmc_omap_probe()
[all …]

12