Go to the documentation of this file.
17 #ifndef _ASM_C6X_CLOCK_H
18 #define _ASM_C6X_CLOCK_H
22 #include <linux/list.h>
34 #define PLLALNCTL 0x140
35 #define PLLDCHANGE 0x144
37 #define PLLCKSTAT 0x14c
38 #define PLLSYSTAT 0x150
45 #define PLLDIV10 0x178
46 #define PLLDIV11 0x17c
47 #define PLLDIV12 0x180
48 #define PLLDIV13 0x184
49 #define PLLDIV14 0x188
50 #define PLLDIV15 0x18c
51 #define PLLDIV16 0x190
54 #define PLLM_PLLM_MASK 0xff
55 #define PLLM_VAL(x) ((x) - 1)
58 #define PLLPREDIV_EN BIT(15)
59 #define PLLPREDIV_VAL(x) ((x) - 1)
62 #define PLLCTL_PLLEN BIT(0)
63 #define PLLCTL_PLLPWRDN BIT(1)
64 #define PLLCTL_PLLRST BIT(3)
65 #define PLLCTL_PLLDIS BIT(4)
66 #define PLLCTL_PLLENSRC BIT(5)
67 #define PLLCTL_CLKMODE BIT(8)
70 #define PLLCMD_GOSTAT BIT(0)
73 #define PLLSTAT_GOSTAT BIT(0)
76 #define PLLDIV_EN BIT(15)
77 #define PLLDIV_RATIO_MASK 0x1f
78 #define PLLDIV_RATIO(x) ((x) - 1)
100 #define ALWAYS_ENABLED BIT(1)
101 #define CLK_PLL BIT(2)
102 #define PRE_PLL BIT(3)
103 #define FIXED_DIV_PLL BIT(4)
104 #define FIXED_RATE_PLL BIT(5)
106 #define MAX_PLL_SYSCLKS 16
120 #define PLL_HAS_PRE BIT(0)
121 #define PLL_HAS_MUL BIT(1)
122 #define PLL_HAS_POST BIT(2)
124 #define CLK(dev, con, ck) \