Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/clk/
H A Dclk-hsdk-cgu.c140 static const struct hsdk_tun_clk_cfg tun_clk_cfg = { variable
583 if (tun_clk_cfg.clk_rate[i] == rate) { in tun_clk_set()
595 if (tun_clk_cfg.pll_rate[freq_idx] < pll_rate) in tun_clk_set()
596 ret = pll_set(sclk, tun_clk_cfg.pll_rate[freq_idx]); in tun_clk_set()
600 clk->idiv_regs = clk->cgu_regs + tun_clk_cfg.idiv[i].oft; in tun_clk_set()
601 hsdk_idiv_write(clk, tun_clk_cfg.idiv[i].val[freq_idx]); in tun_clk_set()
605 if (tun_clk_cfg.pll_rate[freq_idx] >= pll_rate) in tun_clk_set()
606 ret = pll_set(sclk, tun_clk_cfg.pll_rate[freq_idx]); in tun_clk_set()