Lines Matching refs:ltq_cgu_r32
22 #define DDR_HZ ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3]
35 if (ltq_cgu_r32(CGU_SYS) & 0x40) in ltq_danube_fpi_hz()
42 switch (ltq_cgu_r32(CGU_SYS) & 0xc) { in ltq_danube_cpu_hz()
56 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 7) & 3; in ltq_danube_pp32_hz()
79 if (((ltq_cgu_r32(CGU_SYS) >> 3) & 0x3) == 0x2) in ltq_ar9_sys_hz()
88 if (ltq_cgu_r32(CGU_SYS) & BIT(0)) in ltq_ar9_fpi_hz()
96 if (ltq_cgu_r32(CGU_SYS) & BIT(2)) in ltq_ar9_cpu_hz()
107 cpu_sel = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0xf; in ltq_vr9_cpu_hz()
148 ocp_sel = ltq_cgu_r32(CGU_SYS_XRX) & 0x3; in ltq_vr9_fpi_hz()
177 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_vr9_pp32_hz()
201 int cpu_fs = (ltq_cgu_r32(CGU_SYS_XRX) >> 8) & 0x1; in ltq_ar10_cpu_hz()
202 int freq_div = (ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7; in ltq_ar10_cpu_hz()
230 int freq_fpi = (ltq_cgu_r32(CGU_IF_CLK_AR10) >> 25) & 0xf; in ltq_ar10_fpi_hz()
249 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_ar10_pp32_hz()
270 int cpu_fs = ((ltq_cgu_r32(CGU_SYS_XRX) >> 9) & 0x3); in ltq_grx390_cpu_hz()
271 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX) >> 4) & 0x7); in ltq_grx390_cpu_hz()
304 int cpu_fs = ((ltq_cgu_r32(CGU_SYS_XRX) >> 9) & 0x3); in ltq_grx390_fpi_hz()
305 int freq_div = ((ltq_cgu_r32(CGU_SYS_XRX)) & 0x7); in ltq_grx390_fpi_hz()
333 unsigned int clksys = (ltq_cgu_r32(CGU_SYS) >> 16) & 0x7; in ltq_grx390_pp32_hz()