Lines Matching full:sysclk
134 int sysclk; member
608 * wm8960_configure_sysclk - checks if there is a sysclk frequency available
609 * The sysclk must be chosen such that:
610 * - sysclk = MCLK / sysclk_divs
611 * - lrclk = sysclk / dac_divs
612 * - 10 * bclk = sysclk / bclk_divs
614 * If we cannot find an exact match for (sysclk, lrclk, bclk)
619 * @mclk: MCLK used to derive sysclk
620 * @sysclk_idx: sysclk_divs index for found sysclk
625 * -1, in case no sysclk frequency available found
626 * >=0, in case we could derive bclk and lrclk from sysclk using
633 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
643 /* check if the sysclk frequency is available. */ in wm8960_configure_sysclk()
647 sysclk = mclk / sysclk_divs[i]; in wm8960_configure_sysclk()
649 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_sysclk()
652 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
678 * - sysclk = lrclk * dac_divs
679 * - freq_out = sysclk * sysclk_divs
680 * - 10 * sysclk = bclk * bclk_divs
682 * If we cannot find an exact match for (sysclk, lrclk, bclk)
688 * @sysclk_idx: sysclk_divs index for found sysclk
694 * >=0, in case we could derive bclk, lrclk, sysclk from PLL out using
702 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
717 sysclk = lrclk * dac_divs[j]; in wm8960_configure_pll()
718 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll()
724 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
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()