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