Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/sun4i/
Dsun6i_drc.c22 struct clk *mod_clk; member
57 drc->mod_clk = devm_clk_get(dev, "mod"); in sun6i_drc_bind()
58 if (IS_ERR(drc->mod_clk)) { in sun6i_drc_bind()
60 ret = PTR_ERR(drc->mod_clk); in sun6i_drc_bind()
63 clk_prepare_enable(drc->mod_clk); in sun6i_drc_bind()
79 clk_disable_unprepare(drc->mod_clk); in sun6i_drc_unbind()
Dsun6i_mipi_dphy.c87 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init()
88 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init()
194 clk_rate_exclusive_put(dphy->mod_clk); in sun6i_dphy_exit()
195 clk_disable_unprepare(dphy->mod_clk); in sun6i_dphy_exit()
263 dphy->mod_clk = of_clk_get_by_name(node, "mod"); in sun6i_dphy_probe()
264 if (IS_ERR(dphy->mod_clk)) { in sun6i_dphy_probe()
266 ret = PTR_ERR(dphy->mod_clk); in sun6i_dphy_probe()
287 clk_put(dphy->mod_clk); in sun6i_dphy_remove()
Dsun4i_frontend.c277 frontend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_frontend_bind()
278 if (IS_ERR(frontend->mod_clk)) { in sun4i_frontend_bind()
280 return PTR_ERR(frontend->mod_clk); in sun4i_frontend_bind()
326 clk_set_rate(frontend->mod_clk, 300000000); in sun4i_frontend_runtime_resume()
329 clk_prepare_enable(frontend->mod_clk); in sun4i_frontend_runtime_resume()
356 clk_disable_unprepare(frontend->mod_clk); in sun4i_frontend_runtime_suspend()
Dsun6i_mipi_dsi.h18 struct clk *mod_clk; member
29 struct clk *mod_clk; member
Dsun8i_mixer.c440 mixer->mod_clk = devm_clk_get(dev, "mod"); in sun8i_mixer_bind()
441 if (IS_ERR(mixer->mod_clk)) { in sun8i_mixer_bind()
443 ret = PTR_ERR(mixer->mod_clk); in sun8i_mixer_bind()
453 clk_set_rate(mixer->mod_clk, mixer->cfg->mod_rate); in sun8i_mixer_bind()
455 clk_prepare_enable(mixer->mod_clk); in sun8i_mixer_bind()
504 clk_disable_unprepare(mixer->mod_clk); in sun8i_mixer_unbind()
Dsun4i_hdmi_enc.c125 clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); in sun4i_hdmi_mode_set()
515 hdmi->mod_clk = devm_clk_get(dev, "mod"); in sun4i_hdmi_bind()
516 if (IS_ERR(hdmi->mod_clk)) { in sun4i_hdmi_bind()
518 ret = PTR_ERR(hdmi->mod_clk); in sun4i_hdmi_bind()
521 clk_prepare_enable(hdmi->mod_clk); in sun4i_hdmi_bind()
636 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_bind()
653 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_unbind()
Dsun4i_backend.c804 backend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_backend_bind()
805 if (IS_ERR(backend->mod_clk)) { in sun4i_backend_bind()
807 ret = PTR_ERR(backend->mod_clk); in sun4i_backend_bind()
810 clk_prepare_enable(backend->mod_clk); in sun4i_backend_bind()
884 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_bind()
904 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_unbind()
Dsun6i_mipi_dsi.c1004 dsi->mod_clk = devm_clk_get(dev, "mod"); in sun6i_dsi_probe()
1005 if (IS_ERR(dsi->mod_clk)) { in sun6i_dsi_probe()
1007 return PTR_ERR(dsi->mod_clk); in sun6i_dsi_probe()
1014 clk_set_rate_exclusive(dsi->mod_clk, 297000000); in sun6i_dsi_probe()
1046 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_probe()
1059 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_remove()
1069 clk_prepare_enable(dsi->mod_clk); in sun6i_dsi_runtime_resume()
1097 clk_disable_unprepare(dsi->mod_clk); in sun6i_dsi_runtime_suspend()
Dsun4i_frontend.h80 struct clk *mod_clk; member
Dsun8i_mixer.h147 struct clk *mod_clk; member
Dsun4i_backend.h181 struct clk *mod_clk; member
Dsun4i_hdmi.h262 struct clk *mod_clk; member
/Linux-v4.19/drivers/clk/sunxi-ng/
Dccu-sun8i-de2.c202 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
225 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe()
226 if (IS_ERR(mod_clk)) { in sunxi_de2_clk_probe()
227 ret = PTR_ERR(mod_clk); in sunxi_de2_clk_probe()
249 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe()
272 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
/Linux-v4.19/sound/soc/sunxi/
Dsun4i-i2s.c174 struct clk *mod_clk; member
308 ret = clk_set_rate(i2s->mod_clk, clk_rate); in sun4i_i2s_set_clk_rate()
662 return clk_prepare_enable(i2s->mod_clk); in sun4i_i2s_startup()
670 clk_disable_unprepare(i2s->mod_clk); in sun4i_i2s_shutdown()
1069 i2s->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun4i_i2s_probe()
1070 if (IS_ERR(i2s->mod_clk)) { in sun4i_i2s_probe()
1072 return PTR_ERR(i2s->mod_clk); in sun4i_i2s_probe()
/Linux-v4.19/drivers/mtd/nand/raw/
Dsunxi_nand.c239 struct clk *mod_clk; member
455 clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_select_chip()
1614 real_clk_rate = clk_round_rate(nfc->mod_clk, chip->clk_rate); in sunxi_nfc_setup_data_interface()
2032 nfc->mod_clk = devm_clk_get(dev, "mod"); in sunxi_nfc_probe()
2033 if (IS_ERR(nfc->mod_clk)) { in sunxi_nfc_probe()
2035 ret = PTR_ERR(nfc->mod_clk); in sunxi_nfc_probe()
2039 ret = clk_prepare_enable(nfc->mod_clk); in sunxi_nfc_probe()
2096 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_probe()
2113 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_remove()