mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
ASoC: Fix FLL reference clock division setup in WM8993
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
8aa2df5308
commit
0c11f65555
1 changed files with 2 additions and 0 deletions
|
@ -345,8 +345,10 @@ static int fll_factors(struct _fll_div *fll_div, unsigned int Fref,
|
|||
|
||||
/* Fref must be <=13.5MHz */
|
||||
div = 1;
|
||||
fll_div->fll_clk_ref_div = 0;
|
||||
while ((Fref / div) > 13500000) {
|
||||
div *= 2;
|
||||
fll_div->fll_clk_ref_div++;
|
||||
|
||||
if (div > 8) {
|
||||
pr_err("Can't scale %dMHz input down to <=13.5MHz\n",
|
||||
|
|
Loading…
Reference in a new issue