Go to the documentation of this file.
10 #include <linux/export.h>
16 #include <asm/div64.h>
18 #include <lantiq_soc.h>
22 static unsigned int ram_clocks[] = {
24 #define DDR_HZ ram_clocks[ltq_cgu_r32(CGU_SYS) & 0x3]
30 #define CGU_SYS_VR9 0x0c
31 #define CGU_IF_CLK_VR9 0x24
35 unsigned long ddr_clock =
DDR_HZ;
37 if (ltq_cgu_r32(
CGU_SYS) & 0x40)
38 return ddr_clock >> 1;
58 if (((ltq_cgu_r32(
CGU_SYS) >> 3) & 0x3) == 0x2)
122 unsigned int ocp_sel, cpu_clk;
139 clk = (cpu_clk * 2) / 5;