Home
last modified time | relevance | path

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

/drivers/gpu/drm/sun4i/
Dsun6i_drc.c21 struct clk *mod_clk; member
56 drc->mod_clk = devm_clk_get(dev, "mod"); in sun6i_drc_bind()
57 if (IS_ERR(drc->mod_clk)) { in sun6i_drc_bind()
59 ret = PTR_ERR(drc->mod_clk); in sun6i_drc_bind()
62 clk_prepare_enable(drc->mod_clk); in sun6i_drc_bind()
78 clk_disable_unprepare(drc->mod_clk); in sun6i_drc_unbind()
Dsun4i_hdmi_enc.c137 clk_set_rate(hdmi->mod_clk, mode->crtc_clock * 1000); in sun4i_hdmi_mode_set()
302 hdmi->mod_clk = devm_clk_get(dev, "mod"); in sun4i_hdmi_bind()
303 if (IS_ERR(hdmi->mod_clk)) { in sun4i_hdmi_bind()
305 ret = PTR_ERR(hdmi->mod_clk); in sun4i_hdmi_bind()
308 clk_prepare_enable(hdmi->mod_clk); in sun4i_hdmi_bind()
429 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_bind()
442 clk_disable_unprepare(hdmi->mod_clk); in sun4i_hdmi_unbind()
Dsun4i_backend.c399 backend->mod_clk = devm_clk_get(dev, "mod"); in sun4i_backend_bind()
400 if (IS_ERR(backend->mod_clk)) { in sun4i_backend_bind()
402 ret = PTR_ERR(backend->mod_clk); in sun4i_backend_bind()
405 clk_prepare_enable(backend->mod_clk); in sun4i_backend_bind()
444 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_bind()
464 clk_disable_unprepare(backend->mod_clk); in sun4i_backend_unbind()
Dsun8i_mixer.c310 mixer->mod_clk = devm_clk_get(dev, "mod"); in sun8i_mixer_bind()
311 if (IS_ERR(mixer->mod_clk)) { in sun8i_mixer_bind()
313 ret = PTR_ERR(mixer->mod_clk); in sun8i_mixer_bind()
316 clk_prepare_enable(mixer->mod_clk); in sun8i_mixer_bind()
366 clk_disable_unprepare(mixer->mod_clk); in sun8i_mixer_unbind()
Dsun8i_mixer.h120 struct clk *mod_clk; member
Dsun4i_backend.h151 struct clk *mod_clk; member
Dsun4i_hdmi.h169 struct clk *mod_clk; member
/drivers/clk/sunxi-ng/
Dccu-sun8i-de2.c154 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
177 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe()
178 if (IS_ERR(mod_clk)) { in sunxi_de2_clk_probe()
179 ret = PTR_ERR(mod_clk); in sunxi_de2_clk_probe()
201 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe()
224 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
/drivers/mtd/nand/
Dsunxi_nand.c274 struct clk *mod_clk; member
502 clk_set_rate(nfc->mod_clk, sunxi_nand->clk_rate); in sunxi_nfc_select_chip()
1730 real_clk_rate = clk_round_rate(nfc->mod_clk, chip->clk_rate); in sunxi_nfc_setup_data_interface()
2210 nfc->mod_clk = devm_clk_get(dev, "mod"); in sunxi_nfc_probe()
2211 if (IS_ERR(nfc->mod_clk)) { in sunxi_nfc_probe()
2213 ret = PTR_ERR(nfc->mod_clk); in sunxi_nfc_probe()
2217 ret = clk_prepare_enable(nfc->mod_clk); in sunxi_nfc_probe()
2274 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_probe()
2291 clk_disable_unprepare(nfc->mod_clk); in sunxi_nfc_remove()