Lines Matching refs:ltq_cgu_r32
24 #define DDR_HZ ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3]
37 if (ltq_cgu_r32(CGU_SYS) & 0x40) in ltq_danube_fpi_hz()
44 switch (ltq_cgu_r32(CGU_SYS) & 0xc) { in ltq_danube_cpu_hz()
58 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 7) & 3; in ltq_danube_pp32_hz()
81 if (((ltq_cgu_r32(CGU_SYS) >> 3) & 0x3) == 0x2) in ltq_ar9_sys_hz()
90 if (ltq_cgu_r32(CGU_SYS) & BIT(0)) in ltq_ar9_fpi_hz()
98 if (ltq_cgu_r32(CGU_SYS) & BIT(2)) in ltq_ar9_cpu_hz()
109 cpu_sel = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0xf; in ltq_vr9_cpu_hz()
150 ocp_sel = ltq_cgu_r32(CGU_SYS_XRX) & 0x3; in ltq_vr9_fpi_hz()
179 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_vr9_pp32_hz()
203 int cpu_fs = (ltq_cgu_r32(CGU_SYS_XRX) >> 8) & 0x1; in ltq_ar10_cpu_hz()
204 int freq_div = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7; in ltq_ar10_cpu_hz()
232 int freq_fpi = (ltq_cgu_r32(CGU_IF_CLK_AR10) >> 25) & 0xf; in ltq_ar10_fpi_hz()
251 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_ar10_pp32_hz()
272 int cpu_fs = ((ltq_cgu_r32(CGU_SYS_XRX) >> 9) & 0x3); in ltq_grx390_cpu_hz()
273 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7); in ltq_grx390_cpu_hz()
306 int cpu_fs = ((ltq_cgu_r32(CGU_SYS_XRX) >> 9) & 0x3); in ltq_grx390_fpi_hz()
307 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX)) & 0x7); in ltq_grx390_fpi_hz()
335 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_grx390_pp32_hz()