Home
last modified time | relevance | path

Searched refs:gclk_rate (Results 1 – 5 of 5) sorted by relevance

/u-boot/drivers/clk/rockchip/
A Dclk_rk3288.c404 rate = (unsigned long long)gclk_rate * n; in rockchip_i2s_get_clk()
417 v = rockchip_clk_gcd(gclk_rate, freq); in rockchip_i2s_set_clk()
418 n = gclk_rate / v; in rockchip_i2s_set_clk()
420 assert(freq == gclk_rate / n * d); in rockchip_i2s_set_clk()
424 return rockchip_i2s_get_clk(cru, gclk_rate); in rockchip_i2s_set_clk()
619 src_clk_div = DIV_ROUND_UP(gclk_rate / 2, freq); in rockchip_mmc_set_clk()
688 return DIV_TO_RATE(gclk_rate, div); in rockchip_spi_get_clk()
697 src_clk_div = DIV_ROUND_UP(gclk_rate, freq) - 1; in rockchip_spi_set_clk()
753 ulong new_rate, gclk_rate; in rk3288_clk_get_rate() local
779 return gclk_rate; in rk3288_clk_get_rate()
[all …]
A Dclk_rk3188.c263 static ulong rockchip_mmc_get_clk(struct rk3188_cru *cru, uint gclk_rate, in rockchip_mmc_get_clk() argument
289 return DIV_TO_RATE(gclk_rate, div) / 2; in rockchip_mmc_get_clk()
297 debug("%s: gclk_rate=%u\n", __func__, gclk_rate); in rockchip_mmc_set_clk()
299 src_clk_div = DIV_ROUND_UP(gclk_rate / 2, freq) - 1; in rockchip_mmc_set_clk()
325 return rockchip_mmc_get_clk(cru, gclk_rate, periph); in rockchip_mmc_set_clk()
347 return DIV_TO_RATE(gclk_rate, div); in rockchip_spi_get_clk()
353 int src_clk_div = DIV_ROUND_UP(gclk_rate, freq) - 1; in rockchip_spi_set_clk()
373 return rockchip_spi_get_clk(cru, gclk_rate, periph); in rockchip_spi_set_clk()
466 ulong new_rate, gclk_rate; in rk3188_clk_get_rate() local
468 gclk_rate = rkclk_pll_get_rate(priv->cru, CLK_GENERAL); in rk3188_clk_get_rate()
[all …]
A Dclk_rk322x.c358 ulong rate, gclk_rate; in rk322x_clk_get_rate() local
360 gclk_rate = rkclk_pll_get_rate(priv->cru, CLK_GENERAL); in rk322x_clk_get_rate()
369 rate = rockchip_mmc_get_clk(priv->cru, gclk_rate, clk->id); in rk322x_clk_get_rate()
381 ulong new_rate, gclk_rate; in rk322x_clk_set_rate() local
383 gclk_rate = rkclk_pll_get_rate(priv->cru, CLK_GENERAL); in rk322x_clk_set_rate()
389 new_rate = rockchip_mmc_set_clk(priv->cru, gclk_rate, in rk322x_clk_set_rate()
A Dclk_rk3036.c299 ulong new_rate, gclk_rate; in rk3036_clk_set_rate() local
301 gclk_rate = rkclk_pll_get_rate(priv->cru, CLK_GENERAL); in rk3036_clk_set_rate()
307 new_rate = rockchip_mmc_set_clk(priv->cru, gclk_rate, in rk3036_clk_set_rate()
A Dclk_rk3128.c512 ulong new_rate, gclk_rate; in rk3128_clk_set_rate() local
514 gclk_rate = rkclk_pll_get_rate(priv->cru, CLK_GENERAL); in rk3128_clk_set_rate()
525 new_rate = rockchip_mmc_set_clk(priv->cru, gclk_rate, in rk3128_clk_set_rate()

Completed in 10 milliseconds