Lines Matching refs:synth
277 struct fapll_synth *synth = to_synth(hw);
278 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET);
280 v &= ~(1 << synth->index);
281 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET);
288 struct fapll_synth *synth = to_synth(hw);
289 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET);
291 v |= 1 << synth->index;
292 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET);
297 struct fapll_synth *synth = to_synth(hw);
298 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET);
300 return !(v & (1 << synth->index));
309 struct fapll_synth *synth = to_synth(hw);
314 if (!synth->div)
322 if (ti_fapll_clock_is_bypass(synth->fd))
332 if (synth->freq) {
335 v = readl_relaxed(synth->freq);
345 synth_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M;
353 struct fapll_synth *synth = to_synth(hw);
358 post_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M;
364 static u32 ti_fapll_synth_set_frac_rate(struct fapll_synth *synth,
392 v = readl_relaxed(synth->freq);
397 writel_relaxed(v, synth->freq);
405 struct fapll_synth *synth = to_synth(hw);
406 struct fapll_data *fd = synth->fd;
409 if (ti_fapll_clock_is_bypass(fd) || !synth->div || !rate)
413 if (!synth->freq) {
439 struct fapll_synth *synth = to_synth(hw);
440 struct fapll_data *fd = synth->fd;
444 if (ti_fapll_clock_is_bypass(fd) || !synth->div || !rate)
450 if (!synth->freq)
456 if (!synth->freq && !post_rate)
461 if ((post_rate != rate) && synth->freq)
462 post_div_m = ti_fapll_synth_set_frac_rate(synth,
466 v = readl_relaxed(synth->div);
470 writel_relaxed(v, synth->div);
493 struct fapll_synth *synth;
505 synth = kzalloc(sizeof(*synth), GFP_KERNEL);
506 if (!synth)
509 synth->fd = fd;
510 synth->index = index;
511 synth->freq = freq;
512 synth->div = div;
513 synth->name = name;
514 synth->hw.init = init;
515 synth->clk_pll = pll_clk;
517 clk = clk_register(NULL, &synth->hw);
526 kfree(synth);
603 * for numbering in case there are holes in the synth mapping,
604 * and then probe the synth register to see if it has a FREQ