hc
2023-12-06 d38611ca164021d018c1b23eee65bbebc09c63e0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# SPDX-License-Identifier: GPL-2.0
# common clock support for ROCKCHIP SoC family.
 
config COMMON_CLK_ROCKCHIP
   tristate "Rockchip clock controller common support"
   depends on ARCH_ROCKCHIP
   default ARCH_ROCKCHIP
   help
     Say y here to enable common clock controller for Rockchip platforms.
 
if COMMON_CLK_ROCKCHIP
config CLK_PX30
   tristate "Rockchip PX30 clock controller support"
   depends on CPU_PX30 || COMPILE_TEST
   default y
   help
     Build the driver for PX30 Clock Driver.
 
config CLK_RV1106
   tristate "Rockchip RV1106 clock controller support"
   depends on CPU_RV1106 || COMPILE_TEST
   default y
   help
     Build the driver for RV1106 Clock Driver.
 
config CLK_RV1108
   tristate "Rockchip RV1108 clock controller support"
   depends on CPU_RV1108 || COMPILE_TEST
   default y
   help
     Build the driver for RV1108 Clock Driver.
 
config CLK_RV1126
   tristate "Rockchip RV1126 clock controller support"
   depends on CPU_RV1126 || COMPILE_TEST
   default y
   help
     Build the driver for RV1126 Clock Driver.
 
config CLK_RK1808
   tristate "Rockchip RK1808 clock controller support"
   depends on CPU_RK1808 || COMPILE_TEST
   default y
   help
     Build the driver for RK1808 Clock Driver.
 
config CLK_RK3036
   tristate "Rockchip RK3036 clock controller support"
   depends on CPU_RK3036 || COMPILE_TEST
   default y
   help
     Build the driver for RK3036 Clock Driver.
 
config CLK_RK312X
   tristate "Rockchip RK312x clock controller support"
   depends on CPU_RK312X || COMPILE_TEST
   default y
   help
     Build the driver for RK312x Clock Driver.
 
config CLK_RK3188
   tristate "Rockchip RK3188 clock controller support"
   depends on CPU_RK3188 || COMPILE_TEST
   default y
   help
     Build the driver for RK3188 Clock Driver.
 
config CLK_RK322X
   tristate "Rockchip RK322x clock controller support"
   depends on CPU_RK322X || COMPILE_TEST
   default y
   help
     Build the driver for RK322x Clock Driver.
 
config CLK_RK3288
   tristate "Rockchip RK3288 clock controller support"
   depends on CPU_RK3288 || COMPILE_TEST
   default y
   help
     Build the driver for RK3288 Clock Driver.
 
config CLK_RK3308
   tristate "Rockchip RK3308 clock controller support"
   depends on CPU_RK3308 || COMPILE_TEST
   default y
   help
     Build the driver for RK3308 Clock Driver.
 
config CLK_RK3328
   tristate "Rockchip RK3328 clock controller support"
   depends on CPU_RK3328 || COMPILE_TEST
   default y
   help
     Build the driver for RK3328 Clock Driver.
 
config CLK_RK3368
   tristate "Rockchip RK3368 clock controller support"
   depends on CPU_RK3368 || COMPILE_TEST
   default y
   help
     Build the driver for RK3368 Clock Driver.
 
config CLK_RK3399
   tristate "Rockchip RK3399 clock controller support"
   depends on CPU_RK3399 || COMPILE_TEST
   default y
   help
     Build the driver for RK3399 Clock Driver.
 
config CLK_RK3528
   tristate "Rockchip RK3528 clock controller support"
   depends on CPU_RK3528 || COMPILE_TEST
   default y
   help
     Build the driver for RK3528 Clock Driver.
 
config CLK_RK3562
   tristate "Rockchip RK3562 clock controller support"
   depends on CPU_RK3562 || COMPILE_TEST
   default y
   help
     Build the driver for RK3562 Clock Driver.
 
config CLK_RK3568
   tristate "Rockchip RK3568 clock controller support"
   depends on CPU_RK3568 || COMPILE_TEST
   default y
   help
     Build the driver for RK3568 Clock Driver.
 
config CLK_RK3588
   tristate "Rockchip RK3588 clock controller support"
   depends on CPU_RK3588 || COMPILE_TEST
   default y
   help
     Build the driver for RK3588 Clock Driver.
 
config ROCKCHIP_CLK_COMPENSATION
   bool "Rockchip Clk Compensation"
   help
     Say y here to enable clk compensation(+/- 1000 ppm).
 
config ROCKCHIP_CLK_LINK
   tristate "Rockchip clock link support"
   default CLK_RK3562 || CLK_RK3588
   help
     Say y here to enable clock link for Rockchip.
 
config ROCKCHIP_CLK_BOOST
   bool "Rockchip Clk Boost"
   default y if CPU_PX30
   help
     Say y here to enable clk boost.
 
config ROCKCHIP_CLK_INV
   bool "Rockchip Clk Inverter"
   default y if !CPU_RV1126 && !CPU_RV1106
   help
     Say y here to enable clk Inverter.
 
config ROCKCHIP_CLK_OUT
   tristate "Rockchip Clk Out / Input Switch"
   default y if !ROCKCHIP_MINI_KERNEL
   help
     Say y here to enable clk out / input switch.
 
config ROCKCHIP_CLK_PVTM
   bool "Rockchip Clk Pvtm"
   default y if !CPU_RV1126 && !CPU_RV1106
   help
     Say y here to enable clk pvtm.
 
config ROCKCHIP_DDRCLK
   bool
 
config ROCKCHIP_DDRCLK_SIP
   bool "Rockchip DDR Clk SIP"
   default y if CPU_RK3399
   select ROCKCHIP_DDRCLK
   help
     Say y here to enable ddr clk sip.
 
config ROCKCHIP_DDRCLK_SIP_V2
   bool "Rockchip DDR Clk SIP V2"
   default y if CPU_PX30   || CPU_RK1808 || CPU_RK312X || CPU_RK322X || \
            CPU_RK3288 || CPU_RK3308 || CPU_RK3328 || CPU_RV1126
   select ROCKCHIP_DDRCLK
   help
     Say y here to enable ddr clk sip v2.
 
config ROCKCHIP_PLL_RK3066
   bool "Rockchip PLL Type RK3066"
   default y if CPU_RK30XX || CPU_RK3188 || \
       CPU_RK3288 || CPU_RK3368
   help
     Say y here to enable pll type is rk3066.
 
config ROCKCHIP_PLL_RK3399
   bool "Rockchip PLL Type RK3399"
   default y if CPU_RK3399 || CPU_RV1108
   help
     Say y here to enable pll type is rk3399.
 
config ROCKCHIP_PLL_RK3588
   bool "Rockchip PLL Type RK3588"
   default y if CPU_RK3588
   help
     Say y here to enable pll type is rk3588.
 
source "drivers/clk/rockchip/regmap/Kconfig"
 
endif