Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/sun4i/
H 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()
H 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()
1196 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_probe()
1211 clk_rate_exclusive_put(dsi->mod_clk); in sun6i_dsi_remove()
H A Dsun6i_mipi_dsi.h29 struct clk *mod_clk; member
H A Dsun4i_frontend.h128 struct clk *mod_clk; member
H A Dsun4i_backend.h176 struct clk *mod_clk; member
H A Dsun4i_hdmi.h258 struct clk *mod_clk; member
/linux/drivers/phy/allwinner/
H A Dphy-sun6i-mipi-dphy.c189 struct clk *mod_clk; member
205 clk_prepare_enable(dphy->mod_clk); in sun6i_dphy_init()
206 clk_set_rate_exclusive(dphy->mod_clk, 150000000); in sun6i_dphy_init()
402 dphy_clk_rate = clk_get_rate(dphy->mod_clk); in sun6i_dphy_rx_power_on()
524 clk_rate_exclusive_put(dphy->mod_clk); in sun6i_dphy_exit()
525 clk_disable_unprepare(dphy->mod_clk); in sun6i_dphy_exit()
583 dphy->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun6i_dphy_probe()
584 if (IS_ERR(dphy->mod_clk)) { in sun6i_dphy_probe()
586 return PTR_ERR(dphy->mod_clk); in sun6i_dphy_probe()
/linux/drivers/clk/sunxi-ng/
H A Dccu-sun8i-de2.c255 struct clk *bus_clk, *mod_clk; in sunxi_de2_clk_probe() local
274 mod_clk = devm_clk_get(&pdev->dev, "mod"); in sunxi_de2_clk_probe()
275 if (IS_ERR(mod_clk)) in sunxi_de2_clk_probe()
276 return dev_err_probe(&pdev->dev, PTR_ERR(mod_clk), in sunxi_de2_clk_probe()
291 ret = clk_prepare_enable(mod_clk); in sunxi_de2_clk_probe()
324 clk_disable_unprepare(mod_clk); in sunxi_de2_clk_probe()
/linux/drivers/leds/
H A Dleds-sun50i-a100.c77 struct clk *mod_clk; member
304 unsigned long mod_freq = clk_get_rate(priv->mod_clk); in sun50i_a100_ledc_set_timing()
336 ret = clk_prepare_enable(priv->mod_clk); in sun50i_a100_ledc_resume()
374 clk_disable_unprepare(priv->mod_clk); in sun50i_a100_ledc_suspend()
449 priv->mod_clk = devm_clk_get(dev, "mod"); in sun50i_a100_ledc_probe()
450 if (IS_ERR(priv->mod_clk)) in sun50i_a100_ledc_probe()
451 return PTR_ERR(priv->mod_clk); in sun50i_a100_ledc_probe()
/linux/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c834 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in deinterlace_probe()
835 if (IS_ERR(dev->mod_clk)) { in deinterlace_probe()
838 return PTR_ERR(dev->mod_clk); in deinterlace_probe()
921 ret = clk_set_rate_exclusive(dev->mod_clk, 300000000); in deinterlace_runtime_resume()
942 ret = clk_prepare_enable(dev->mod_clk); in deinterlace_runtime_resume()
961 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_resume()
967 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_resume()
977 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_suspend()
982 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_suspend()
H A Dsun8i-di.h231 struct clk *mod_clk; member
/linux/sound/soc/sunxi/
H A Dsun4i-i2s.c213 struct clk *mod_clk; member
285 return clk_get_rate(i2s->mod_clk); in sun8i_i2s_get_bclk_parent_rate()
375 ret = clk_set_rate(i2s->mod_clk, clk_rate); in sun4i_i2s_set_clk_rate()
1325 ret = clk_prepare_enable(i2s->mod_clk); in sun4i_i2s_runtime_resume()
1342 clk_disable_unprepare(i2s->mod_clk); in sun4i_i2s_runtime_suspend()
1565 i2s->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun4i_i2s_probe()
1566 if (IS_ERR(i2s->mod_clk)) { in sun4i_i2s_probe()
1568 return PTR_ERR(i2s->mod_clk); in sun4i_i2s_probe()
/linux/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_rotate.c768 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in rotate_probe()
769 if (IS_ERR(dev->mod_clk)) { in rotate_probe()
772 return PTR_ERR(dev->mod_clk); in rotate_probe()
855 ret = clk_prepare_enable(dev->mod_clk); in rotate_runtime_resume()
872 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_resume()
885 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_suspend()
H A Dsun8i-rotate.h130 struct clk *mod_clk; member