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
611 * If we cannot find an exact match for (sysclk, lrclk, bclk)
616 * @mclk: MCLK used to derive sysclk
617 * @sysclk_idx: sysclk_divs index for found sysclk
622 * -1, in case no sysclk frequency available found
623 * >=0, in case we could derive bclk and lrclk from sysclk using
630 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
640 /* check if the sysclk frequency is available. */ in wm8960_configure_sysclk()
644 sysclk = mclk / sysclk_divs[i]; in wm8960_configure_sysclk()
646 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_sysclk()
649 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
675 * - sysclk = lrclk * dac_divs
676 * - freq_out = sysclk * sysclk_divs
677 * - 10 * sysclk = bclk * bclk_divs
679 * If we cannot find an exact match for (sysclk, lrclk, bclk)
685 * @sysclk_idx: sysclk_divs index for found sysclk
691 * >=0, in case we could derive bclk, lrclk, sysclk from PLL out using
699 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
714 sysclk = lrclk * dac_divs[j]; in wm8960_configure_pll()
715 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll()
721 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
762 * If it's sysclk auto mode, check if the MCLK can provide sysclk or in wm8960_configure_clocking()
763 * not. If MCLK can provide sysclk, using MCLK to provide sysclk in wm8960_configure_clocking()
768 /* disable the PLL and using MCLK to provide sysclk */ in wm8960_configure_clocking()
771 } else if (wm8960->sysclk) { in wm8960_configure_clocking()
772 freq_out = wm8960->sysclk; in wm8960_configure_clocking()
774 dev_err(component->dev, "No SYSCLK configured\n"); in wm8960_configure_clocking()
796 /* configure sysclk clock */ in wm8960_configure_clocking()
926 * If it's sysclk auto mode, and the pll is enabled, in wm8960_set_bias_level_out3()
1047 * If it's sysclk auto mode, and the pll is enabled, in wm8960_set_bias_level_capless()
1303 wm8960->sysclk = freq; in wm8960_set_dai_sysclk()