Searched refs:out_freq (Results 1 – 4 of 4) sorted by relevance
49 unsigned long ics307_sysclk_calculator(unsigned long out_freq) in ics307_sysclk_calculator() argument58 if (od * out_freq < MIN_VCO || od * out_freq > MAX_VCO) in ics307_sysclk_calculator()62 vdw = out_freq * 1000 * od * rdw / (input_freq * 2); in ics307_sysclk_calculator()69 diff = max(out_freq, tmp_out) - min(out_freq, tmp_out); in ics307_sysclk_calculator()75 if (diff * 1000 / out_freq > 1) in ics307_sysclk_calculator()
12 extern unsigned long ics307_sysclk_calculator(unsigned long out_freq);
41 static unsigned at91_pll_calc(unsigned main_freq, unsigned out_freq) in at91_pll_calc() argument44 unsigned ret = (out_freq > 155000000) ? 0xbe00 : 0x3e00; in at91_pll_calc()47 if (out_freq > 240000000) in at91_pll_calc()65 mul1 = out_freq / input; in at91_pll_calc()71 diff1 = out_freq - input * mul1; in at91_pll_calc()82 if (i == 256 && diff > (out_freq >> 5)) in at91_pll_calc()
41 static unsigned at91_pll_calc(unsigned main_freq, unsigned out_freq) in at91_pll_calc() argument44 unsigned ret = (out_freq > 155000000) ? 0xbe00 : 0x3e00; in at91_pll_calc()47 if (out_freq > 240000000) in at91_pll_calc()69 mul1 = out_freq / input; in at91_pll_calc()79 diff1 = out_freq - input * mul1; in at91_pll_calc()90 if (i == 256 && diff > (out_freq >> 5)) in at91_pll_calc()