Home
last modified time | relevance | path

Searched refs:mod_clk (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/gpu/drm/sun4i/
A Dsun6i_drc.c18 struct clk *mod_clk; member
53 drc->mod_clk = devm_clk_get(dev, "mod"); in sun6i_drc_bind()
54 if (IS_ERR(drc->mod_clk)) { in sun6i_drc_bind()
56 ret = PTR_ERR(drc->mod_clk); in sun6i_drc_bind()
60 ret = clk_set_rate_exclusive(drc->mod_clk, 300000000); in sun6i_drc_bind()
66 clk_prepare_enable(drc->mod_clk); in sun6i_drc_bind()
82 clk_rate_exclusive_put(drc->mod_clk); in sun6i_drc_unbind()
83 clk_disable_unprepare(drc->mod_clk); in sun6i_drc_unbind()
A Dsun4i_backend.c841 backend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_backend_bind()
842 if (IS_ERR(backend->mod_clk)) { in sun4i_backend_bind()
844 ret = PTR_ERR(backend->mod_clk); in sun4i_backend_bind()
848 ret = clk_set_rate_exclusive(backend->mod_clk, 300000000); in sun4i_backend_bind()
854 clk_prepare_enable(backend->mod_clk); in sun4i_backend_bind()
930 clk_rate_exclusive_put(backend->mod_clk); in sun4i_backend_bind()
931 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_bind()
951 clk_rate_exclusive_put(backend->mod_clk); in sun4i_backend_unbind()
952 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_unbind()
A Dsun8i_mixer.c423 mixer->mod_clk = devm_clk_get(dev, "mod"); in sun8i_mixer_bind()
424 if (IS_ERR(mixer->mod_clk)) { in sun8i_mixer_bind()
426 ret = PTR_ERR(mixer->mod_clk); in sun8i_mixer_bind()
436 clk_set_rate(mixer->mod_clk, mixer->cfg->mod_rate); in sun8i_mixer_bind()
438 clk_prepare_enable(mixer->mod_clk); in sun8i_mixer_bind()
514 clk_disable_unprepare(mixer->mod_clk); in sun8i_mixer_unbind()
A Dsun4i_hdmi_enc.c128 clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); in sun4i_hdmi_mode_set()
534 hdmi->mod_clk = devm_clk_get(dev, "mod"); in sun4i_hdmi_bind()
535 if (IS_ERR(hdmi->mod_clk)) { in sun4i_hdmi_bind()
537 ret = PTR_ERR(hdmi->mod_clk); in sun4i_hdmi_bind()
540 clk_prepare_enable(hdmi->mod_clk); in sun4i_hdmi_bind()
665 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_bind()
681 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_unbind()
A Dsun4i_frontend.c601 frontend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_frontend_bind()
602 if (IS_ERR(frontend->mod_clk)) { in sun4i_frontend_bind()
604 return PTR_ERR(frontend->mod_clk); in sun4i_frontend_bind()
650 clk_set_rate(frontend->mod_clk, 300000000); in sun4i_frontend_runtime_resume()
653 clk_prepare_enable(frontend->mod_clk); in sun4i_frontend_runtime_resume()
676 clk_disable_unprepare(frontend->mod_clk); in sun4i_frontend_runtime_suspend()
A Dsun6i_mipi_dsi.c733 clk_prepare_enable(dsi->mod_clk); in sun6i_dsi_encoder_enable()
811 clk_disable_unprepare(dsi->mod_clk); in sun6i_dsi_encoder_disable()
1156 dsi->mod_clk = devm_clk_get(dev, "mod"); in sun6i_dsi_probe()
1157 if (IS_ERR(dsi->mod_clk)) { in sun6i_dsi_probe()
1159 ret = PTR_ERR(dsi->mod_clk); in sun6i_dsi_probe()
1168 clk_set_rate_exclusive(dsi->mod_clk, 297000000); in sun6i_dsi_probe()
1194 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_probe()
1208 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_remove()
A Dsun6i_mipi_dsi.h24 struct clk *mod_clk; member
A Dsun4i_frontend.h127 struct clk *mod_clk; member
A Dsun8i_mixer.h179 struct clk *mod_clk; member
A Dsun4i_backend.h176 struct clk *mod_clk; member
A Dsun4i_hdmi.h258 struct clk *mod_clk; member
A Dsun8i_vi_layer.c177 ability = clk_get_rate(mixer->mod_clk); in sun8i_vi_layer_update_coord()
/linux/drivers/phy/allwinner/
A Dphy-sun6i-mipi-dphy.c89 struct clk *mod_clk; member
102 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init()
103 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init()
228 clk_rate_exclusive_put(dphy->mod_clk); in sun6i_dphy_exit()
229 clk_disable_unprepare(dphy->mod_clk); in sun6i_dphy_exit()
281 dphy->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun6i_dphy_probe()
282 if (IS_ERR(dphy->mod_clk)) { in sun6i_dphy_probe()
284 return PTR_ERR(dphy->mod_clk); in sun6i_dphy_probe()
/linux/drivers/staging/media/sunxi/cedrus/
A Dcedrus_hw.c153 clk_disable_unprepare(dev->mod_clk); in cedrus_hw_suspend()
171 ret = clk_prepare_enable(dev->mod_clk); in cedrus_hw_resume()
197 clk_disable_unprepare(dev->mod_clk); in cedrus_hw_resume()
249 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in cedrus_hw_probe()
250 if (IS_ERR(dev->mod_clk)) { in cedrus_hw_probe()
253 ret = PTR_ERR(dev->mod_clk); in cedrus_hw_probe()
281 ret = clk_set_rate(dev->mod_clk, variant->mod_rate); in cedrus_hw_probe()
A Dcedrus.h190 struct clk *mod_clk; member
/linux/drivers/clk/sunxi-ng/
A Dccu-sun8i-de2.c283 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
305 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe()
306 if (IS_ERR(mod_clk)) { in sunxi_de2_clk_probe()
307 ret = PTR_ERR(mod_clk); in sunxi_de2_clk_probe()
329 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe()
352 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
/linux/drivers/thermal/
A Dsun8i_thermal.c89 struct clk *mod_clk; member
348 tmdev->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun8i_ths_resource_init()
349 if (IS_ERR(tmdev->mod_clk)) in sun8i_ths_resource_init()
350 return PTR_ERR(tmdev->mod_clk); in sun8i_ths_resource_init()
361 ret = clk_set_rate(tmdev->mod_clk, 24000000); in sun8i_ths_resource_init()
365 ret = clk_prepare_enable(tmdev->mod_clk); in sun8i_ths_resource_init()
376 clk_disable_unprepare(tmdev->mod_clk); in sun8i_ths_resource_init()
537 clk_disable_unprepare(tmdev->mod_clk); in sun8i_ths_remove()
/linux/drivers/media/platform/sunxi/sun8i-di/
A Dsun8i-di.c838 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in deinterlace_probe()
839 if (IS_ERR(dev->mod_clk)) { in deinterlace_probe()
842 return PTR_ERR(dev->mod_clk); in deinterlace_probe()
927 ret = clk_set_rate_exclusive(dev->mod_clk, 300000000); in deinterlace_runtime_resume()
941 ret = clk_prepare_enable(dev->mod_clk); in deinterlace_runtime_resume()
969 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_resume()
973 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_resume()
985 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_suspend()
987 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_suspend()
A Dsun8i-di.h231 struct clk *mod_clk; member
/linux/sound/soc/sunxi/
A Dsun4i-i2s.c200 struct clk *mod_clk; member
272 return clk_get_rate(i2s->mod_clk); in sun8i_i2s_get_bclk_parent_rate()
362 ret = clk_set_rate(i2s->mod_clk, clk_rate); in sun4i_i2s_set_clk_rate()
1290 ret = clk_prepare_enable(i2s->mod_clk); in sun4i_i2s_runtime_resume()
1307 clk_disable_unprepare(i2s->mod_clk); in sun4i_i2s_runtime_suspend()
1500 i2s->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun4i_i2s_probe()
1501 if (IS_ERR(i2s->mod_clk)) { in sun4i_i2s_probe()
1503 return PTR_ERR(i2s->mod_clk); in sun4i_i2s_probe()
/linux/drivers/media/platform/sunxi/sun8i-rotate/
A Dsun8i_rotate.c772 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in rotate_probe()
773 if (IS_ERR(dev->mod_clk)) { in rotate_probe()
776 return PTR_ERR(dev->mod_clk); in rotate_probe()
861 ret = clk_prepare_enable(dev->mod_clk); in rotate_runtime_resume()
878 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_resume()
891 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_suspend()
A Dsun8i-rotate.h130 struct clk *mod_clk; member
/linux/drivers/mtd/nand/raw/
A Dsunxi_nand.c246 struct clk *mod_clk; member
438 clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_select_chip()
1550 real_clk_rate = clk_round_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_setup_interface()
2147 nfc->mod_clk = devm_clk_get(dev, "mod"); in sunxi_nfc_probe()
2148 if (IS_ERR(nfc->mod_clk)) { in sunxi_nfc_probe()
2150 ret = PTR_ERR(nfc->mod_clk); in sunxi_nfc_probe()
2154 ret = clk_prepare_enable(nfc->mod_clk); in sunxi_nfc_probe()
2207 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_probe()
2224 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_remove()

Completed in 45 milliseconds