When selecting a best setting for rk3188plus type pll, consider a
larger NO first(means larger VCO freq), and a smaller NR later.
Signed-off-by: dkl <dkl@rock-chips.com>
//printk("_PLL_SET_CLKS(%lu,\t%d,\t%d,\t%d),\n",fout_hz/KHZ,nr,nf,no);
/* select the best from all available PLL settings */
- if((nr < nr_out) || ((nr == nr_out)&&(no > no_out)))
+ if ((no > no_out) || ((no == no_out) && (nr < nr_out)))
{
nr_out = nr;
nf_out = nf;