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.c17 struct clk *mod_clk; member
52 drc->mod_clk = devm_clk_get(dev, "mod"); in sun6i_drc_bind()
53 if (IS_ERR(drc->mod_clk)) { in sun6i_drc_bind()
55 ret = PTR_ERR(drc->mod_clk); in sun6i_drc_bind()
59 ret = clk_set_rate_exclusive(drc->mod_clk, 300000000); in sun6i_drc_bind()
65 clk_prepare_enable(drc->mod_clk); in sun6i_drc_bind()
81 clk_rate_exclusive_put(drc->mod_clk); in sun6i_drc_unbind()
82 clk_disable_unprepare(drc->mod_clk); in sun6i_drc_unbind()
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/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/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/leds/
H A Dleds-sun50i-a100.c76 struct clk *mod_clk; member
303 unsigned long mod_freq = clk_get_rate(priv->mod_clk); in sun50i_a100_ledc_set_timing()
335 ret = clk_prepare_enable(priv->mod_clk); in sun50i_a100_ledc_resume()
373 clk_disable_unprepare(priv->mod_clk); in sun50i_a100_ledc_suspend()
448 priv->mod_clk = devm_clk_get(dev, "mod"); in sun50i_a100_ledc_probe()
449 if (IS_ERR(priv->mod_clk)) in sun50i_a100_ledc_probe()
450 return PTR_ERR(priv->mod_clk); in sun50i_a100_ledc_probe()
/linux/drivers/media/platform/sunxi/sun8i-di/
H A Dsun8i-di.c833 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in deinterlace_probe()
834 if (IS_ERR(dev->mod_clk)) { in deinterlace_probe()
837 return PTR_ERR(dev->mod_clk); in deinterlace_probe()
920 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()
960 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_resume()
966 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_resume()
976 clk_disable_unprepare(dev->mod_clk); in deinterlace_runtime_suspend()
981 clk_rate_exclusive_put(dev->mod_clk); in deinterlace_runtime_suspend()
H A Dsun8i-di.h231 struct clk *mod_clk; member
/linux/drivers/thermal/
H A Dsun8i_thermal.c92 struct clk *mod_clk; member
410 tmdev->mod_clk = devm_clk_get_enabled(&pdev->dev, "mod"); in sun8i_ths_resource_init()
411 if (IS_ERR(tmdev->mod_clk)) in sun8i_ths_resource_init()
412 return PTR_ERR(tmdev->mod_clk); in sun8i_ths_resource_init()
415 ret = clk_set_rate(tmdev->mod_clk, 24000000); in sun8i_ths_resource_init()
/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()
1563 i2s->mod_clk = devm_clk_get(&pdev->dev, "mod"); in sun4i_i2s_probe()
1564 if (IS_ERR(i2s->mod_clk)) in sun4i_i2s_probe()
1565 return dev_err_probe(&pdev->dev, PTR_ERR(i2s->mod_clk), in sun4i_i2s_probe()
/linux/drivers/media/platform/sunxi/sun8i-rotate/
H A Dsun8i_rotate.c767 dev->mod_clk = devm_clk_get(dev->dev, "mod"); in rotate_probe()
768 if (IS_ERR(dev->mod_clk)) { in rotate_probe()
771 return PTR_ERR(dev->mod_clk); in rotate_probe()
854 ret = clk_prepare_enable(dev->mod_clk); in rotate_runtime_resume()
871 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_resume()
884 clk_disable_unprepare(dev->mod_clk); in rotate_runtime_suspend()
H A Dsun8i-rotate.h130 struct clk *mod_clk; member