Go to the documentation of this file.
12 #ifndef __ASM_MACH_LOONGSON1_REGS_CLK_H
13 #define __ASM_MACH_LOONGSON1_REGS_CLK_H
15 #define LS1X_CLK_REG(x) \
16 ((void __iomem *)KSEG1ADDR(LS1X_CLK_BASE + (x)))
18 #define LS1X_CLK_PLL_FREQ LS1X_CLK_REG(0x0)
19 #define LS1X_CLK_PLL_DIV LS1X_CLK_REG(0x4)
22 #define DIV_DC_EN (0x1 << 31)
23 #define DIV_DC (0x1f << 26)
24 #define DIV_CPU_EN (0x1 << 25)
25 #define DIV_CPU (0x1f << 20)
26 #define DIV_DDR_EN (0x1 << 19)
27 #define DIV_DDR (0x1f << 14)
29 #define DIV_DC_SHIFT 26
30 #define DIV_CPU_SHIFT 20
31 #define DIV_DDR_SHIFT 14