Lines Matching full:sysclk

131 	int sysclk;  member
605 * wm8960_configure_sysclk - checks if there is a sysclk frequency available
606 * The sysclk must be chosen such that:
607 * - sysclk = MCLK / sysclk_divs
608 * - lrclk = sysclk / dac_divs
609 * - 10 * bclk = sysclk / bclk_divs
612 * @mclk: MCLK used to derive sysclk
613 * @sysclk_idx: sysclk_divs index for found sysclk
618 * -1, in case no sysclk frequency available found
619 * >=0, in case we could derive bclk and lrclk from sysclk using
626 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
636 /* check if the sysclk frequency is available. */ in wm8960_configure_sysclk()
640 sysclk = mclk / sysclk_divs[i]; in wm8960_configure_sysclk()
642 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_sysclk()
645 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
665 * - sysclk = lrclk * dac_divs
666 * - freq_out = sysclk * sysclk_divs
667 * - 10 * sysclk = bclk * bclk_divs
669 * If we cannot find an exact match for (sysclk, lrclk, bclk)
675 * @sysclk_idx: sysclk_divs index for found sysclk
681 * >=0, in case we could derive bclk, lrclk, sysclk from PLL out using
689 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
702 * 90MHz and 100MHz, the desired sysclk output is 11.2896MHz in wm8960_configure_pll()
710 sysclk = lrclk * dac_divs[j]; in wm8960_configure_pll()
711 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll()
717 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
748 * may not work if the sysclk is not configured, to avoid such in wm8960_configure_clocking()
749 * compatible issue, just add '!wm8960->sysclk' condition in in wm8960_configure_clocking()
752 if (!(iface1 & (1 << 6)) && !wm8960->sysclk) { in wm8960_configure_clocking()
765 * If it's sysclk auto mode, check if the MCLK can provide sysclk or in wm8960_configure_clocking()
766 * not. If MCLK can provide sysclk, using MCLK to provide sysclk in wm8960_configure_clocking()
771 /* disable the PLL and using MCLK to provide sysclk */ in wm8960_configure_clocking()
774 } else if (wm8960->sysclk) { in wm8960_configure_clocking()
775 freq_out = wm8960->sysclk; in wm8960_configure_clocking()
777 dev_err(component->dev, "No SYSCLK configured\n"); in wm8960_configure_clocking()
799 /* configure sysclk clock */ in wm8960_configure_clocking()
929 * If it's sysclk auto mode, and the pll is enabled, in wm8960_set_bias_level_out3()
1050 * If it's sysclk auto mode, and the pll is enabled, in wm8960_set_bias_level_capless()
1306 wm8960->sysclk = freq; in wm8960_set_dai_sysclk()