blob: aefc152a6a7f049dcaa06268d36529fb37fe822d [file] [log] [blame]
xjb04a4022021-11-25 15:01:52 +08001#
2# MediaTek Clock Drivers
3#
4menu "Clock driver for MediaTek SoC"
5 depends on ARCH_MEDIATEK || COMPILE_TEST
6
7config COMMON_CLK_MEDIATEK
8 bool
9 select RESET_CONTROLLER
10 ---help---
11 MediaTek SoCs' clock support.
12
13config COMMON_CLK_MT2701
14 bool "Clock driver for MediaTek MT2701"
15 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
16 select COMMON_CLK_MEDIATEK
17 default ARCH_MEDIATEK && ARM
18 ---help---
19 This driver supports MediaTek MT2701 basic clocks.
20
21config COMMON_CLK_MT2701_MMSYS
22 bool "Clock driver for MediaTek MT2701 mmsys"
23 depends on COMMON_CLK_MT2701
24 ---help---
25 This driver supports MediaTek MT2701 mmsys clocks.
26
27config COMMON_CLK_MT2701_IMGSYS
28 bool "Clock driver for MediaTek MT2701 imgsys"
29 depends on COMMON_CLK_MT2701
30 ---help---
31 This driver supports MediaTek MT2701 imgsys clocks.
32
33config COMMON_CLK_MT2701_VDECSYS
34 bool "Clock driver for MediaTek MT2701 vdecsys"
35 depends on COMMON_CLK_MT2701
36 ---help---
37 This driver supports MediaTek MT2701 vdecsys clocks.
38
39config COMMON_CLK_MT2701_HIFSYS
40 bool "Clock driver for MediaTek MT2701 hifsys"
41 depends on COMMON_CLK_MT2701
42 ---help---
43 This driver supports MediaTek MT2701 hifsys clocks.
44
45config COMMON_CLK_MT2701_ETHSYS
46 bool "Clock driver for MediaTek MT2701 ethsys"
47 depends on COMMON_CLK_MT2701
48 ---help---
49 This driver supports MediaTek MT2701 ethsys clocks.
50
51config COMMON_CLK_MT2701_BDPSYS
52 bool "Clock driver for MediaTek MT2701 bdpsys"
53 depends on COMMON_CLK_MT2701
54 ---help---
55 This driver supports MediaTek MT2701 bdpsys clocks.
56
57config COMMON_CLK_MT2701_AUDSYS
58 bool "Clock driver for Mediatek MT2701 audsys"
59 depends on COMMON_CLK_MT2701
60 ---help---
61 This driver supports Mediatek MT2701 audsys clocks.
62
63config COMMON_CLK_MT2701_G3DSYS
64 bool "Clock driver for MediaTek MT2701 g3dsys"
65 depends on COMMON_CLK_MT2701
66 ---help---
67 This driver supports MediaTek MT2701 g3dsys clocks.
68
69config COMMON_CLK_MT2712
70 bool "Clock driver for MediaTek MT2712"
71 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
72 select COMMON_CLK_MEDIATEK
73 default ARCH_MEDIATEK && ARM64
74 ---help---
75 This driver supports MediaTek MT2712 basic clocks.
76
77config COMMON_CLK_MT2712_BDPSYS
78 bool "Clock driver for MediaTek MT2712 bdpsys"
79 depends on COMMON_CLK_MT2712
80 ---help---
81 This driver supports MediaTek MT2712 bdpsys clocks.
82
83config COMMON_CLK_MT2712_IMGSYS
84 bool "Clock driver for MediaTek MT2712 imgsys"
85 depends on COMMON_CLK_MT2712
86 ---help---
87 This driver supports MediaTek MT2712 imgsys clocks.
88
89config COMMON_CLK_MT2712_JPGDECSYS
90 bool "Clock driver for MediaTek MT2712 jpgdecsys"
91 depends on COMMON_CLK_MT2712
92 ---help---
93 This driver supports MediaTek MT2712 jpgdecsys clocks.
94
95config COMMON_CLK_MT2712_MFGCFG
96 bool "Clock driver for MediaTek MT2712 mfgcfg"
97 depends on COMMON_CLK_MT2712
98 ---help---
99 This driver supports MediaTek MT2712 mfgcfg clocks.
100
101config COMMON_CLK_MT2712_MMSYS
102 bool "Clock driver for MediaTek MT2712 mmsys"
103 depends on COMMON_CLK_MT2712
104 ---help---
105 This driver supports MediaTek MT2712 mmsys clocks.
106
107config COMMON_CLK_MT2712_VDECSYS
108 bool "Clock driver for MediaTek MT2712 vdecsys"
109 depends on COMMON_CLK_MT2712
110 ---help---
111 This driver supports MediaTek MT2712 vdecsys clocks.
112
113config COMMON_CLK_MT2712_VENCSYS
114 bool "Clock driver for MediaTek MT2712 vencsys"
115 depends on COMMON_CLK_MT2712
116 ---help---
117 This driver supports MediaTek MT2712 vencsys clocks.
118
119config COMMON_CLK_MT6779
120 bool "Clock driver for MediaTek MT6779"
121 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
122 select COMMON_CLK_MEDIATEK
123 default ARCH_MEDIATEK && ARM64
124
125 help
126 This driver supports MediaTek MT6779 basic clocks,
127 which is used to control basic clock output.
128 If you wish to use clock resources from the MT6779 SOC,
129 say Y. Otherwise, say N.
130
131config COMMON_CLK_MT6779_MMSYS
132 bool "Clock driver for MediaTek MT6779 mmsys"
133 depends on COMMON_CLK_MT6779
134 help
135 This driver supports MediaTek MT6779 mmsys clocks,
136 which is used to control mmsys clock output.
137 If you wish to use clock resources from the mmsys device,
138 say Y. Otherwise, say N.
139
140config COMMON_CLK_MT6779_IMGSYS
141 bool "Clock driver for MediaTek MT6779 imgsys"
142 depends on COMMON_CLK_MT6779
143 help
144 This driver supports MediaTek MT6779 imgsys clocks,
145 which is used to control imgsys clock output.
146 If you wish to use clock resources from the imgsys device,
147 say Y. Otherwise, say N.
148
149config COMMON_CLK_MT6779_IPESYS
150 bool "Clock driver for MediaTek MT6779 ipesys"
151 depends on COMMON_CLK_MT6779
152 help
153 This driver supports MediaTek MT6779 ipesys clocks,
154 which is used to control ipesys clock output.
155 If you wish to use clock resources from the ipesys device,
156 say Y. Otherwise, say N.
157
158config COMMON_CLK_MT6779_CAMSYS
159 bool "Clock driver for MediaTek MT6779 camsys"
160 depends on COMMON_CLK_MT6779
161 help
162 This driver supports MediaTek MT6779 camsys clocks,
163 which is used to control camsys clock output.
164 If you wish to use clock resources from the camsys device,
165 say Y. Otherwise, say N.
166
167config COMMON_CLK_MT6779_VDECSYS
168 bool "Clock driver for MediaTek MT6779 vdecsys"
169 depends on COMMON_CLK_MT6779
170 help
171 This driver supports MediaTek MT6779 vdecsys clocks,
172 which is used to control vdecsys clock output.
173 If you wish to use clock resources from the vdecsys device,
174 say Y. Otherwise, say N.
175
176config COMMON_CLK_MT6779_VENCSYS
177 bool "Clock driver for MediaTek MT6779 vencsys"
178 depends on COMMON_CLK_MT6779
179 help
180 This driver supports MediaTek MT6779 vencsys clocks,
181 which is used to control vencsys clock output.
182 If you wish to use clock resources from the vencsys device,
183 say Y. Otherwise, say N.
184
185config COMMON_CLK_MT6779_MFGCFG
186 bool "Clock driver for MediaTek MT6779 mfgcfg"
187 depends on COMMON_CLK_MT6779
188 help
189 This driver supports MediaTek MT6779 mfgcfg clocks,
190 which is used to control mfgcfg clock output.
191 If you wish to use clock resources from the mfg device,
192 say Y. Otherwise, say N.
193
194config COMMON_CLK_MT6779_AUDSYS
195 bool "Clock driver for Mediatek MT6779 audsys"
196 depends on COMMON_CLK_MT6779
197 help
198 This driver supports Mediatek MT6779 audsys clocks,
199 which is used to control audsys clock output.
200 If you wish to use clock resources from the audio device,
201 say Y. Otherwise, say N.
202
203config COMMON_CLK_MT6779_APUVCORESYS
204 bool "Clock driver for Mediatek MT6779 apuvcoresys"
205 depends on COMMON_CLK_MT6779
206 help
207 This driver supports Mediatek MT6779 apuvcoresys clocks,
208 which is used to control apuvcoresys clock output.
209 If you wish to use clock resources from the apu vcore device,
210 say Y. Otherwise, say N.
211
212config COMMON_CLK_MT6779_APUCONNSYS
213 bool "Clock driver for Mediatek MT6779 apuconnsys"
214 depends on COMMON_CLK_MT6779
215 help
216 This driver supports Mediatek MT6779 apuconnsys clocks,
217 which is used to control apuconnsys clock output.
218 If you wish to use clock resources from the apu conn device,
219 say Y. Otherwise, say N.
220
221config COMMON_CLK_MT6779_APU0SYS
222 bool "Clock driver for Mediatek MT6779 apu0sys"
223 depends on COMMON_CLK_MT6779
224 help
225 This driver supports Mediatek MT6779 apu0sys clocks,
226 which is used to control apu0sys clock output.
227 If you wish to use clock resources from the apu0 device,
228 say Y. Otherwise, say N.
229
230config COMMON_CLK_MT6779_APU1SYS
231 bool "Clock driver for Mediatek MT6779 apu1sys"
232 depends on COMMON_CLK_MT6779
233 help
234 This driver supports Mediatek MT6779 apu1sys clocks,
235 which is used to control apu1sys clock output.
236 If you wish to use clock resources from the apu1 device,
237 say Y. Otherwise, say N.
238
239config COMMON_CLK_MT6779_MDLASYS
240 bool "Clock driver for Mediatek MT6779 mdlasys"
241 depends on COMMON_CLK_MT6779
242 help
243 This driver supports Mediatek MT6779 mdlasys clocks,
244 which is used to control mdlasys clock output.
245 If you wish to use clock resources from the mdla device,
246 say Y. Otherwise, say N.
247
248config COMMON_CLK_MT6797
249 bool "Clock driver for MediaTek MT6797"
250 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
251 select COMMON_CLK_MEDIATEK
252 default ARCH_MEDIATEK && ARM64
253 ---help---
254 This driver supports MediaTek MT6797 basic clocks.
255
256config COMMON_CLK_MT6797_MMSYS
257 bool "Clock driver for MediaTek MT6797 mmsys"
258 depends on COMMON_CLK_MT6797
259 ---help---
260 This driver supports MediaTek MT6797 mmsys clocks.
261
262config COMMON_CLK_MT6797_IMGSYS
263 bool "Clock driver for MediaTek MT6797 imgsys"
264 depends on COMMON_CLK_MT6797
265 ---help---
266 This driver supports MediaTek MT6797 imgsys clocks.
267
268config COMMON_CLK_MT6797_VDECSYS
269 bool "Clock driver for MediaTek MT6797 vdecsys"
270 depends on COMMON_CLK_MT6797
271 ---help---
272 This driver supports MediaTek MT6797 vdecsys clocks.
273
274config COMMON_CLK_MT6797_VENCSYS
275 bool "Clock driver for MediaTek MT6797 vencsys"
276 depends on COMMON_CLK_MT6797
277 ---help---
278 This driver supports MediaTek MT6797 vencsys clocks.
279
280config COMMON_CLK_MT6880
281 bool "Clock driver for MediaTek MT6880"
282 select COMMON_CLK_MEDIATEK
283 ---help---
284 This driver supports MediaTek MT6880 basic clocks,
285 which is used to control basic clock output.
286 If you wish to use clock resources from the MT6880 SOC,
287 say Y. Otherwise, say N.
288
289config COMMON_CLK_MT6880_AUDIOSYS
290 bool "Clock driver for MediaTek MT6880 audiosys"
291 depends on COMMON_CLK_MT6880
292 ---help---
293 This driver supports MediaTek MT6880 audiosys clocks,
294 which is used to control audiosys clock output.
295 If you wish to use clock resources from the audiosys device,
296 say Y. Otherwise, say N.
297
298config COMMON_CLK_MT6880_DBGSYS_DEM
299 bool "Clock driver for MediaTek MT6880 dbgsys_dem"
300 depends on COMMON_CLK_MT6880
301 ---help---
302 This driver supports MediaTek MT6880 dbgsys_dem clocks,
303 which is used to control dbgsys_dem clock output.
304 If you wish to use clock resources from the dbgsys_dem device,
305 say Y. Otherwise, say N.
306
307config COMMON_CLK_MT6880_GCE
308 bool "Clock driver for MediaTek MT6880 gce"
309 depends on COMMON_CLK_MT6880
310 ---help---
311 This driver supports MediaTek MT6880 gce clocks,
312 which is used to control gce clock output.
313 If you wish to use clock resources from the gce device,
314 say Y. Otherwise, say N.
315
316config COMMON_CLK_MT6880_IMP_IIC_WRAP_E
317 bool "Clock driver for MediaTek MT6880 imp_iic_wrap_e"
318 depends on COMMON_CLK_MT6880
319 ---help---
320 This driver supports MediaTek MT6880 imp_iic_wrap_e clocks,
321 which is used to control imp_iic_wrap_e clock output.
322 If you wish to use clock resources from the imp_iic_wrap_e device,
323 say Y. Otherwise, say N.
324
325config COMMON_CLK_MT6880_MFGSYS
326 bool "Clock driver for MediaTek MT6880 mfgsys"
327 depends on COMMON_CLK_MT6880
328 ---help---
329 This driver supports MediaTek MT6880 mfgsys clocks,
330 which is used to control mfgsys clock output.
331 If you wish to use clock resources from the mfgsys device,
332 say Y. Otherwise, say N.
333
334config COMMON_CLK_MT6880_MMSYS_CONFIG
335 bool "Clock driver for MediaTek MT6880 mmsys_config"
336 depends on COMMON_CLK_MT6880
337 ---help---
338 This driver supports MediaTek MT6880 mmsys_config clocks,
339 which is used to control mmsys_config clock output.
340 If you wish to use clock resources from the mmsys_config device,
341 say Y. Otherwise, say N.
342
343config COMMON_CLK_MT6890
344 bool "Clock driver for MediaTek MT6890"
345 select COMMON_CLK_MEDIATEK
346 ---help---
347 This driver supports MediaTek MT6890 basic clocks,
348 which is used to control basic clock output.
349 If you wish to use clock resources from the MT6890 SOC,
350 say Y. Otherwise, pls say N.
351
352config COMMON_CLK_MT6890_AUDIOSYS
353 bool "Clock driver for MediaTek MT6890 audiosys"
354 depends on COMMON_CLK_MT6890
355 ---help---
356 This driver supports MediaTek MT6890 audiosys clocks,
357 which is used to control audiosys clock output.
358 If you wish to use clock resources from the audiosys device,
359 say Y. Otherwise, say N.
360
361config COMMON_CLK_MT6890_DBGSYS_DEM
362 bool "Clock driver for MediaTek MT6890 dbgsys_dem"
363 depends on COMMON_CLK_MT6890
364 ---help---
365 This driver supports MediaTek MT6890 dbgsys_dem clocks,
366 which is used to control dbgsys_dem clock output.
367 If you wish to use clock resources from the dbgsys_dem device,
368 say Y. Otherwise, say N.
369
370config COMMON_CLK_MT6890_GCE
371 bool "Clock driver for MediaTek MT6890 gce"
372 depends on COMMON_CLK_MT6890
373 ---help---
374 This driver supports MediaTek MT6890 gce clocks,
375 which is used to control gce clock output.
376 If you wish to use clock resources from the gce device,
377 say Y. Otherwise, say N.
378
379config COMMON_CLK_MT6890_IMP_IIC_WRAP_E
380 bool "Clock driver for MediaTek MT6890 imp_iic_wrap_e"
381 depends on COMMON_CLK_MT6890
382 ---help---
383 This driver supports MediaTek MT6890 imp_iic_wrap_e clocks,
384 which is used to control imp_iic_wrap_e clock output.
385 If you wish to use clock resources from the imp_iic_wrap_e device,
386 say Y. Otherwise, say N.
387
388config COMMON_CLK_MT6890_MFGSYS
389 bool "Clock driver for MediaTek MT6890 mfgsys"
390 depends on COMMON_CLK_MT6890
391 ---help---
392 This driver supports MediaTek MT6890 mfgsys clocks,
393 which is used to control mfgsys clock output.
394 If you wish to use clock resources from the mfgsys device,
395 say Y. Otherwise, say N.
396
397config COMMON_CLK_MT6890_MMSYS_CONFIG
398 bool "Clock driver for MediaTek MT6890 mmsys_config"
399 depends on COMMON_CLK_MT6890
400 ---help---
401 This driver supports MediaTek MT6890 mmsys_config clocks,
402 which is used to control mmsys_config clock output.
403 If you wish to use clock resources from the mmsys_config device,
404 say Y. Otherwise, say N.
405
406config COMMON_CLK_MT7622
407 bool "Clock driver for MediaTek MT7622"
408 depends on ARCH_MEDIATEK || COMPILE_TEST
409 select COMMON_CLK_MEDIATEK
410 default ARCH_MEDIATEK
411 ---help---
412 This driver supports MediaTek MT7622 basic clocks and clocks
413 required for various periperals found on MediaTek.
414
415config COMMON_CLK_MT7622_ETHSYS
416 bool "Clock driver for MediaTek MT7622 ETHSYS"
417 depends on COMMON_CLK_MT7622
418 ---help---
419 This driver add support for clocks for Ethernet and SGMII
420 required on MediaTek MT7622 SoC.
421
422config COMMON_CLK_MT7622_HIFSYS
423 bool "Clock driver for MediaTek MT7622 HIFSYS"
424 depends on COMMON_CLK_MT7622
425 ---help---
426 This driver supports MediaTek MT7622 HIFSYS clocks providing
427 to PCI-E and USB.
428
429config COMMON_CLK_MT7622_AUDSYS
430 bool "Clock driver for MediaTek MT7622 AUDSYS"
431 depends on COMMON_CLK_MT7622
432 ---help---
433 This driver supports MediaTek MT7622 AUDSYS clocks providing
434 to audio consumers such as I2S and TDM.
435
436config COMMON_CLK_MT7629
437 bool "Clock driver for MediaTek MT7629"
438 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
439 select COMMON_CLK_MEDIATEK
440 default ARCH_MEDIATEK && ARM
441 ---help---
442 This driver supports MediaTek MT7629 basic clocks and clocks
443 required for various periperals found on MediaTek.
444
445config COMMON_CLK_MT7629_ETHSYS
446 bool "Clock driver for MediaTek MT7629 ETHSYS"
447 depends on COMMON_CLK_MT7629
448 ---help---
449 This driver add support for clocks for Ethernet and SGMII
450 required on MediaTek MT7629 SoC.
451
452config COMMON_CLK_MT7629_HIFSYS
453 bool "Clock driver for MediaTek MT7629 HIFSYS"
454 depends on COMMON_CLK_MT7629
455 ---help---
456 This driver supports MediaTek MT7629 HIFSYS clocks providing
457 to PCI-E and USB.
458
459config COMMON_CLK_MT8135
460 bool "Clock driver for MediaTek MT8135"
461 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
462 select COMMON_CLK_MEDIATEK
463 default ARCH_MEDIATEK && ARM
464 ---help---
465 This driver supports MediaTek MT8135 clocks.
466
467config COMMON_CLK_MT8168
468 bool "Clock driver for MediaTek MT8168"
469 depends on ARCH_MEDIATEK || COMPILE_TEST
470 select COMMON_CLK_MEDIATEK
471 default ARCH_MEDIATEK && ARM64
472 ---help---
473 This driver supports MediaTek MT8168 basic clocks.
474
475config COMMON_CLK_MT8168_APU
476 bool "Clock driver for MediaTek MT8168 apu"
477 depends on COMMON_CLK_MT8168
478 ---help---
479 This driver supports MediaTek MT8168 apu clocks.
480
481config COMMON_CLK_MT8168_CAMSYS
482 bool "Clock driver for MediaTek MT8168 camsys"
483 depends on COMMON_CLK_MT8168
484 ---help---
485 This driver supports MediaTek MT8168 camsys clocks.
486
487config COMMON_CLK_MT8168_MFGCFG
488 bool "Clock driver for MediaTek MT8168 mfgcfg"
489 depends on COMMON_CLK_MT8168
490 ---help---
491 This driver supports MediaTek MT8168 mfgcfg clocks.
492
493config COMMON_CLK_MT8168_MMSYS
494 bool "Clock driver for MediaTek MT8168 mmsys"
495 depends on COMMON_CLK_MT8168
496 ---help---
497 This driver supports MediaTek MT8168 mmsys clocks.
498
499config COMMON_CLK_MT8168_VDECSYS
500 bool "Clock driver for MediaTek MT8168 vdecsys"
501 depends on COMMON_CLK_MT8168
502 ---help---
503 This driver supports MediaTek MT8168 vdecsys clocks.
504
505config COMMON_CLK_MT8168_VENCSYS
506 bool "Clock driver for MediaTek MT8168 vencsys"
507 depends on COMMON_CLK_MT8168
508 ---help---
509 This driver supports MediaTek MT8168 vencsys clocks.
510
511config COMMON_CLK_MT8173
512 bool "Clock driver for MediaTek MT8173"
513 depends on ARCH_MEDIATEK || COMPILE_TEST
514 select COMMON_CLK_MEDIATEK
515 default ARCH_MEDIATEK
516 ---help---
517 This driver supports MediaTek MT8173 clocks.
518
519config COMMON_CLK_MTK_FREQ_HOPPING
520 tristate "MediaTek FREQHOPPING driver"
521 help
522 FREQHOPPING driver support for MediaTek SOC
523 If you want to use MediaTek FREQHOPPING driver,
524 say Y or M here.
525 If unsure, say N.
526
527config COMMON_CLK_MTK_FREQ_HOPPING_DEBUG
528 bool "Mediate Freq Hopping debug fs"
529 depends on DEBUG_FS && COMMON_CLK_MTK_FREQ_HOPPING
530 help
531 This option is for debugging purpose
532 say Y to use debugfs interface to control
533 Freqhopping.
534 Otherwise, say N
535
536config COMMON_CLK_MTK_FREQ_HOPPING_SUBSYS
537 bool
538 depends on COMMON_CLK_MTK_FREQ_HOPPING_SSPM || COMMON_CLK_MTK_FREQ_HOPPING_MCUPM
539 help
540 If FREQHOPPING HW is controlled by other processor,
541 such as SSPM, this should be set.
542
543config COMMON_CLK_MTK_FREQ_HOPPING_SSPM
544 bool "Mediatek FREQHOPPING controlled by SSPM"
545 depends on COMMON_CLK_MTK_FREQ_HOPPING && MTK_TINYSYS_SSPM_SUPPORT
546 select COMMON_CLK_MTK_FREQ_HOPPING_SUBSYS
547 help
548 If FREQHOPPING HW is controlled by SSPM,
549 say Y here.
550 Otherwise, say N.
551 Enabling this config will auto set COMMON_CLK_MTK_FREQ_HOPPING_SUBSYS
552
553config COMMON_CLK_MTK_FREQ_HOPPING_MCUPM
554 bool "Mediatek FREQHOPPING controlled by MCUPM"
555 depends on COMMON_CLK_MTK_FREQ_HOPPING && MTK_TINYSYS_MCUPM_SUPPORT
556 select COMMON_CLK_MTK_FREQ_HOPPING_SUBSYS
557 help
558 If FREQHOPPING HW is controlled by MCUPM,
559 say Y here.
560 Otherwise, say N.
561 Enabling this config will auto set COMMON_CLK_MTK_FREQ_HOPPING_SUBSYS
562
563endmenu