Home
last modified time | relevance | path

Searched refs:hclk (Results 1 – 25 of 116) sorted by relevance

12345

/linux/drivers/cpufreq/
A Ds3c2412-cpufreq.c44 static struct clk *hclk; variable
57 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs()
69 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs()
85 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
99 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs()
101 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs()
104 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
158 .hclk = 100000000,
185 hclk = clk_get(NULL, "hclk"); in s3c2412_cpufreq_add()
186 if (IS_ERR(hclk)) { in s3c2412_cpufreq_add()
[all …]
A Ds3c2440-cpufreq.c47 static struct clk *hclk; variable
70 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
75 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs()
93 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
94 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs()
103 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
105 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
117 if (armclk < hclk) in s3c2440_cpufreq_calcdivs()
118 armclk = hclk; in s3c2440_cpufreq_calcdivs()
125 armclk = hclk; in s3c2440_cpufreq_calcdivs()
[all …]
A Ds3c2410-cpufreq.c45 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
50 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs()
57 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
58 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs()
60 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs()
65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
66 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
85 .hclk = 100000000,
138 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
A Ds3c2416-cpufreq.c27 struct clk *hclk; member
131 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs()
191 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs()
193 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs()
242 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target()
397 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init()
398 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init()
399 ret = PTR_ERR(s3c_freq->hclk); in s3c2416_cpufreq_driver_init()
407 rate = clk_get_rate(s3c_freq->hclk); in s3c2416_cpufreq_driver_init()
437 if (!s3c_freq->hclk) { in s3c2416_cpufreq_driver_init()
[all …]
A Ds3c24xx-cpufreq.c60 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local
63 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
70 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
72 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur()
81 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
101 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show()
183 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
206 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget()
219 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
243 if (cpu_new.freq.hclk > cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
[all …]
A Ds3c24xx-cpufreq-debugfs.c33 f->fclk, f->hclk, f->pclk, f->armclk); in show_max()
77 cfg->freq.hclk, print_ns(cfg->freq.hclk_tns)); in info_show()
78 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); in info_show()
/linux/arch/arm/mach-s3c/
A Diotiming-s3c2410.c216 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_calc_bank() local
238 ret |= calc_tacp(bt->tacp, hclk, &res); in s3c2410_calc_bank()
239 ret |= calc_tacc(bt->tacc, bt->nwait_en, hclk, &res); in s3c2410_calc_bank()
295 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_iotiming_getbank() local
297 bt->tcah = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_iotiming_getbank()
316 unsigned long hclk = cfg->freq.hclk_tns; in s3c2410_iotiming_debugfs() local
325 tcah = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcah_SHIFT); in s3c2410_iotiming_debugfs()
326 tcoh = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcoh_SHIFT); in s3c2410_iotiming_debugfs()
327 tcos = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tcos_SHIFT); in s3c2410_iotiming_debugfs()
328 tacs = get_0124(hclk, bankcon >> S3C2410_BANKCON_Tacs_SHIFT); in s3c2410_iotiming_debugfs()
[all …]
A Diotiming-s3c2412.c94 unsigned int hclk = cfg->freq.hclk_tns; in s3c2412_calc_bank() local
97 bt->smbidcyr = calc_timing(bt->idcy, hclk, &err); in s3c2412_calc_bank()
98 bt->smbwstrd = calc_timing(bt->wstrd, hclk, &err); in s3c2412_calc_bank()
99 bt->smbwstwr = calc_timing(bt->wstwr, hclk, &err); in s3c2412_calc_bank()
100 bt->smbwstoen = calc_timing(bt->wstoen, hclk, &err); in s3c2412_calc_bank()
101 bt->smbwstwen = calc_timing(bt->wstwen, hclk, &err); in s3c2412_calc_bank()
102 bt->smbwstbrd = calc_timing(bt->wstbrd, hclk, &err); in s3c2412_calc_bank()
271 refresh = (cfg->freq.hclk / 100) * (board->refresh / 10); in s3c2412_cpufreq_setrefresh()
A Dmach-osiris-dvs.c44 return f->armclk == f->hclk; in is_dvs()
63 freqs->old.armclk, freqs->old.hclk, in osiris_dvs_notify()
64 freqs->new.armclk, freqs->new.hclk); in osiris_dvs_notify()
/linux/arch/arm/mach-mv78xx0/
A Dcommon.c50 int hclk; in get_hclk() local
57 hclk = 166666667; in get_hclk()
60 hclk = 200000000; in get_hclk()
63 hclk = 266666667; in get_hclk()
66 hclk = 333333333; in get_hclk()
69 hclk = 400000000; in get_hclk()
76 return hclk; in get_hclk()
97 *pclk = ((u64)hclk * (2 + (cfg & 0xf))) >> 1; in get_pclk_l2clk()
388 int hclk; in mv78xx0_init() local
393 hclk = get_hclk(); in mv78xx0_init()
[all …]
/linux/drivers/soc/qcom/
A Dqcom_gsbi.c111 struct clk *hclk; member
181 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe()
182 if (IS_ERR(gsbi->hclk)) in gsbi_probe()
183 return PTR_ERR(gsbi->hclk); in gsbi_probe()
185 clk_prepare_enable(gsbi->hclk); in gsbi_probe()
216 clk_disable_unprepare(gsbi->hclk); in gsbi_probe()
224 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
/linux/drivers/net/ethernet/cadence/
A Dmacb_pci.c69 plat_data.hclk = clk_register_fixed_rate(&pdev->dev, "hclk", NULL, 0, in macb_probe()
71 if (IS_ERR(plat_data.hclk)) { in macb_probe()
72 err = PTR_ERR(plat_data.hclk); in macb_probe()
100 clk_unregister(plat_data.hclk); in macb_probe()
115 clk_unregister(plat_data->hclk); in macb_remove()
/linux/sound/soc/rockchip/
A Drockchip_spdif.c37 struct clk *hclk; member
73 clk_disable_unprepare(spdif->hclk); in rk_spdif_runtime_suspend()
89 ret = clk_prepare_enable(spdif->hclk); in rk_spdif_runtime_resume()
101 clk_disable_unprepare(spdif->hclk); in rk_spdif_runtime_resume()
312 spdif->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_spdif_probe()
313 if (IS_ERR(spdif->hclk)) in rk_spdif_probe()
314 return PTR_ERR(spdif->hclk); in rk_spdif_probe()
A Drockchip_pdm.c34 struct clk *hclk; member
415 clk_disable_unprepare(pdm->hclk); in rockchip_pdm_runtime_suspend()
431 ret = clk_prepare_enable(pdm->hclk); in rockchip_pdm_runtime_resume()
613 pdm->hclk = devm_clk_get(&pdev->dev, "pdm_hclk"); in rockchip_pdm_probe()
614 if (IS_ERR(pdm->hclk)) in rockchip_pdm_probe()
615 return PTR_ERR(pdm->hclk); in rockchip_pdm_probe()
617 ret = clk_prepare_enable(pdm->hclk); in rockchip_pdm_probe()
657 clk_disable_unprepare(pdm->hclk); in rockchip_pdm_probe()
671 clk_disable_unprepare(pdm->hclk); in rockchip_pdm_remove()
/linux/drivers/clk/samsung/
A Dclk-s5pv210-audss.c70 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local
86 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe()
87 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe()
89 return PTR_ERR(hclk); in s5pv210_audss_clk_probe()
140 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
/linux/arch/arm/boot/dts/
A Dste-nomadik-stn8815.dtsi227 hclk: hclk@0 { label
238 clocks = <&hclk>;
302 clocks = <&hclk>;
308 clocks = <&hclk>;
314 clocks = <&hclk>;
320 clocks = <&hclk>;
326 clocks = <&hclk>;
380 clocks = <&hclk>;
386 clocks = <&hclk>;
392 clocks = <&hclk>;
[all …]
/linux/Documentation/devicetree/bindings/usb/
A Datmel-usb.txt13 "hclk" for the host clock
25 clock-names = "ohci_clk", "hclk", "uhpck";
67 "hclk" for the AHB clock
78 clock-names = "pclk", "hclk";
95 "hclk" for the host clock
120 clock-names = "hclk", "pclk";
/linux/drivers/mmc/host/
A Dtmio_mmc.c62 divisor = host->pdata->hclk / new_clock; in tmio_mmc_set_clock()
131 if (!pdata || !pdata->hclk) in tmio_mmc_probe()
164 host->mmc->f_max = pdata->hclk; in tmio_mmc_probe()
165 host->mmc->f_min = pdata->hclk / 512; in tmio_mmc_probe()
/linux/drivers/spi/
A Dspi-sun4i.c80 struct clk *hclk; member
393 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume()
411 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume()
422 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend()
473 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe()
474 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe()
476 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
A Dspi-rockchip-sfc.c175 struct clk *hclk; member
590 sfc->hclk = devm_clk_get(&pdev->dev, "hclk_sfc"); in rockchip_sfc_probe()
591 if (IS_ERR(sfc->hclk)) { in rockchip_sfc_probe()
593 return PTR_ERR(sfc->hclk); in rockchip_sfc_probe()
613 ret = clk_prepare_enable(sfc->hclk); in rockchip_sfc_probe()
656 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_probe()
669 clk_disable_unprepare(sfc->hclk); in rockchip_sfc_remove()
A Dspi-sun6i.c93 struct clk *hclk; member
492 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume()
518 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume()
530 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend()
599 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe()
600 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe()
602 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
/linux/arch/arm64/boot/dts/xilinx/
A Dzynqmp-clk-ccf.dtsi138 clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
145 clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
152 clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
159 clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
/linux/drivers/crypto/rockchip/
A Drk3288_crypto.c37 err = clk_prepare_enable(dev->hclk); in rk_crypto_enable_clk()
51 clk_disable_unprepare(dev->hclk); in rk_crypto_enable_clk()
63 clk_disable_unprepare(dev->hclk); in rk_crypto_disable_clk()
354 crypto_info->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_crypto_probe()
355 if (IS_ERR(crypto_info->hclk)) { in rk_crypto_probe()
356 err = PTR_ERR(crypto_info->hclk); in rk_crypto_probe()
/linux/drivers/slimbus/
A Dqcom-ctrl.c117 struct clk *hclk; member
282 clk_prepare_enable(ctrl->hclk); in qcom_clk_pause_wakeup()
498 ctrl->hclk = devm_clk_get(&pdev->dev, "iface"); in qcom_slim_probe()
499 if (IS_ERR(ctrl->hclk)) in qcom_slim_probe()
500 return PTR_ERR(ctrl->hclk); in qcom_slim_probe()
565 ret = clk_prepare_enable(ctrl->hclk); in qcom_slim_probe()
626 clk_disable_unprepare(ctrl->hclk); in qcom_slim_probe()
640 clk_disable_unprepare(ctrl->hclk); in qcom_slim_remove()
661 clk_disable_unprepare(ctrl->hclk); in qcom_slim_runtime_suspend()
/linux/drivers/usb/host/
A Dohci-at91.c54 struct clk *hclk; member
79 clk_prepare_enable(ohci_at91->hclk); in at91_start_clock()
92 clk_disable_unprepare(ohci_at91->hclk); in at91_stop_clock()
211 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe()
212 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe()
214 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()

Completed in 47 milliseconds

12345