Home
last modified time | relevance | path

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

1234

/linux-6.1.9/drivers/cpufreq/
Ds3c2440-cpufreq.c46 static struct clk *fclk; variable
70 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
73 fclk = cfg->freq.fclk; in s3c2440_cpufreq_calcdivs()
78 __func__, fclk, armclk, hclk_max); in s3c2440_cpufreq_calcdivs()
80 if (armclk > fclk) { in s3c2440_cpufreq_calcdivs()
82 armclk = fclk; in s3c2440_cpufreq_calcdivs()
86 if (armclk < fclk && armclk < hclk_max) in s3c2440_cpufreq_calcdivs()
93 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
123 if (armclk < fclk) { in s3c2440_cpufreq_calcdivs()
208 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2440_cpufreq_setdivs()
[all …]
Ds3c2412-cpufreq.c43 static struct clk *fclk; variable
52 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local
55 fclk = cfg->freq.fclk; in s3c2412_cpufreq_calcdivs()
66 __func__, fclk, armclk, hclk_max); in s3c2412_cpufreq_calcdivs()
68 __func__, cfg->freq.fclk, cfg->freq.armclk, in s3c2412_cpufreq_calcdivs()
71 armdiv = fclk / armclk; in s3c2412_cpufreq_calcdivs()
79 armdiv_clk = fclk / armdiv; in s3c2412_cpufreq_calcdivs()
148 clk_set_parent(armclk, cfg->divs.dvs ? hclk : fclk); in s3c2412_cpufreq_setdivs()
157 .fclk = 200000000,
191 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.c60 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local
62 cfg->freq.fclk = fclk = clk_get_rate(clk_fclk); in s3c_cpufreq_getcur()
68 cfg->pll.frequency = fclk; in s3c_cpufreq_getcur()
72 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur()
73 cfg->divs.p_divisor = fclk / pclk; in s3c_cpufreq_getcur()
80 cfg->freq.fclk = pll; in s3c_cpufreq_calc()
100 pfx, cfg->pll.frequency, cfg->freq.fclk, cfg->freq.armclk, in s3c_cpufreq_show()
170 cpu_new.freq.fclk = cpu_new.pll.frequency; in s3c_cpufreq_settarget()
205 s3c_cpufreq_updateclk(clk_fclk, cpu_new.freq.fclk); in s3c_cpufreq_settarget()
224 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-6.1.9/drivers/usb/host/
Dehci-sh.c13 struct clk *iclk, *fclk; member
115 priv->fclk = devm_clk_get(&pdev->dev, "usb_fck"); in ehci_hcd_sh_probe()
116 if (IS_ERR(priv->fclk)) in ehci_hcd_sh_probe()
117 priv->fclk = NULL; in ehci_hcd_sh_probe()
123 clk_enable(priv->fclk); in ehci_hcd_sh_probe()
140 clk_disable(priv->fclk); in ehci_hcd_sh_probe()
158 clk_disable(priv->fclk); in ehci_hcd_sh_remove()
Dohci-at91.c54 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()
218 ohci_at91->fclk = devm_clk_get(dev, "uhpck"); in usb_hcd_at91_probe()
219 if (IS_ERR(ohci_at91->fclk)) { in usb_hcd_at91_probe()
221 retval = PTR_ERR(ohci_at91->fclk); in usb_hcd_at91_probe()
/linux-6.1.9/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-6.1.9/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()
Dmb86a20s.h22 u32 fclk; member
/linux-6.1.9/arch/sh/drivers/pci/
Dpcie-sh7786.c26 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-6.1.9/arch/arm64/boot/dts/ti/
Dk3-am62a-main.dtsi113 clock-names = "fclk";
123 clock-names = "fclk";
133 clock-names = "fclk";
143 clock-names = "fclk";
153 clock-names = "fclk";
163 clock-names = "fclk";
173 clock-names = "fclk";
Dk3-am64-mcu.dtsi16 clock-names = "fclk";
26 clock-names = "fclk";
/linux-6.1.9/drivers/clocksource/
Dtimer-ti-dm.c123 struct clk *fclk; member
403 if (unlikely(!timer) || IS_ERR(timer->fclk)) in omap_dm_timer_set_source()
432 if (clk_hw_get_num_parents(__clk_get_hw(timer->fclk)) < 2) in omap_dm_timer_set_source()
442 ret = clk_set_parent(timer->fclk, parent); in omap_dm_timer_set_source()
701 if (timer && !IS_ERR(timer->fclk)) in omap_dm_timer_get_fclk()
702 return timer->fclk; in omap_dm_timer_get_fclk()
754 rate = clk_get_rate(timer->fclk); in omap_dm_timer_stop()
1112 timer->fclk = devm_clk_get(dev, "fck"); in omap_dm_timer_probe()
1113 if (IS_ERR(timer->fclk)) in omap_dm_timer_probe()
1114 return PTR_ERR(timer->fclk); in omap_dm_timer_probe()
[all …]
/linux-6.1.9/drivers/iio/adc/
Dad7124.c262 unsigned int fclk, odr_sel_bits; in ad7124_set_channel_odr() local
264 fclk = clk_get_rate(st->mclk); in ad7124_set_channel_odr()
272 odr_sel_bits = DIV_ROUND_CLOSEST(fclk, odr * 32); in ad7124_set_channel_odr()
282 st->channels[channel].cfg.odr = DIV_ROUND_CLOSEST(fclk, odr_sel_bits * 32); in ad7124_set_channel_odr()
891 unsigned int fclk, power_mode; in ad7124_setup() local
894 fclk = clk_get_rate(st->mclk); in ad7124_setup()
895 if (!fclk) in ad7124_setup()
901 fclk); in ad7124_setup()
902 if (fclk != ad7124_master_clk_freq_hz[power_mode]) { in ad7124_setup()
903 ret = clk_set_rate(st->mclk, fclk); in ad7124_setup()
Dad7192.c183 u32 fclk; member
540 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_available_filter_freq()
544 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_available_filter_freq()
548 fadc = DIV_ROUND_CLOSEST(st->fclk, AD7192_MODE_RATE(st->mode)); in ad7192_get_available_filter_freq()
669 fadc = DIV_ROUND_CLOSEST(st->fclk, in ad7192_get_3db_filter_freq()
717 *val = st->fclk / in ad7192_read_raw()
768 div = st->fclk / (val * st->f_order * 1024); in ad7192_write_raw()
1058 st->fclk = AD7192_INT_FREQ_MHZ; in ad7192_probe()
1077 st->fclk = clk_get_rate(st->mclk); in ad7192_probe()
1078 if (!ad7192_valid_external_frequency(st->fclk)) { in ad7192_probe()
/linux-6.1.9/drivers/pwm/
Dpwm-omap-dmtimer.c159 struct clk *fclk; in pwm_omap_dmtimer_config() local
168 fclk = omap->pdata->get_fclk(omap->dm_timer); in pwm_omap_dmtimer_config()
169 if (!fclk) { in pwm_omap_dmtimer_config()
174 clk_rate = clk_get_rate(fclk); in pwm_omap_dmtimer_config()
/linux-6.1.9/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-6.1.9/sound/soc/ti/
Domap-dmic.c36 struct clk *fclk; member
330 mux = clk_get_parent(dmic->fclk); in omap_dmic_select_fclk()
476 dmic->fclk = devm_clk_get(dmic->dev, "fck"); in asoc_dmic_probe()
477 if (IS_ERR(dmic->fclk)) { in asoc_dmic_probe()
/linux-6.1.9/drivers/net/hamradio/
Dbaycom_epp.c167 unsigned int fclk; member
306 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in eppconfig()
307 (bc->cfg.fclk + 8 * bc->cfg.bps) / (16 * bc->cfg.bps), in eppconfig()
990 bc->cfg.fclk = simple_strtoul(cp+5, NULL, 0); in baycom_setmode()
991 if (bc->cfg.fclk < 1000000) in baycom_setmode()
992 bc->cfg.fclk = 1000000; in baycom_setmode()
993 if (bc->cfg.fclk > 25000000) in baycom_setmode()
994 bc->cfg.fclk = 25000000; in baycom_setmode()
1089 bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, in baycom_siocdevprivate()
1214 bc->cfg.fclk = 19666600; in baycom_epp_dev_setup()
/linux-6.1.9/drivers/mmc/host/
Domap.c126 struct clk * fclk; member
190 clk_enable(host->fclk); in mmc_omap_fclk_enable()
192 clk_disable(host->fclk); in mmc_omap_fclk_enable()
1129 int func_clk_rate = clk_get_rate(host->fclk); in mmc_omap_calc_divisor()
1379 host->fclk = clk_get(&pdev->dev, "fck"); in mmc_omap_probe()
1380 if (IS_ERR(host->fclk)) { in mmc_omap_probe()
1381 ret = PTR_ERR(host->fclk); in mmc_omap_probe()
1385 ret = clk_prepare(host->fclk); in mmc_omap_probe()
1459 clk_unprepare(host->fclk); in mmc_omap_probe()
1461 clk_put(host->fclk); in mmc_omap_probe()
[all …]

1234