Lines Matching refs:freq
39 static u32 at91_pll_rate(u32 freq, u32 reg) in at91_pll_rate() argument
46 freq /= div; in at91_pll_rate()
47 freq *= mul + 1; in at91_pll_rate()
49 freq = 0; in at91_pll_rate()
52 return freq; in at91_pll_rate()
57 unsigned freq, mckr; in at91_clock_init() local
91 freq = gd->arch.mck_rate_hz; in at91_clock_init()
94 freq >>= mckr & AT91_PMC_MCKR_PRES_MASK; in at91_clock_init()
98 gd->arch.mck_rate_hz = freq / 2; in at91_clock_init()
101 gd->arch.mck_rate_hz = freq / 3; in at91_clock_init()
104 gd->arch.mck_rate_hz = freq / 4; in at91_clock_init()
110 gd->arch.cpu_clk_rate_hz = freq; in at91_clock_init()
261 u32 freq; in at91_get_periph_generated_clk() local
272 freq = CONFIG_SYS_AT91_SLOW_CLOCK; in at91_get_periph_generated_clk()
275 freq = gd->arch.main_clk_rate_hz; in at91_get_periph_generated_clk()
278 freq = gd->arch.plla_rate_hz; in at91_get_periph_generated_clk()
281 freq = AT91_UTMI_PLL_CLK_FREQ; in at91_get_periph_generated_clk()
284 freq = gd->arch.mck_rate_hz; in at91_get_periph_generated_clk()
288 freq = 0; in at91_get_periph_generated_clk()
295 return freq / div; in at91_get_periph_generated_clk()