Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/clk/bcm/
Dclk-bcm2835-aux.c21 struct clk *parent_clk; in bcm2835_aux_clk_probe() local
24 parent_clk = devm_clk_get(dev, NULL); in bcm2835_aux_clk_probe()
25 if (IS_ERR(parent_clk)) in bcm2835_aux_clk_probe()
26 return PTR_ERR(parent_clk); in bcm2835_aux_clk_probe()
27 parent = __clk_get_name(parent_clk); in bcm2835_aux_clk_probe()
/linux-6.6.21/drivers/clk/samsung/
Dclk-exynos-arm64.c91 struct clk *parent_clk; in exynos_arm64_enable_bus_clk() local
99 parent_clk = clk_get(dev, cmu->clk_name); in exynos_arm64_enable_bus_clk()
102 data->clk = parent_clk; in exynos_arm64_enable_bus_clk()
104 parent_clk = of_clk_get_by_name(np, cmu->clk_name); in exynos_arm64_enable_bus_clk()
107 if (IS_ERR(parent_clk)) in exynos_arm64_enable_bus_clk()
108 return PTR_ERR(parent_clk); in exynos_arm64_enable_bus_clk()
110 return clk_prepare_enable(parent_clk); in exynos_arm64_enable_bus_clk()
/linux-6.6.21/drivers/clk/
Dclk-bd718x7.c83 const char *parent_clk; in bd71837_clk_probe() local
100 parent_clk = of_clk_get_parent_name(parent->of_node, 0); in bd71837_clk_probe()
102 init.parent_names = &parent_clk; in bd71837_clk_probe()
103 if (!parent_clk) { in bd71837_clk_probe()
/linux-6.6.21/sound/soc/ti/
Domap-dmic.c282 struct clk *parent_clk, *mux; in omap_dmic_select_fclk() local
324 parent_clk = clk_get(dmic->dev, parent_clk_name); in omap_dmic_select_fclk()
325 if (IS_ERR(parent_clk)) { in omap_dmic_select_fclk()
333 clk_put(parent_clk); in omap_dmic_select_fclk()
341 ret = clk_set_parent(mux, parent_clk); in omap_dmic_select_fclk()
344 ret = clk_set_parent(mux, parent_clk); in omap_dmic_select_fclk()
358 clk_put(parent_clk); in omap_dmic_select_fclk()
Ddavinci-mcasp.c1834 struct clk *gfclk, *parent_clk; in mcasp_reparent_fck() local
1853 parent_clk = clk_get(NULL, parent_name); in mcasp_reparent_fck()
1854 if (IS_ERR(parent_clk)) { in mcasp_reparent_fck()
1856 ret = PTR_ERR(parent_clk); in mcasp_reparent_fck()
1860 ret = clk_set_parent(gfclk, parent_clk); in mcasp_reparent_fck()
1867 clk_put(parent_clk); in mcasp_reparent_fck()
/linux-6.6.21/drivers/iio/adc/
Dingenic-adc.c316 struct clk *parent_clk; in jz4725b_adc_init_clk_div() local
320 parent_clk = clk_get_parent(adc->clk); in jz4725b_adc_init_clk_div()
321 if (!parent_clk) { in jz4725b_adc_init_clk_div()
325 parent_rate = clk_get_rate(parent_clk); in jz4725b_adc_init_clk_div()
352 struct clk *parent_clk; in jz4770_adc_init_clk_div() local
356 parent_clk = clk_get_parent(adc->clk); in jz4770_adc_init_clk_div()
357 if (!parent_clk) { in jz4770_adc_init_clk_div()
361 parent_rate = clk_get_rate(parent_clk); in jz4770_adc_init_clk_div()
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/dss/
Ddss.c76 struct clk *parent_clk; member
522 if (dss.parent_clk == NULL) { in dss_div_calc()
537 prate = clk_get_rate(dss.parent_clk); in dss_div_calc()
587 if (dss.parent_clk == NULL) { in dss_setup_default_clock()
590 prate = clk_get_rate(dss.parent_clk); in dss_setup_default_clock()
753 dss.parent_clk = clk; in dss_get_clocks()
760 if (dss.parent_clk) in dss_put_clocks()
761 clk_put(dss.parent_clk); in dss_put_clocks()
/linux-6.6.21/drivers/mmc/host/
Dmeson-mx-sdio.c104 struct clk *parent_clk; member
564 clk_get_rate(host->parent_clk)); in meson_mx_mmc_add_host()
585 clk_fixed_factor_parent = __clk_get_name(host->parent_clk); in meson_mx_mmc_register_clks()
683 host->parent_clk = devm_clk_get(host->controller_dev, "clkin"); in meson_mx_mmc_probe()
684 if (IS_ERR(host->parent_clk)) { in meson_mx_mmc_probe()
685 ret = PTR_ERR(host->parent_clk); in meson_mx_mmc_probe()
/linux-6.6.21/sound/soc/sh/
Dsiu_dai.c628 struct clk *siu_clk, *parent_clk; in siu_dai_set_sysclk() local
665 parent_clk = clk_get(dai->dev, parent_name); in siu_dai_set_sysclk()
666 if (IS_ERR(parent_clk)) { in siu_dai_set_sysclk()
667 ret = PTR_ERR(parent_clk); in siu_dai_set_sysclk()
672 ret = clk_set_parent(siu_clk, parent_clk); in siu_dai_set_sysclk()
684 clk_put(parent_clk); in siu_dai_set_sysclk()
/linux-6.6.21/drivers/i2c/busses/
Di2c-aspeed.c1001 struct clk *parent_clk; in aspeed_i2c_probe_bus() local
1012 parent_clk = devm_clk_get(&pdev->dev, NULL); in aspeed_i2c_probe_bus()
1013 if (IS_ERR(parent_clk)) in aspeed_i2c_probe_bus()
1014 return PTR_ERR(parent_clk); in aspeed_i2c_probe_bus()
1015 bus->parent_clk_frequency = clk_get_rate(parent_clk); in aspeed_i2c_probe_bus()
1017 devm_clk_put(&pdev->dev, parent_clk); in aspeed_i2c_probe_bus()
Di2c-mt65xx.c871 static int mtk_i2c_set_speed(struct mtk_i2c *i2c, unsigned int parent_clk) in mtk_i2c_set_speed() argument
884 parent_clk /= i2c->clk_src_div; in mtk_i2c_set_speed()
894 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed()
/linux-6.6.21/drivers/gpu/drm/omapdrm/dss/
Ddss.c610 if (dss->parent_clk == NULL) { in dss_div_calc()
625 prate = clk_get_rate(dss->parent_clk); in dss_div_calc()
679 if (dss->parent_clk == NULL) { in dss_setup_default_clock()
682 prate = clk_get_rate(dss->parent_clk); in dss_setup_default_clock()
843 dss->parent_clk = clk; in dss_get_clocks()
850 if (dss->parent_clk) in dss_put_clocks()
851 clk_put(dss->parent_clk); in dss_put_clocks()
Ddss.h232 struct clk *parent_clk; member
/linux-6.6.21/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c1085 struct clk *parent_clk; in ingenic_drm_bind() local
1334 parent_clk = clk_get_parent(priv->lcd_clk); in ingenic_drm_bind()
1335 parent_rate = clk_get_rate(parent_clk); in ingenic_drm_bind()
1365 parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_bind()
1366 ret = clk_notifier_register(parent_clk, &priv->clock_nb); in ingenic_drm_bind()
1399 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_bind()
1416 struct clk *parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_unbind() local
1418 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_unbind()
/linux-6.6.21/drivers/clk/microchip/
Dclk-core.c390 struct clk_hw *parent_clk, *best_parent_clk = NULL; in roclk_determine_rate() local
398 parent_clk = clk_hw_get_parent_by_index(hw, i); in roclk_determine_rate()
399 if (!parent_clk) in roclk_determine_rate()
403 parent_rate = clk_hw_get_rate(parent_clk); in roclk_determine_rate()
410 best_parent_clk = parent_clk; in roclk_determine_rate()
/linux-6.6.21/sound/soc/stm/
Dstm32_i2s.c319 struct clk *parent_clk; in stm32_i2s_set_parent_clock() local
323 parent_clk = i2s->x11kclk; in stm32_i2s_set_parent_clock()
325 parent_clk = i2s->x8kclk; in stm32_i2s_set_parent_clock()
327 ret = clk_set_parent(i2s->i2sclk, parent_clk); in stm32_i2s_set_parent_clock()
Dstm32_sai_sub.c358 struct clk *parent_clk = sai->pdata->clk_x8k; in stm32_sai_set_parent_clock() local
362 parent_clk = sai->pdata->clk_x11k; in stm32_sai_set_parent_clock()
364 ret = clk_set_parent(sai->sai_ck, parent_clk); in stm32_sai_set_parent_clock()
/linux-6.6.21/drivers/spi/
Dspi-mt65xx.c161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1196 mdata->parent_clk = devm_clk_get(dev, "parent-clk"); in mtk_spi_probe()
1197 if (IS_ERR(mdata->parent_clk)) in mtk_spi_probe()
1198 return dev_err_probe(dev, PTR_ERR(mdata->parent_clk), in mtk_spi_probe()
1213 ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); in mtk_spi_probe()
/linux-6.6.21/drivers/tty/serial/
Dserial-tegra.c1289 struct clk *parent_clk = clk_get_parent(tup->uart_clk); in tegra_uart_set_termios() local
1290 unsigned long parent_clk_rate = clk_get_rate(parent_clk); in tegra_uart_set_termios()
/linux-6.6.21/sound/soc/codecs/
Drt5682s.c2642 struct clk *parent_clk; in rt5682s_wclk_set_rate() local
2656 parent_clk = clk_get_parent(hw->clk); in rt5682s_wclk_set_rate()
2657 if (!parent_clk) in rt5682s_wclk_set_rate()
/linux-6.6.21/drivers/clk/meson/
Dmeson8b.c3752 struct clk_hw *parent_clk; in meson8b_cpu_clk_notifier_cb() local
3758 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 0); in meson8b_cpu_clk_notifier_cb()
3763 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 1); in meson8b_cpu_clk_notifier_cb()
3770 ret = clk_hw_set_parent(nb_data->cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb()