Lines Matching refs:bootcr
162 u32 *bootcr, u32 bus_clock)
173 switch ((*bootcr & (BOOT_PLL_SOURCE_MASK << shift)) >> shift) {
188 if (*bootcr & BOOT_PLL_BYPASS)
208 u32 *bootcr, u32 frequency)
213 switch ((*bootcr & (BOOT_PLL_SOURCE_MASK << shift)) >> shift) {
241 u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4);
249 &clocks->bus, bootcr, AR7_AFE_CLOCK);
251 if (*bootcr & BOOT_PLL_ASYNC_MODE)
253 &clocks->cpu, bootcr, AR7_AFE_CLOCK);
260 bootcr, dsp_clk);
263 iounmap(bootcr);
305 static int tnetd7200_get_clock_base(int clock_id, u32 *bootcr)
307 if (*bootcr & BOOT_PLL_ASYNC_MODE)
317 if (*bootcr & BOOT_PLL_2TO1_MODE)
333 u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4);
342 cpu_base = tnetd7200_get_clock_base(TNETD7200_CLOCK_ID_CPU, bootcr);
343 dsp_base = tnetd7200_get_clock_base(TNETD7200_CLOCK_ID_DSP, bootcr);
345 if (*bootcr & BOOT_PLL_ASYNC_MODE) {
367 if (*bootcr & BOOT_PLL_2TO1_MODE) {
410 iounmap(bootcr);