Home
last modified time | relevance | path

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

12

/drivers/cpufreq/
Ds3c2412-cpufreq.c38 static struct clk *hclk; variable
46 unsigned long hclk, fclk, armclk, armdiv_clk; in s3c2412_cpufreq_calcdivs() local
51 hclk_max = cfg->max.hclk; in s3c2412_cpufreq_calcdivs()
63 cfg->freq.hclk, cfg->freq.pclk); in s3c2412_cpufreq_calcdivs()
79 cfg->freq.hclk = hclk = armdiv_clk / hdiv; in s3c2412_cpufreq_calcdivs()
85 cfg->freq.armclk = dvs ? hclk : armdiv_clk; in s3c2412_cpufreq_calcdivs()
88 __func__, armclk, hclk, armdiv, hdiv, cfg->divs.dvs); in s3c2412_cpufreq_calcdivs()
93 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2412_cpufreq_calcdivs()
95 if ((hclk / pdiv) > cfg->max.pclk) in s3c2412_cpufreq_calcdivs()
98 cfg->freq.pclk = hclk / pdiv; in s3c2412_cpufreq_calcdivs()
[all …]
Ds3c2440-cpufreq.c37 static struct clk *hclk; variable
60 unsigned long hclk, fclk, armclk; in s3c2440_cpufreq_calcdivs() local
65 hclk_max = cfg->max.hclk; in s3c2440_cpufreq_calcdivs()
83 hclk = (fclk / hdiv); in s3c2440_cpufreq_calcdivs()
84 if (hclk <= hclk_max || within_khz(hclk, hclk_max)) in s3c2440_cpufreq_calcdivs()
88 s3c_freq_dbg("%s: hclk %lu, div %d\n", __func__, hclk, hdiv); in s3c2440_cpufreq_calcdivs()
93 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2440_cpufreq_calcdivs()
95 if ((hclk / pdiv) > cfg->max.pclk) in s3c2440_cpufreq_calcdivs()
107 if (armclk < hclk) in s3c2440_cpufreq_calcdivs()
108 armclk = hclk; in s3c2440_cpufreq_calcdivs()
[all …]
Ds3c2410-cpufreq.c48 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
53 hclk_max = cfg->max.hclk; in s3c2410_cpufreq_calcdivs()
60 hdiv = (fclk > cfg->max.hclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
61 hclk = fclk / hdiv; in s3c2410_cpufreq_calcdivs()
63 if (hclk > cfg->max.hclk) { in s3c2410_cpufreq_calcdivs()
68 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
69 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
88 .hclk = 100000000,
141 s3c2410_cpufreq_info.max.hclk = 133000000; in s3c2410a_cpufreq_add()
Ds3c2416-cpufreq.c30 struct clk *hclk; member
134 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_enter_dvs()
135 ret = clk_set_parent(s3c_freq->armclk, s3c_freq->hclk); in s3c2416_cpufreq_enter_dvs()
192 if (clk_get_rate(s3c_freq->armdiv) > clk_get_rate(s3c_freq->hclk)) { in s3c2416_cpufreq_leave_dvs()
194 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs()
196 clk_get_rate(s3c_freq->hclk) / 1000); in s3c2416_cpufreq_leave_dvs()
199 clk_get_rate(s3c_freq->hclk) / 1000, ret); in s3c2416_cpufreq_leave_dvs()
245 ? clk_get_rate(s3c_freq->hclk) / 1000 in s3c2416_cpufreq_set_target()
390 s3c_freq->hclk = clk_get(NULL, "hclk"); in s3c2416_cpufreq_driver_init()
391 if (IS_ERR(s3c_freq->hclk)) { in s3c2416_cpufreq_driver_init()
[all …]
Ds3c24xx-cpufreq.c67 unsigned long fclk, pclk, hclk, armclk; in s3c_cpufreq_getcur() local
70 cfg->freq.hclk = hclk = clk_get_rate(clk_hclk); in s3c_cpufreq_getcur()
77 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_getcur()
79 cfg->divs.h_divisor = fclk / hclk; in s3c_cpufreq_getcur()
88 cfg->freq.hclk = pll / cfg->divs.h_divisor; in s3c_cpufreq_calc()
92 cfg->freq.hclk_tns = 1000000000 / (cfg->freq.hclk / 10); in s3c_cpufreq_calc()
108 cfg->freq.hclk, cfg->divs.h_divisor, in s3c_cpufreq_show()
190 if (cpu_new.freq.hclk != cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
213 s3c_cpufreq_updateclk(clk_hclk, cpu_new.freq.hclk); in s3c_cpufreq_settarget()
226 if (cpu_new.freq.hclk < cpu_cur.freq.hclk) { in s3c_cpufreq_settarget()
[all …]
Ds3c24xx-cpufreq-debugfs.c36 f->fclk, f->hclk, f->pclk, f->armclk); in show_max()
91 cfg->freq.hclk, print_ns(cfg->freq.hclk_tns)); in info_show()
92 seq_printf(seq, " PCLK %ld Hz\n", cfg->freq.hclk); in info_show()
Dhighbank-cpufreq.c37 unsigned long action, void *hclk) in hb_cpufreq_clk_notify() argument
39 struct clk_notifier_data *clk_data = hclk; in hb_cpufreq_clk_notify()
/drivers/soc/qcom/
Dqcom_gsbi.c119 struct clk *hclk; member
191 gsbi->hclk = devm_clk_get(&pdev->dev, "iface"); in gsbi_probe()
192 if (IS_ERR(gsbi->hclk)) in gsbi_probe()
193 return PTR_ERR(gsbi->hclk); in gsbi_probe()
195 clk_prepare_enable(gsbi->hclk); in gsbi_probe()
231 clk_disable_unprepare(gsbi->hclk); in gsbi_remove()
/drivers/clk/samsung/
Dclk-s5pv210-audss.c74 struct clk *hclk, *pll_ref, *pll_in, *cdclk, *sclk_audio; in s5pv210_audss_clk_probe() local
92 hclk = devm_clk_get(&pdev->dev, "hclk"); in s5pv210_audss_clk_probe()
93 if (IS_ERR(hclk)) { in s5pv210_audss_clk_probe()
95 return PTR_ERR(hclk); in s5pv210_audss_clk_probe()
146 hclk_p = __clk_get_name(hclk); in s5pv210_audss_clk_probe()
/drivers/spi/
Dspi-sun4i.c79 struct clk *hclk; member
338 ret = clk_prepare_enable(sspi->hclk); in sun4i_spi_runtime_resume()
356 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_resume()
367 clk_disable_unprepare(sspi->hclk); in sun4i_spi_runtime_suspend()
421 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun4i_spi_probe()
422 if (IS_ERR(sspi->hclk)) { in sun4i_spi_probe()
424 ret = PTR_ERR(sspi->hclk); in sun4i_spi_probe()
Dspi-sun6i.c84 struct clk *hclk; member
320 ret = clk_prepare_enable(sspi->hclk); in sun6i_spi_runtime_resume()
346 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_resume()
358 clk_disable_unprepare(sspi->hclk); in sun6i_spi_runtime_suspend()
412 sspi->hclk = devm_clk_get(&pdev->dev, "ahb"); in sun6i_spi_probe()
413 if (IS_ERR(sspi->hclk)) { in sun6i_spi_probe()
415 ret = PTR_ERR(sspi->hclk); in sun6i_spi_probe()
/drivers/crypto/rockchip/
Drk3288_crypto.c39 err = clk_prepare_enable(dev->hclk); in rk_crypto_enable_clk()
53 clk_disable_unprepare(dev->hclk); in rk_crypto_enable_clk()
65 clk_disable_unprepare(dev->hclk); in rk_crypto_disable_clk()
326 crypto_info->hclk = devm_clk_get(&pdev->dev, "hclk"); in rk_crypto_probe()
327 if (IS_ERR(crypto_info->hclk)) { in rk_crypto_probe()
328 err = PTR_ERR(crypto_info->hclk); in rk_crypto_probe()
Drk3288_crypto.h186 struct clk *hclk; member
/drivers/net/can/m_can/
Dm_can.c284 struct clk *hclk; member
546 err = clk_prepare_enable(priv->hclk); in m_can_get_berr_counter()
552 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter()
559 clk_disable_unprepare(priv->hclk); in m_can_get_berr_counter()
974 err = clk_prepare_enable(priv->hclk); in m_can_open()
1011 clk_disable_unprepare(priv->hclk); in m_can_open()
1022 clk_disable_unprepare(priv->hclk); in m_can_stop()
1188 struct clk *hclk, *cclk; in m_can_plat_probe() local
1191 hclk = devm_clk_get(&pdev->dev, "hclk"); in m_can_plat_probe()
1193 if (IS_ERR(hclk) || IS_ERR(cclk)) { in m_can_plat_probe()
[all …]
/drivers/usb/host/
Dohci-at91.c54 struct clk *hclk; member
81 clk_prepare_enable(ohci_at91->hclk); in at91_start_clock()
94 clk_disable_unprepare(ohci_at91->hclk); in at91_stop_clock()
208 ohci_at91->hclk = devm_clk_get(dev, "hclk"); in usb_hcd_at91_probe()
209 if (IS_ERR(ohci_at91->hclk)) { in usb_hcd_at91_probe()
211 retval = PTR_ERR(ohci_at91->hclk); in usb_hcd_at91_probe()
/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.c137 struct clk *hclk; member
509 ret = clk_enable(vop->hclk); in vop_enable()
556 clk_disable(vop->hclk); in vop_enable()
618 clk_disable(vop->hclk); in vop_crtc_disable()
1335 vop->hclk = devm_clk_get(vop->dev, "hclk_vop"); in vop_initial()
1336 if (IS_ERR(vop->hclk)) { in vop_initial()
1338 return PTR_ERR(vop->hclk); in vop_initial()
1364 ret = clk_prepare_enable(vop->hclk); in vop_initial()
1418 clk_disable(vop->hclk); in vop_initial()
1430 clk_disable_unprepare(vop->hclk); in vop_initial()
/drivers/net/ethernet/cadence/
Dmacb.c2358 struct clk **hclk, struct clk **tx_clk, in macb_clk_init() argument
2370 *hclk = devm_clk_get(&pdev->dev, "hclk"); in macb_clk_init()
2371 if (IS_ERR(*hclk)) { in macb_clk_init()
2372 err = PTR_ERR(*hclk); in macb_clk_init()
2391 err = clk_prepare_enable(*hclk); in macb_clk_init()
2415 clk_disable_unprepare(*hclk); in macb_clk_init()
2810 struct clk **hclk, struct clk **tx_clk, in at91ether_clk_init() argument
2815 *hclk = NULL; in at91ether_clk_init()
2947 struct clk *pclk, *hclk = NULL, *tx_clk = NULL, *rx_clk = NULL; in macb_probe() local
2975 err = clk_init(pdev, &pclk, &hclk, &tx_clk, &rx_clk); in macb_probe()
[all …]
Dmacb.h775 struct clk **hclk, struct clk **tx_clk,
821 struct clk *hclk; member
/drivers/mmc/host/
Dtmio_mmc.c71 if (!pdata || !pdata->hclk) in tmio_mmc_probe()
/drivers/usb/gadget/udc/
Datmel_usba_udc.c1739 ret = clk_prepare_enable(udc->hclk); in start_clock()
1754 clk_disable_unprepare(udc->hclk); in stop_clock()
2090 struct clk *pclk, *hclk; in usba_udc_probe() local
2113 hclk = devm_clk_get(&pdev->dev, "hclk"); in usba_udc_probe()
2114 if (IS_ERR(hclk)) in usba_udc_probe()
2115 return PTR_ERR(hclk); in usba_udc_probe()
2121 udc->hclk = hclk; in usba_udc_probe()
Datmel_usba_udc.h342 struct clk *hclk; member
/drivers/mfd/
Dtc6387xb.c122 .hclk = 24000000,
Dt7l66xb.c145 .hclk = 24000000,
Dtc6393xb.c391 .hclk = 24000000,
Dasic3.c721 .hclk = 24576000,

12