Lines Matching refs:bootcr
160 u32 *bootcr, u32 bus_clock) in tnetd7300_get_clock() argument
171 switch ((*bootcr & (BOOT_PLL_SOURCE_MASK << shift)) >> shift) { in tnetd7300_get_clock()
186 if (*bootcr & BOOT_PLL_BYPASS) in tnetd7300_get_clock()
206 u32 *bootcr, u32 frequency) in tnetd7300_set_clock() argument
211 switch ((*bootcr & (BOOT_PLL_SOURCE_MASK << shift)) >> shift) { in tnetd7300_set_clock()
239 u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4); in tnetd7300_init_clocks() local
245 &clocks->bus, bootcr, AR7_AFE_CLOCK); in tnetd7300_init_clocks()
247 if (*bootcr & BOOT_PLL_ASYNC_MODE) in tnetd7300_init_clocks()
249 &clocks->cpu, bootcr, AR7_AFE_CLOCK); in tnetd7300_init_clocks()
255 bootcr, dsp_clk.rate); in tnetd7300_init_clocks()
258 iounmap(bootcr); in tnetd7300_init_clocks()
295 static int tnetd7200_get_clock_base(int clock_id, u32 *bootcr) in tnetd7200_get_clock_base() argument
297 if (*bootcr & BOOT_PLL_ASYNC_MODE) in tnetd7200_get_clock_base()
307 if (*bootcr & BOOT_PLL_2TO1_MODE) in tnetd7200_get_clock_base()
323 u32 *bootcr = (u32 *)ioremap(AR7_REGS_DCL, 4); in tnetd7200_init_clocks() local
331 cpu_base = tnetd7200_get_clock_base(TNETD7200_CLOCK_ID_CPU, bootcr); in tnetd7200_init_clocks()
332 dsp_base = tnetd7200_get_clock_base(TNETD7200_CLOCK_ID_DSP, bootcr); in tnetd7200_init_clocks()
334 if (*bootcr & BOOT_PLL_ASYNC_MODE) { in tnetd7200_init_clocks()
356 if (*bootcr & BOOT_PLL_2TO1_MODE) { in tnetd7200_init_clocks()
401 iounmap(bootcr); in tnetd7200_init_clocks()