Home
last modified time | relevance | path

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

/external/u-boot/drivers/clk/rockchip/
Dclk_rk3288.c746 ulong new_rate, gclk_rate; in rk3288_clk_get_rate() local
751 new_rate = rkclk_pll_get_rate(priv->cru, clk->id); in rk3288_clk_get_rate()
759 new_rate = rockchip_mmc_get_clk(priv->cru, gclk_rate, clk->id); in rk3288_clk_get_rate()
764 new_rate = rockchip_spi_get_clk(priv->cru, gclk_rate, clk->id); in rk3288_clk_get_rate()
776 new_rate = rockchip_saradc_get_clk(priv->cru); in rk3288_clk_get_rate()
782 return new_rate; in rk3288_clk_get_rate()
789 ulong new_rate, gclk_rate; in rk3288_clk_set_rate() local
798 new_rate = rate; in rk3288_clk_set_rate()
801 new_rate = rkclk_configure_ddr(priv->cru, priv->grf, rate); in rk3288_clk_set_rate()
809 new_rate = rockchip_mmc_set_clk(cru, gclk_rate, clk->id, rate); in rk3288_clk_set_rate()
[all …]
Dclk_rv1108.c574 ulong new_rate; in rv1108_clk_set_rate() local
578 new_rate = rv1108_mac_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
581 new_rate = rv1108_sfc_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
584 new_rate = rv1108_saradc_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
587 new_rate = rv1108_aclk_vio0_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
590 new_rate = rv1108_aclk_vio1_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
593 new_rate = rv1108_dclk_vop_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
596 new_rate = rv1108_aclk_bus_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
599 new_rate = rv1108_aclk_peri_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
602 new_rate = rv1108_hclk_peri_set_clk(priv->cru, rate); in rv1108_clk_set_rate()
[all …]
Dclk_rk3188.c461 ulong new_rate, gclk_rate; in rk3188_clk_get_rate() local
466 new_rate = rkclk_pll_get_rate(priv->cru, clk->id); in rk3188_clk_get_rate()
474 new_rate = rockchip_mmc_get_clk(priv->cru, PERI_HCLK_HZ, in rk3188_clk_get_rate()
479 new_rate = rockchip_spi_get_clk(priv->cru, PERI_PCLK_HZ, in rk3188_clk_get_rate()
492 return new_rate; in rk3188_clk_get_rate()
499 ulong new_rate; in rk3188_clk_set_rate() local
503 new_rate = rkclk_configure_cpu(priv->cru, priv->grf, rate, in rk3188_clk_set_rate()
507 new_rate = rkclk_configure_ddr(priv->cru, priv->grf, rate, in rk3188_clk_set_rate()
516 new_rate = rockchip_mmc_set_clk(cru, PERI_HCLK_HZ, in rk3188_clk_set_rate()
521 new_rate = rockchip_spi_set_clk(cru, PERI_PCLK_HZ, in rk3188_clk_set_rate()
[all …]
Dclk_rk3128.c508 ulong new_rate, gclk_rate; in rk3128_clk_set_rate() local
517 new_rate = rk3128_vop_set_clk(priv->cru, in rk3128_clk_set_rate()
521 new_rate = rockchip_mmc_set_clk(priv->cru, gclk_rate, in rk3128_clk_set_rate()
529 new_rate = rk3128_peri_set_pclk(priv->cru, clk->id, rate); in rk3128_clk_set_rate()
532 new_rate = rk3128_saradc_set_clk(priv->cru, rate); in rk3128_clk_set_rate()
538 return new_rate; in rk3128_clk_set_rate()
Dclk_rk322x.c375 ulong new_rate, gclk_rate; in rk322x_clk_set_rate() local
383 new_rate = rockchip_mmc_set_clk(priv->cru, gclk_rate, in rk322x_clk_set_rate()
387 new_rate = rk322x_ddr_set_clk(priv->cru, rate); in rk322x_clk_set_rate()
390 new_rate = rk322x_mac_set_clk(priv->cru, rate); in rk322x_clk_set_rate()
398 return new_rate; in rk322x_clk_set_rate()
Dclk_rk3036.c294 ulong new_rate, gclk_rate; in rk3036_clk_set_rate() local
302 new_rate = rockchip_mmc_set_clk(priv->cru, gclk_rate, in rk3036_clk_set_rate()
309 return new_rate; in rk3036_clk_set_rate()
Dclk_rk3368.c224 ulong new_rate = parent_rate / adj_div; in rk3368_mmc_find_best_rate_and_parent() local
234 if (new_rate <= best_rate) in rk3368_mmc_find_best_rate_and_parent()
238 best_rate = new_rate; in rk3368_mmc_find_best_rate_and_parent()
/external/u-boot/drivers/clk/
Dclk_zynq.c292 ulong new_rate, best_rate = 0; in zynq_clk_calc_peripheral_two_divs() local
297 new_rate = DIV_ROUND_CLOSEST( in zynq_clk_calc_peripheral_two_divs()
299 new_err = abs(new_rate - rate); in zynq_clk_calc_peripheral_two_divs()
305 best_rate = new_rate; in zynq_clk_calc_peripheral_two_divs()
319 ulong pll_rate, new_rate; in zynq_clk_set_peripheral_rate() local
330 new_rate = zynq_clk_calc_peripheral_two_divs(rate, pll_rate, in zynq_clk_set_peripheral_rate()
337 new_rate = DIV_ROUND_CLOSEST(rate, div0); in zynq_clk_set_peripheral_rate()
345 return new_rate; in zynq_clk_set_peripheral_rate()
Dclk_zynqmp.c498 ulong new_rate, best_rate = 0; in zynqmp_clk_calc_peripheral_two_divs() local
503 new_rate = DIV_ROUND_CLOSEST( in zynqmp_clk_calc_peripheral_two_divs()
505 new_err = abs(new_rate - rate); in zynqmp_clk_calc_peripheral_two_divs()
511 best_rate = new_rate; in zynqmp_clk_calc_peripheral_two_divs()
525 ulong pll_rate, new_rate; in zynqmp_clk_set_peripheral_rate() local
545 new_rate = zynqmp_clk_calc_peripheral_two_divs(rate, pll_rate, in zynqmp_clk_set_peripheral_rate()
552 new_rate = DIV_ROUND_CLOSEST(rate, div0); in zynqmp_clk_set_peripheral_rate()
565 return new_rate; in zynqmp_clk_set_peripheral_rate()
/external/u-boot/drivers/clk/aspeed/
Dclk_ast2500.c385 ulong new_rate; in ast2500_configure_d2pll() local
399 new_rate = ast2500_calc_clock_config(clkin, rate, &div_cfg); in ast2500_configure_d2pll()
422 return new_rate; in ast2500_configure_d2pll()
429 ulong new_rate; in ast2500_clk_set_rate() local
433 new_rate = ast2500_configure_ddr(priv->scu, rate); in ast2500_clk_set_rate()
436 new_rate = ast2500_configure_d2pll(priv->scu, rate); in ast2500_clk_set_rate()
442 return new_rate; in ast2500_clk_set_rate()
/external/u-boot/drivers/clk/imx/
Dclk-imx8qxp.c140 u32 new_rate = rate; in imx8_clk_set_rate() local
218 ret = sc_pm_set_clock_rate(-1, resource, pm_clk, &new_rate); in imx8_clk_set_rate()
224 return new_rate; in imx8_clk_set_rate()
Dclk-imx8qm.c143 u32 new_rate = rate; in imx8_clk_set_rate() local
226 ret = sc_pm_set_clock_rate(-1, resource, pm_clk, &new_rate); in imx8_clk_set_rate()
232 return new_rate; in imx8_clk_set_rate()
/external/u-boot/arch/arm/cpu/armv7/bcm235xx/
Dclk-core.c165 unsigned long new_rate = 0, div = 1; in peri_clk_set_rate() local
186 new_rate = ref->clk.rate / div; in peri_clk_set_rate()
189 if (abs(new_rate - rate) < diff) { in peri_clk_set_rate()
190 diff = abs(new_rate - rate); in peri_clk_set_rate()
193 c->rate = new_rate; in peri_clk_set_rate()
/external/u-boot/arch/arm/cpu/armv7/bcm281xx/
Dclk-core.c165 unsigned long new_rate = 0, div = 1; in peri_clk_set_rate() local
186 new_rate = ref->clk.rate / div; in peri_clk_set_rate()
189 if (abs(new_rate - rate) < diff) { in peri_clk_set_rate()
190 diff = abs(new_rate - rate); in peri_clk_set_rate()
193 c->rate = new_rate; in peri_clk_set_rate()
/external/adhd/cras/src/server/
Ddev_stream.c154 double new_rate = in dev_stream_set_dev_rate() local
158 dev_rate, new_rate); in dev_stream_set_dev_rate()