Home
last modified time | relevance | path

Searched refs:clk_parent (Results 1 – 25 of 25) sorted by relevance

/linux-6.6.21/drivers/clk/sunxi/
Dclk-sun8i-bus-gates.c23 enum { AHB1, AHB2, APB1, APB2, PARENT_MAX } clk_parent; in sun8i_h3_bus_gates_init() local
66 clk_parent = AHB2; in sun8i_h3_bus_gates_init()
68 clk_parent = AHB1; in sun8i_h3_bus_gates_init()
70 clk_parent = APB1; in sun8i_h3_bus_gates_init()
72 clk_parent = APB2; in sun8i_h3_bus_gates_init()
82 parents[clk_parent], in sun8i_h3_bus_gates_init()
Dclk-sun6i-apb0.c34 const char *clk_parent; in sun6i_a31_apb0_clk_probe() local
42 clk_parent = of_clk_get_parent_name(np, 0); in sun6i_a31_apb0_clk_probe()
43 if (!clk_parent) in sun6i_a31_apb0_clk_probe()
48 clk = clk_register_divider_table(&pdev->dev, clk_name, clk_parent, in sun6i_a31_apb0_clk_probe()
Dclk-sun6i-apb0-gates.c40 const char *clk_parent; in sun6i_a31_apb0_gates_clk_probe() local
58 clk_parent = of_clk_get_parent_name(np, 0); in sun6i_a31_apb0_gates_clk_probe()
59 if (!clk_parent) in sun6i_a31_apb0_gates_clk_probe()
79 clk_parent, 0, reg, i, in sun6i_a31_apb0_gates_clk_probe()
Dclk-sun8i-apb0.c26 const char *clk_parent; in sun8i_a23_apb0_register() local
30 clk_parent = of_clk_get_parent_name(node, 0); in sun8i_a23_apb0_register()
31 if (!clk_parent) in sun8i_a23_apb0_register()
37 clk = clk_register_divider(NULL, clk_name, clk_parent, 0, reg, in sun8i_a23_apb0_register()
Dclk-usb.c94 const char *clk_parent; in sunxi_usb_clk_setup() local
105 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_usb_clk_setup()
106 if (!clk_parent) in sunxi_usb_clk_setup()
128 clk_parent, 0, in sunxi_usb_clk_setup()
Dclk-simple-gates.c23 const char *clk_parent, *clk_name; in sunxi_simple_gates_setup() local
37 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_simple_gates_setup()
58 clk_parent, 0, in sunxi_simple_gates_setup()
Dclk-sun9i-mmc.c100 const char *clk_parent; in sun9i_a80_mmc_config_clk_probe() local
142 clk_parent = __clk_get_name(data->clk); in sun9i_a80_mmc_config_clk_probe()
148 clk_parent, 0, in sun9i_a80_mmc_config_clk_probe()
Dclk-sunxi.c780 const char *clk_parent; in sunxi_divider_clk_setup() local
789 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_divider_clk_setup()
797 clk = clk_register_divider_table(NULL, clk_name, clk_parent, 0, in sunxi_divider_clk_setup()
/linux-6.6.21/drivers/gpu/drm/tegra/
Drgb.c23 struct clk *clk_parent; member
130 if (!clk_is_match(rgb->clk_parent, rgb->pll_d_out0) && in tegra_rgb_pll_rate_change_allowed()
131 !clk_is_match(rgb->clk_parent, rgb->pll_d2_out0)) in tegra_rgb_pll_rate_change_allowed()
177 err = tegra_dc_state_setup_clock(dc, crtc_state, rgb->clk_parent, in tegra_rgb_encoder_atomic_check()
221 rgb->clk_parent = devm_clk_get(dc->dev, "parent"); in tegra_dc_rgb_probe()
222 if (IS_ERR(rgb->clk_parent)) { in tegra_dc_rgb_probe()
224 return PTR_ERR(rgb->clk_parent); in tegra_dc_rgb_probe()
227 err = clk_set_parent(rgb->clk, rgb->clk_parent); in tegra_dc_rgb_probe()
Ddpaux.c51 struct clk *clk_parent; member
488 dpaux->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_dpaux_probe()
489 if (IS_ERR(dpaux->clk_parent)) { in tegra_dpaux_probe()
491 PTR_ERR(dpaux->clk_parent)); in tegra_dpaux_probe()
492 return PTR_ERR(dpaux->clk_parent); in tegra_dpaux_probe()
495 err = clk_set_rate(dpaux->clk_parent, 270000000); in tegra_dpaux_probe()
612 clk_disable_unprepare(dpaux->clk_parent); in tegra_dpaux_suspend()
629 err = clk_prepare_enable(dpaux->clk_parent); in tegra_dpaux_resume()
650 clk_disable_unprepare(dpaux->clk_parent); in tegra_dpaux_resume()
Ddsi.c63 struct clk *clk_parent; member
1030 err = tegra_dc_state_setup_clock(dc, crtc_state, dsi->clk_parent, in tegra_dsi_encoder_atomic_check()
1186 err = clk_set_parent(parent, dsi->clk_parent); in tegra_dsi_setup_clocks()
1469 err = clk_set_parent(parent, dsi->clk_parent); in tegra_dsi_ganged_setup()
1610 dsi->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_dsi_probe()
1611 if (IS_ERR(dsi->clk_parent)) in tegra_dsi_probe()
1612 return dev_err_probe(&pdev->dev, PTR_ERR(dsi->clk_parent), in tegra_dsi_probe()
Dhdmi.c73 struct clk *clk_parent; member
1146 parent = clk_get_parent(hdmi->clk_parent); in tegra_hdmi_connector_mode_valid()
1444 err = tegra_dc_state_setup_clock(dc, crtc_state, hdmi->clk_parent, in tegra_hdmi_encoder_atomic_check()
1822 hdmi->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_hdmi_probe()
1823 if (IS_ERR(hdmi->clk_parent)) in tegra_hdmi_probe()
1824 return PTR_ERR(hdmi->clk_parent); in tegra_hdmi_probe()
1826 err = clk_set_parent(hdmi->clk, hdmi->clk_parent); in tegra_hdmi_probe()
Dsor.c415 struct clk *clk_parent; member
1826 err = tegra_dc_state_setup_clock(dc, crtc_state, sor->clk_parent, in tegra_sor_encoder_atomic_check()
2412 err = clk_set_parent(sor->clk, sor->clk_parent); in tegra_sor_hdmi_enable()
2420 rate = clk_get_rate(sor->clk_parent); in tegra_sor_hdmi_enable()
2839 err = clk_set_parent(sor->clk_pad, sor->clk_parent); in tegra_sor_dp_enable()
2856 err = clk_set_parent(sor->clk, sor->clk_parent); in tegra_sor_dp_enable()
3854 sor->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_sor_probe()
3855 if (IS_ERR(sor->clk_parent)) { in tegra_sor_probe()
3856 err = PTR_ERR(sor->clk_parent); in tegra_sor_probe()
/linux-6.6.21/drivers/clk/
Dclk-fsl-flexspi.c52 const char *clk_parent; in fsl_flexspi_clk_probe() local
74 clk_parent = of_clk_get_parent_name(np, 0); in fsl_flexspi_clk_probe()
75 if (!clk_parent) in fsl_flexspi_clk_probe()
80 hw = devm_clk_hw_register_divider_table(dev, clk_name, clk_parent, 0, in fsl_flexspi_clk_probe()
/linux-6.6.21/drivers/phy/socionext/
Dphy-uniphier-usb3ss.c57 struct clk *clk, *clk_ext, *clk_parent, *clk_parent_gio; member
161 ret = clk_prepare_enable(priv->clk_parent); in uniphier_u3ssphy_init()
190 clk_disable_unprepare(priv->clk_parent); in uniphier_u3ssphy_init()
202 clk_disable_unprepare(priv->clk_parent); in uniphier_u3ssphy_exit()
259 priv->clk_parent = devm_clk_get(dev, "link"); in uniphier_u3ssphy_probe()
260 if (IS_ERR(priv->clk_parent)) in uniphier_u3ssphy_probe()
261 return PTR_ERR(priv->clk_parent); in uniphier_u3ssphy_probe()
Dphy-uniphier-usb3hs.c71 struct clk *clk, *clk_parent, *clk_ext, *clk_parent_gio; member
258 ret = clk_prepare_enable(priv->clk_parent); in uniphier_u3hsphy_init()
298 clk_disable_unprepare(priv->clk_parent); in uniphier_u3hsphy_init()
310 clk_disable_unprepare(priv->clk_parent); in uniphier_u3hsphy_exit()
368 priv->clk_parent = devm_clk_get(dev, "link"); in uniphier_u3hsphy_probe()
369 if (IS_ERR(priv->clk_parent)) in uniphier_u3hsphy_probe()
370 return PTR_ERR(priv->clk_parent); in uniphier_u3hsphy_probe()
Dphy-uniphier-ahci.c22 struct clk *clk, *clk_parent, *clk_parent_gio; member
292 ret = clk_prepare_enable(priv->clk_parent); in uniphier_ahciphy_init()
317 clk_disable_unprepare(priv->clk_parent); in uniphier_ahciphy_init()
330 clk_disable_unprepare(priv->clk_parent); in uniphier_ahciphy_exit()
407 priv->clk_parent = devm_clk_get(dev, "link"); in uniphier_ahciphy_probe()
408 if (IS_ERR(priv->clk_parent)) in uniphier_ahciphy_probe()
409 return PTR_ERR(priv->clk_parent); in uniphier_ahciphy_probe()
/linux-6.6.21/sound/soc/apple/
Dmca.c133 struct clk *clk_parent; member
264 ret = clk_prepare_enable(cl->clk_parent); in mca_fe_enable_clocks()
283 clk_disable_unprepare(cl->clk_parent); in mca_fe_enable_clocks()
301 clk_disable_unprepare(cl->clk_parent); in mca_fe_disable_clocks()
671 ret = clk_set_rate(cl->clk_parent, bclk_ratio * samp_rate); in mca_fe_hw_params()
993 if (!IS_ERR_OR_NULL(cl->clk_parent)) in apple_mca_release()
994 clk_put(cl->clk_parent); in apple_mca_release()
1077 cl->clk_parent = of_clk_get(pdev->dev.of_node, i); in apple_mca_probe()
1078 if (IS_ERR(cl->clk_parent)) { in apple_mca_probe()
1080 i, PTR_ERR(cl->clk_parent)); in apple_mca_probe()
[all …]
/linux-6.6.21/include/trace/events/
Dclk.h165 DECLARE_EVENT_CLASS(clk_parent,
184 DEFINE_EVENT(clk_parent, clk_set_parent,
191 DEFINE_EVENT(clk_parent, clk_set_parent_complete,
/linux-6.6.21/drivers/i2c/busses/
Di2c-sprd.c448 struct clk *clk_i2c, *clk_parent; in sprd_i2c_clk_init() local
457 clk_parent = devm_clk_get(i2c_dev->dev, "source"); in sprd_i2c_clk_init()
458 if (IS_ERR(clk_parent)) { in sprd_i2c_clk_init()
461 clk_parent = NULL; in sprd_i2c_clk_init()
464 if (clk_set_parent(clk_i2c, clk_parent)) in sprd_i2c_clk_init()
/linux-6.6.21/sound/soc/mediatek/mt8195/
Dmt8195-dai-adda.c334 struct clk *clk_parent; in mtk_audio_hires_event() local
341 clk_parent = afe_priv->clk[MT8195_CLK_TOP_APLL1]; in mtk_audio_hires_event()
344 clk_parent = afe_priv->clk[MT8195_CLK_XTAL_26M]; in mtk_audio_hires_event()
349 mt8195_afe_set_clk_parent(afe, clk, clk_parent); in mtk_audio_hires_event()
/linux-6.6.21/drivers/spi/
Dspi-sprd.c861 struct clk *clk_spi, *clk_parent; in sprd_spi_clk_init() local
869 clk_parent = devm_clk_get(&pdev->dev, "source"); in sprd_spi_clk_init()
870 if (IS_ERR(clk_parent)) { in sprd_spi_clk_init()
872 clk_parent = NULL; in sprd_spi_clk_init()
881 if (!clk_set_parent(clk_spi, clk_parent)) in sprd_spi_clk_init()
/linux-6.6.21/drivers/tty/serial/
Dsprd_serial.c1109 struct clk *clk_uart, *clk_parent; in sprd_clk_init() local
1119 clk_parent = devm_clk_get(uport->dev, "source"); in sprd_clk_init()
1120 if (IS_ERR(clk_parent)) { in sprd_clk_init()
1123 clk_parent = NULL; in sprd_clk_init()
1126 if (!clk_uart || clk_set_parent(clk_uart, clk_parent)) in sprd_clk_init()
/linux-6.6.21/drivers/gpu/drm/imx/ipuv3/
Dimx-ldb.c102 struct clk *clk_parent[4]; /* original parent of clk_sel */ member
354 ret = clk_set_parent(ldb->clk_sel[mux], ldb->clk_parent[mux]); in imx_ldb_encoder_disable()
667 imx_ldb->clk_parent[i] = clk_get_parent(imx_ldb->clk_sel[i]); in imx_ldb_probe()
/linux-6.6.21/drivers/mmc/host/
Dmeson-gx-mmc.c427 const char *clk_parent[1]; in meson_mmc_clk_init() local
484 clk_parent[0] = __clk_get_name(host->mux_clk); in meson_mmc_clk_init()
485 init.parent_names = clk_parent; in meson_mmc_clk_init()