Lines Matching refs:synth
286 struct fapll_synth *synth = to_synth(hw);
287 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET);
289 v &= ~(1 << synth->index);
290 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 v |= 1 << synth->index;
301 writel_relaxed(v, synth->fd->base + FAPLL_PWD_OFFSET);
306 struct fapll_synth *synth = to_synth(hw);
307 u32 v = readl_relaxed(synth->fd->base + FAPLL_PWD_OFFSET);
309 return !(v & (1 << synth->index));
318 struct fapll_synth *synth = to_synth(hw);
323 if (!synth->div)
331 if (ti_fapll_clock_is_bypass(synth->fd))
341 if (synth->freq) {
344 v = readl_relaxed(synth->freq);
354 synth_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M;
362 struct fapll_synth *synth = to_synth(hw);
367 post_div_m = readl_relaxed(synth->div) & SYNTH_MAX_DIV_M;
373 static u32 ti_fapll_synth_set_frac_rate(struct fapll_synth *synth,
401 v = readl_relaxed(synth->freq);
406 writel_relaxed(v, synth->freq);
414 struct fapll_synth *synth = to_synth(hw);
415 struct fapll_data *fd = synth->fd;
418 if (ti_fapll_clock_is_bypass(fd) || !synth->div || !rate)
422 if (!synth->freq) {
448 struct fapll_synth *synth = to_synth(hw);
449 struct fapll_data *fd = synth->fd;
453 if (ti_fapll_clock_is_bypass(fd) || !synth->div || !rate)
459 if (!synth->freq)
465 if (!synth->freq && !post_rate)
470 if ((post_rate != rate) && synth->freq)
471 post_div_m = ti_fapll_synth_set_frac_rate(synth,
475 v = readl_relaxed(synth->div);
479 writel_relaxed(v, synth->div);
502 struct fapll_synth *synth;
514 synth = kzalloc(sizeof(*synth), GFP_KERNEL);
515 if (!synth)
518 synth->fd = fd;
519 synth->index = index;
520 synth->freq = freq;
521 synth->div = div;
522 synth->name = name;
523 synth->hw.init = init;
524 synth->clk_pll = pll_clk;
526 clk = clk_register(NULL, &synth->hw);
535 kfree(synth);
612 * for numbering in case there are holes in the synth mapping,
613 * and then probe the synth register to see if it has a FREQ