Home
last modified time | relevance | path

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

/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()
/drivers/clk/
Dclk-bd718x7.c83 const char *parent_clk; in bd71837_clk_probe() local
97 parent_clk = of_clk_get_parent_name(parent->of_node, 0); in bd71837_clk_probe()
99 init.parent_names = &parent_clk; in bd71837_clk_probe()
100 if (!parent_clk) { in bd71837_clk_probe()
/drivers/iio/adc/
Dingenic-adc.c308 struct clk *parent_clk; in jz4725b_adc_init_clk_div() local
312 parent_clk = clk_get_parent(adc->clk); in jz4725b_adc_init_clk_div()
313 if (!parent_clk) { in jz4725b_adc_init_clk_div()
317 parent_rate = clk_get_rate(parent_clk); in jz4725b_adc_init_clk_div()
344 struct clk *parent_clk; in jz4770_adc_init_clk_div() local
348 parent_clk = clk_get_parent(adc->clk); in jz4770_adc_init_clk_div()
349 if (!parent_clk) { in jz4770_adc_init_clk_div()
353 parent_rate = clk_get_rate(parent_clk); in jz4770_adc_init_clk_div()
/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()
/drivers/mmc/host/
Dmeson-mx-sdio.c104 struct clk *parent_clk; member
565 clk_get_rate(host->parent_clk)); in meson_mx_mmc_add_host()
586 clk_fixed_factor_parent = __clk_get_name(host->parent_clk); in meson_mx_mmc_register_clks()
684 host->parent_clk = devm_clk_get(host->controller_dev, "clkin"); in meson_mx_mmc_probe()
685 if (IS_ERR(host->parent_clk)) { in meson_mx_mmc_probe()
686 ret = PTR_ERR(host->parent_clk); in meson_mx_mmc_probe()
/drivers/gpu/drm/ingenic/
Dingenic-drm-drv.c738 struct clk *parent_clk; in ingenic_drm_bind() local
955 parent_clk = clk_get_parent(priv->lcd_clk); in ingenic_drm_bind()
956 parent_rate = clk_get_rate(parent_clk); in ingenic_drm_bind()
987 parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_bind()
988 ret = clk_notifier_register(parent_clk, &priv->clock_nb); in ingenic_drm_bind()
1005 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_bind()
1027 struct clk *parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_unbind() local
1029 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_unbind()
/drivers/i2c/busses/
Di2c-aspeed.c992 struct clk *parent_clk; in aspeed_i2c_probe_bus() local
1005 parent_clk = devm_clk_get(&pdev->dev, NULL); in aspeed_i2c_probe_bus()
1006 if (IS_ERR(parent_clk)) in aspeed_i2c_probe_bus()
1007 return PTR_ERR(parent_clk); in aspeed_i2c_probe_bus()
1008 bus->parent_clk_frequency = clk_get_rate(parent_clk); in aspeed_i2c_probe_bus()
1010 devm_clk_put(&pdev->dev, parent_clk); in aspeed_i2c_probe_bus()
Di2c-mt65xx.c770 static int mtk_i2c_set_speed(struct mtk_i2c *i2c, unsigned int parent_clk) in mtk_i2c_set_speed() argument
783 parent_clk /= i2c->clk_src_div; in mtk_i2c_set_speed()
791 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed()
/drivers/clk/sirf/
Dclk-common.c169 struct clk_hw *parent_clk = clk_hw_get_parent(hw); in cpu_clk_round_rate() local
170 struct clk_hw *pll_parent_clk = clk_hw_get_parent(parent_clk); in cpu_clk_round_rate()
172 return pll_clk_round_rate(parent_clk, rate, &pll_parent_rate); in cpu_clk_round_rate()
182 struct clk_hw *parent_clk = clk_hw_get_parent(hw); in cpu_clk_recalc_rate() local
183 return clk_hw_get_rate(parent_clk); in cpu_clk_recalc_rate()
/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
/drivers/spi/
Dspi-mt65xx.c100 struct clk *parent_clk, *sel_clk, *spi_clk; member
719 mdata->parent_clk = devm_clk_get(&pdev->dev, "parent-clk"); in mtk_spi_probe()
720 if (IS_ERR(mdata->parent_clk)) { in mtk_spi_probe()
721 ret = PTR_ERR(mdata->parent_clk); in mtk_spi_probe()
746 ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); in mtk_spi_probe()
/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()
/drivers/tty/serial/
Dserial-tegra.c1281 struct clk *parent_clk = clk_get_parent(tup->uart_clk); in tegra_uart_set_termios() local
1282 unsigned long parent_clk_rate = clk_get_rate(parent_clk); in tegra_uart_set_termios()
/drivers/clk/meson/
Dmeson8b.c3697 struct clk_hw *parent_clk; in meson8b_cpu_clk_notifier_cb() local
3703 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 0); in meson8b_cpu_clk_notifier_cb()
3708 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 1); in meson8b_cpu_clk_notifier_cb()
3715 ret = clk_hw_set_parent(nb_data->cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb()