Lines Matching refs:pll_cfg
98 const struct axs10x_pll_cfg *pll_cfg; member
162 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_round_rate() local
164 if (pll_cfg[0].rate == 0) in axs10x_pll_round_rate()
167 best_rate = pll_cfg[0].rate; in axs10x_pll_round_rate()
169 for (i = 1; pll_cfg[i].rate != 0; i++) { in axs10x_pll_round_rate()
170 if (abs(rate - pll_cfg[i].rate) < abs(rate - best_rate)) in axs10x_pll_round_rate()
171 best_rate = pll_cfg[i].rate; in axs10x_pll_round_rate()
182 const struct axs10x_pll_cfg *pll_cfg = clk->pll_cfg; in axs10x_pll_set_rate() local
184 for (i = 0; pll_cfg[i].rate != 0; i++) { in axs10x_pll_set_rate()
185 if (pll_cfg[i].rate == rate) { in axs10x_pll_set_rate()
187 axs10x_encode_div(pll_cfg[i].idiv, 0)); in axs10x_pll_set_rate()
189 axs10x_encode_div(pll_cfg[i].fbdiv, 0)); in axs10x_pll_set_rate()
191 axs10x_encode_div(pll_cfg[i].odiv, 1)); in axs10x_pll_set_rate()
246 pll_clk->pll_cfg = of_device_get_match_data(dev); in axs10x_pll_clk_probe()
248 if (!pll_clk->pll_cfg) { in axs10x_pll_clk_probe()
298 pll_clk->pll_cfg = arc_pll_cfg; in of_axs10x_pll_clk_setup()