Home
last modified time | relevance | path

Searched refs:bus_clk (Results 1 – 25 of 46) sorted by relevance

12

/drivers/gpu/drm/sun4i/
Dsun6i_drc.c17 struct clk *bus_clk; member
45 drc->bus_clk = devm_clk_get(dev, "ahb"); in sun6i_drc_bind()
46 if (IS_ERR(drc->bus_clk)) { in sun6i_drc_bind()
48 ret = PTR_ERR(drc->bus_clk); in sun6i_drc_bind()
51 clk_prepare_enable(drc->bus_clk); in sun6i_drc_bind()
71 clk_disable_unprepare(drc->bus_clk); in sun6i_drc_bind()
84 clk_disable_unprepare(drc->bus_clk); in sun6i_drc_unbind()
Dsun8i_mixer.c446 mixer->bus_clk = devm_clk_get(dev, "bus"); in sun8i_mixer_bind()
447 if (IS_ERR(mixer->bus_clk)) { in sun8i_mixer_bind()
449 ret = PTR_ERR(mixer->bus_clk); in sun8i_mixer_bind()
452 clk_prepare_enable(mixer->bus_clk); in sun8i_mixer_bind()
532 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_bind()
546 clk_disable_unprepare(mixer->bus_clk); in sun8i_mixer_unbind()
Dsun4i_hdmi_enc.c520 hdmi->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_hdmi_bind()
521 if (IS_ERR(hdmi->bus_clk)) { in sun4i_hdmi_bind()
523 ret = PTR_ERR(hdmi->bus_clk); in sun4i_hdmi_bind()
526 clk_prepare_enable(hdmi->bus_clk); in sun4i_hdmi_bind()
661 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_bind()
676 clk_disable_unprepare(hdmi->bus_clk); in sun4i_hdmi_unbind()
Dsun4i_frontend.c594 frontend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_frontend_bind()
595 if (IS_ERR(frontend->bus_clk)) { in sun4i_frontend_bind()
597 return PTR_ERR(frontend->bus_clk); in sun4i_frontend_bind()
649 clk_prepare_enable(frontend->bus_clk); in sun4i_frontend_runtime_resume()
674 clk_disable_unprepare(frontend->bus_clk); in sun4i_frontend_runtime_suspend()
Dsun4i_backend.c834 backend->bus_clk = devm_clk_get(dev, "ahb"); in sun4i_backend_bind()
835 if (IS_ERR(backend->bus_clk)) { in sun4i_backend_bind()
837 ret = PTR_ERR(backend->bus_clk); in sun4i_backend_bind()
840 clk_prepare_enable(backend->bus_clk); in sun4i_backend_bind()
934 clk_disable_unprepare(backend->bus_clk); in sun4i_backend_bind()
954 clk_disable_unprepare(backend->bus_clk); in sun4i_backend_unbind()
/drivers/clk/sunxi-ng/
Dccu-sun9i-a80-usb.c95 struct clk *bus_clk; in sun9i_a80_usb_clk_probe() local
103 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_usb_clk_probe()
104 if (IS_ERR(bus_clk)) in sun9i_a80_usb_clk_probe()
105 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sun9i_a80_usb_clk_probe()
109 ret = clk_prepare_enable(bus_clk); in sun9i_a80_usb_clk_probe()
122 clk_disable_unprepare(bus_clk); in sun9i_a80_usb_clk_probe()
Dccu-sun9i-a80-de.c206 struct clk *bus_clk; in sun9i_a80_de_clk_probe() local
215 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun9i_a80_de_clk_probe()
216 if (IS_ERR(bus_clk)) in sun9i_a80_de_clk_probe()
217 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sun9i_a80_de_clk_probe()
226 ret = clk_prepare_enable(bus_clk); in sun9i_a80_de_clk_probe()
249 clk_disable_unprepare(bus_clk); in sun9i_a80_de_clk_probe()
Dccu-sun8i-de2.c244 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
258 bus_clk = devm_clk_get(&pdev->dev, "bus"); in sunxi_de2_clk_probe()
259 if (IS_ERR(bus_clk)) in sunxi_de2_clk_probe()
260 return dev_err_probe(&pdev->dev, PTR_ERR(bus_clk), in sunxi_de2_clk_probe()
274 ret = clk_prepare_enable(bus_clk); in sunxi_de2_clk_probe()
305 clk_disable_unprepare(bus_clk); in sunxi_de2_clk_probe()
/drivers/watchdog/
Dgef_wdt.c66 static unsigned int bus_clk; variable
126 if (timeout > 0xFFFFFFFF / bus_clk) in gef_wdt_set_timeout()
127 timeout = 0xFFFFFFFF / bus_clk; in gef_wdt_set_timeout()
130 gef_wdt_count = (timeout * bus_clk) >> 8; in gef_wdt_set_timeout()
268 bus_clk = 133; /* in MHz */ in gef_wdt_probe()
272 bus_clk = freq; in gef_wdt_probe()
Ds3c2410_wdt.c166 struct clk *bus_clk; /* for register interface (PCLK) */ member
299 return clk_get_rate(wdt->src_clk ? wdt->src_clk : wdt->bus_clk); in s3c2410wdt_get_freq()
659 wdt->bus_clk = devm_clk_get_enabled(dev, "watchdog"); in s3c2410wdt_probe()
660 if (IS_ERR(wdt->bus_clk)) in s3c2410wdt_probe()
661 return dev_err_probe(dev, PTR_ERR(wdt->bus_clk), "failed to get bus clock\n"); in s3c2410wdt_probe()
/drivers/i2c/busses/
Di2c-bcm2835.c66 struct clk *bus_clk; member
431 i2c_dev->bus_clk = bcm2835_i2c_register_div(&pdev->dev, mclk, i2c_dev); in bcm2835_i2c_probe()
433 if (IS_ERR(i2c_dev->bus_clk)) in bcm2835_i2c_probe()
434 return dev_err_probe(&pdev->dev, PTR_ERR(i2c_dev->bus_clk), in bcm2835_i2c_probe()
445 ret = clk_set_rate_exclusive(i2c_dev->bus_clk, bus_clk_rate); in bcm2835_i2c_probe()
450 ret = clk_prepare_enable(i2c_dev->bus_clk); in bcm2835_i2c_probe()
497 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_probe()
499 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_probe()
508 clk_rate_exclusive_put(i2c_dev->bus_clk); in bcm2835_i2c_remove()
509 clk_disable_unprepare(i2c_dev->bus_clk); in bcm2835_i2c_remove()
/drivers/mmc/host/
Dsdhci-of-dwcmshc.c92 struct clk *bus_clk; member
509 priv->bus_clk = devm_clk_get(dev, "bus"); in dwcmshc_probe()
510 if (!IS_ERR(priv->bus_clk)) in dwcmshc_probe()
511 clk_prepare_enable(priv->bus_clk); in dwcmshc_probe()
578 clk_disable_unprepare(priv->bus_clk); in dwcmshc_probe()
614 clk_disable_unprepare(priv->bus_clk); in dwcmshc_remove()
637 if (!IS_ERR(priv->bus_clk)) in dwcmshc_suspend()
638 clk_disable_unprepare(priv->bus_clk); in dwcmshc_suspend()
659 if (!IS_ERR(priv->bus_clk)) { in dwcmshc_resume()
660 ret = clk_prepare_enable(priv->bus_clk); in dwcmshc_resume()
[all …]
/drivers/usb/host/
Dxhci-histb.c37 struct clk *bus_clk; member
88 histb->bus_clk = devm_clk_get(dev, "bus"); in xhci_histb_clks_get()
89 if (IS_ERR(histb->bus_clk)) { in xhci_histb_clks_get()
91 return PTR_ERR(histb->bus_clk); in xhci_histb_clks_get()
119 ret = clk_prepare_enable(histb->bus_clk); in xhci_histb_host_enable()
152 clk_disable_unprepare(histb->bus_clk); in xhci_histb_host_enable()
164 clk_disable_unprepare(histb->bus_clk); in xhci_histb_host_disable()
/drivers/pci/controller/
Dpci-ftpci100.c119 struct clk *bus_clk; member
434 p->bus_clk = devm_clk_get_enabled(dev, "PCICLK"); in faraday_pci_probe()
435 if (IS_ERR(p->bus_clk)) in faraday_pci_probe()
436 return PTR_ERR(p->bus_clk); in faraday_pci_probe()
472 if (!IS_ERR(p->bus_clk)) { in faraday_pci_probe()
478 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
483 ret = clk_set_rate(p->bus_clk, 66000000); in faraday_pci_probe()
492 rate = clk_get_rate(p->bus_clk); in faraday_pci_probe()
/drivers/interconnect/qcom/
Dicc-rpm.c356 if (!qp->bus_clk_desc && !qp->bus_clk) in qcom_icc_set()
367 if (qp->bus_clk) { in qcom_icc_set()
371 return clk_set_rate(qp->bus_clk, active_rate); in qcom_icc_set()
451 qp->bus_clk = devm_clk_get_optional(dev, "bus"); in qnoc_probe()
452 if (IS_ERR(qp->bus_clk)) in qnoc_probe()
453 return PTR_ERR(qp->bus_clk); in qnoc_probe()
494 ret = clk_prepare_enable(qp->bus_clk); in qnoc_probe()
572 clk_disable_unprepare(qp->bus_clk); in qnoc_probe()
584 clk_disable_unprepare(qp->bus_clk); in qnoc_remove()
/drivers/pci/controller/dwc/
Dpcie-histb.c57 struct clk *bus_clk; member
213 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_disable()
241 ret = clk_prepare_enable(hipcie->bus_clk); in histb_pcie_host_enable()
281 clk_disable_unprepare(hipcie->bus_clk); in histb_pcie_host_enable()
369 hipcie->bus_clk = devm_clk_get(dev, "bus"); in histb_pcie_probe()
370 if (IS_ERR(hipcie->bus_clk)) { in histb_pcie_probe()
372 return PTR_ERR(hipcie->bus_clk); in histb_pcie_probe()
Dpci-exynos.c58 struct clk *bus_clk; member
74 ret = clk_prepare_enable(ep->bus_clk); in exynos_pcie_init_clk_resources()
90 clk_disable_unprepare(ep->bus_clk); in exynos_pcie_deinit_clk_resources()
341 ep->bus_clk = devm_clk_get(dev, "pcie_bus"); in exynos_pcie_probe()
342 if (IS_ERR(ep->bus_clk)) { in exynos_pcie_probe()
344 return PTR_ERR(ep->bus_clk); in exynos_pcie_probe()
/drivers/pwm/
Dpwm-sun4i.c85 struct clk *bus_clk; member
426 sun4ichip->bus_clk = devm_clk_get_optional(&pdev->dev, "bus"); in sun4i_pwm_probe()
427 if (IS_ERR(sun4ichip->bus_clk)) in sun4i_pwm_probe()
428 return dev_err_probe(&pdev->dev, PTR_ERR(sun4ichip->bus_clk), in sun4i_pwm_probe()
448 ret = clk_prepare_enable(sun4ichip->bus_clk); in sun4i_pwm_probe()
472 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_probe()
485 clk_disable_unprepare(sun4ichip->bus_clk); in sun4i_pwm_remove()
/drivers/media/platform/sunxi/sun4i-csi/
Dsun4i_csi.c186 csi->bus_clk = devm_clk_get(&pdev->dev, "bus"); in sun4i_csi_probe()
187 if (IS_ERR(csi->bus_clk)) { in sun4i_csi_probe()
189 return PTR_ERR(csi->bus_clk); in sun4i_csi_probe()
299 clk_prepare_enable(csi->bus_clk); in sun4i_csi_runtime_resume()
315 clk_disable_unprepare(csi->bus_clk); in sun4i_csi_runtime_suspend()
/drivers/rtc/
Drtc-sun6i.c740 struct clk *bus_clk = data; in sun6i_rtc_bus_clk_cleanup() local
742 clk_disable_unprepare(bus_clk); in sun6i_rtc_bus_clk_cleanup()
749 struct clk *bus_clk; in sun6i_rtc_probe() local
752 bus_clk = devm_clk_get_optional(dev, "bus"); in sun6i_rtc_probe()
753 if (IS_ERR(bus_clk)) in sun6i_rtc_probe()
754 return PTR_ERR(bus_clk); in sun6i_rtc_probe()
756 if (bus_clk) { in sun6i_rtc_probe()
757 ret = clk_prepare_enable(bus_clk); in sun6i_rtc_probe()
762 bus_clk); in sun6i_rtc_probe()
/drivers/tty/serial/8250/
D8250_mtk.c73 struct clk *bus_clk; member
438 clk_disable_unprepare(data->bus_clk); in mtk8250_runtime_suspend()
447 clk_prepare_enable(data->bus_clk); in mtk8250_runtime_resume()
493 data->bus_clk = devm_clk_get_enabled(&pdev->dev, "bus"); in mtk8250_probe_of()
494 if (IS_ERR(data->bus_clk)) in mtk8250_probe_of()
495 return PTR_ERR(data->bus_clk); in mtk8250_probe_of()
/drivers/video/fbdev/
Ds3c-fb.c206 struct clk *bus_clk; member
352 clk = clk_get_rate(sfb->bus_clk); in s3c_fb_calc_pixclk()
1390 sfb->bus_clk = devm_clk_get(dev, "lcd"); in s3c_fb_probe()
1391 if (IS_ERR(sfb->bus_clk)) in s3c_fb_probe()
1392 return dev_err_probe(dev, PTR_ERR(sfb->bus_clk), in s3c_fb_probe()
1395 clk_prepare_enable(sfb->bus_clk); in s3c_fb_probe()
1495 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_probe()
1521 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_remove()
1548 clk_disable_unprepare(sfb->bus_clk); in s3c_fb_suspend()
1565 clk_prepare_enable(sfb->bus_clk); in s3c_fb_resume()
[all …]
Datmel_lcdfb.c48 struct clk *bus_clk; member
867 clk_prepare_enable(sinfo->bus_clk); in atmel_lcdfb_start_clock()
873 clk_disable_unprepare(sinfo->bus_clk); in atmel_lcdfb_stop_clock()
1069 sinfo->bus_clk = clk_get(dev, "hclk"); in atmel_lcdfb_probe()
1070 if (IS_ERR(sinfo->bus_clk)) { in atmel_lcdfb_probe()
1071 ret = PTR_ERR(sinfo->bus_clk); in atmel_lcdfb_probe()
1218 clk_put(sinfo->bus_clk); in atmel_lcdfb_probe()
1242 clk_put(sinfo->bus_clk); in atmel_lcdfb_remove()
/drivers/thermal/
Dsun8i_thermal.c86 struct clk *bus_clk; member
356 tmdev->bus_clk = devm_clk_get_enabled(&pdev->dev, "bus"); in sun8i_ths_resource_init()
357 if (IS_ERR(tmdev->bus_clk)) in sun8i_ths_resource_init()
358 return PTR_ERR(tmdev->bus_clk); in sun8i_ths_resource_init()
/drivers/gpu/drm/exynos/
Dexynos_drm_fimd.c179 struct clk *bus_clk; member
376 clk_prepare_enable(ctx->bus_clk); in fimd_clear_channels()
406 clk_disable_unprepare(ctx->bus_clk); in fimd_clear_channels()
1231 ctx->bus_clk = devm_clk_get(dev, "fimd"); in fimd_probe()
1232 if (IS_ERR(ctx->bus_clk)) { in fimd_probe()
1234 return PTR_ERR(ctx->bus_clk); in fimd_probe()
1294 clk_disable_unprepare(ctx->bus_clk); in exynos_fimd_suspend()
1304 ret = clk_prepare_enable(ctx->bus_clk); in exynos_fimd_resume()

12