Home
last modified time | relevance | path

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

/linux/drivers/clk/sunxi/
H A Dclk-sun8i-bus-gates.c23 enum { AHB1, AHB2, APB1, APB2, PARENT_MAX } clk_parent; in sun8i_h3_bus_gates_init() local
64 clk_parent = AHB2; in sun8i_h3_bus_gates_init()
66 clk_parent = AHB1; in sun8i_h3_bus_gates_init()
68 clk_parent = APB1; in sun8i_h3_bus_gates_init()
70 clk_parent = APB2; in sun8i_h3_bus_gates_init()
80 parents[clk_parent], in sun8i_h3_bus_gates_init()
H A 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()
H A 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()
H A 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()
H A Dclk-usb.c97 const char *clk_parent; in sunxi_usb_clk_setup() local
108 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_usb_clk_setup()
109 if (!clk_parent) in sunxi_usb_clk_setup()
131 clk_parent, 0, in sunxi_usb_clk_setup()
H A Dclk-simple-gates.c23 const char *clk_parent, *clk_name; in sunxi_simple_gates_setup() local
35 clk_parent = of_clk_get_parent_name(node, 0); in sunxi_simple_gates_setup()
56 clk_parent, 0, in sunxi_simple_gates_setup()
H A 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()
H A 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/drivers/gpu/drm/tegra/
H A Drgb.c23 struct clk *clk_parent; member
140 if (!clk_is_match(rgb->clk_parent, rgb->pll_d_out0) && in tegra_rgb_pll_rate_change_allowed()
141 !clk_is_match(rgb->clk_parent, rgb->pll_d2_out0)) in tegra_rgb_pll_rate_change_allowed()
187 err = tegra_dc_state_setup_clock(dc, crtc_state, rgb->clk_parent, in tegra_rgb_encoder_atomic_check()
232 rgb->clk_parent = devm_clk_get(dc->dev, "parent"); in tegra_dc_rgb_probe()
233 if (IS_ERR(rgb->clk_parent)) { in tegra_dc_rgb_probe()
235 err = PTR_ERR(rgb->clk_parent); in tegra_dc_rgb_probe()
239 err = clk_set_parent(rgb->clk, rgb->clk_parent); in tegra_dc_rgb_probe()
H A 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()
618 clk_disable_unprepare(dpaux->clk_parent); in tegra_dpaux_suspend()
635 err = clk_prepare_enable(dpaux->clk_parent); in tegra_dpaux_resume()
656 clk_disable_unprepare(dpaux->clk_parent); in tegra_dpaux_resume()
H A Ddsi.c63 struct clk *clk_parent; member
1031 err = tegra_dc_state_setup_clock(dc, crtc_state, dsi->clk_parent, in tegra_dsi_encoder_atomic_check()
1187 err = clk_set_parent(parent, dsi->clk_parent); in tegra_dsi_setup_clocks()
1470 err = clk_set_parent(parent, dsi->clk_parent); in tegra_dsi_ganged_setup()
1619 dsi->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_dsi_probe()
1620 if (IS_ERR(dsi->clk_parent)) { in tegra_dsi_probe()
1621 err = dev_err_probe(&pdev->dev, PTR_ERR(dsi->clk_parent), in tegra_dsi_probe()
H A Dhdmi.c75 struct clk *clk_parent; member
1149 parent = clk_get_parent(hdmi->clk_parent); in tegra_hdmi_connector_mode_valid()
1447 err = tegra_dc_state_setup_clock(dc, crtc_state, hdmi->clk_parent, in tegra_hdmi_encoder_atomic_check()
1825 hdmi->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_hdmi_probe()
1826 if (IS_ERR(hdmi->clk_parent)) in tegra_hdmi_probe()
1827 return PTR_ERR(hdmi->clk_parent); in tegra_hdmi_probe()
1829 err = clk_set_parent(hdmi->clk, hdmi->clk_parent); in tegra_hdmi_probe()
H A Dsor.c417 struct clk *clk_parent; member
1829 err = tegra_dc_state_setup_clock(dc, crtc_state, sor->clk_parent, in tegra_sor_encoder_atomic_check()
2415 err = clk_set_parent(sor->clk, sor->clk_parent); in tegra_sor_hdmi_enable()
2423 rate = clk_get_rate(sor->clk_parent); in tegra_sor_hdmi_enable()
2842 err = clk_set_parent(sor->clk_pad, sor->clk_parent); in tegra_sor_dp_enable()
2859 err = clk_set_parent(sor->clk, sor->clk_parent); in tegra_sor_dp_enable()
3857 sor->clk_parent = devm_clk_get(&pdev->dev, "parent"); in tegra_sor_probe()
3858 if (IS_ERR(sor->clk_parent)) { in tegra_sor_probe()
3859 err = PTR_ERR(sor->clk_parent); in tegra_sor_probe()
/linux/drivers/clk/
H A 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/drivers/phy/socionext/
H A 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()
H A 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()
H A 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/include/trace/events/
H A 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/sound/soc/mediatek/mt8195/
H A Dmt8195-dai-adda.c250 struct clk *clk_parent; in mtk_audio_hires_event() local
257 clk_parent = afe_priv->clk[MT8195_CLK_TOP_APLL1]; in mtk_audio_hires_event()
260 clk_parent = afe_priv->clk[MT8195_CLK_XTAL_26M]; in mtk_audio_hires_event()
265 mt8195_afe_set_clk_parent(afe, clk, clk_parent); in mtk_audio_hires_event()
/linux/drivers/gpu/drm/imx/ipuv3/
H A Dimx-ldb.c88 struct clk *clk_parent[4]; /* original parent of clk_sel */ member
302 ret = clk_set_parent(ldb->clk_sel[mux], ldb->clk_parent[mux]); in imx_ldb_encoder_disable()
548 imx_ldb->clk_parent[i] = clk_get_parent(imx_ldb->clk_sel[i]); in imx_ldb_probe()
/linux/drivers/tty/serial/
H A Dsprd_serial.c1131 struct clk *clk_uart, *clk_parent; in sprd_clk_init() local
1141 clk_parent = devm_clk_get(uport->dev, "source"); in sprd_clk_init()
1142 if (IS_ERR(clk_parent)) { in sprd_clk_init()
1145 clk_parent = NULL; in sprd_clk_init()
1148 if (!clk_uart || clk_set_parent(clk_uart, clk_parent)) in sprd_clk_init()