1 # SPDX-License-Identifier: GPL-2.0-only
3 # MediaTek Clock Drivers
5 menu "Clock driver for MediaTek SoC"
6 depends on ARCH_MEDIATEK || COMPILE_TEST
8 config COMMON_CLK_MEDIATEK
10 select RESET_CONTROLLER
12 MediaTek SoCs' clock support.
14 config COMMON_CLK_MT2701
15 bool "Clock driver for MediaTek MT2701"
16 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
17 select COMMON_CLK_MEDIATEK
18 default ARCH_MEDIATEK && ARM
20 This driver supports MediaTek MT2701 basic clocks.
22 config COMMON_CLK_MT2701_MMSYS
23 bool "Clock driver for MediaTek MT2701 mmsys"
24 depends on COMMON_CLK_MT2701
26 This driver supports MediaTek MT2701 mmsys clocks.
28 config COMMON_CLK_MT2701_IMGSYS
29 bool "Clock driver for MediaTek MT2701 imgsys"
30 depends on COMMON_CLK_MT2701
32 This driver supports MediaTek MT2701 imgsys clocks.
34 config COMMON_CLK_MT2701_VDECSYS
35 bool "Clock driver for MediaTek MT2701 vdecsys"
36 depends on COMMON_CLK_MT2701
38 This driver supports MediaTek MT2701 vdecsys clocks.
40 config COMMON_CLK_MT2701_HIFSYS
41 bool "Clock driver for MediaTek MT2701 hifsys"
42 depends on COMMON_CLK_MT2701
44 This driver supports MediaTek MT2701 hifsys clocks.
46 config COMMON_CLK_MT2701_ETHSYS
47 bool "Clock driver for MediaTek MT2701 ethsys"
48 depends on COMMON_CLK_MT2701
50 This driver supports MediaTek MT2701 ethsys clocks.
52 config COMMON_CLK_MT2701_BDPSYS
53 bool "Clock driver for MediaTek MT2701 bdpsys"
54 depends on COMMON_CLK_MT2701
56 This driver supports MediaTek MT2701 bdpsys clocks.
58 config COMMON_CLK_MT2701_AUDSYS
59 bool "Clock driver for Mediatek MT2701 audsys"
60 depends on COMMON_CLK_MT2701
62 This driver supports Mediatek MT2701 audsys clocks.
64 config COMMON_CLK_MT2701_G3DSYS
65 bool "Clock driver for MediaTek MT2701 g3dsys"
66 depends on COMMON_CLK_MT2701
68 This driver supports MediaTek MT2701 g3dsys clocks.
70 config COMMON_CLK_MT2712
71 bool "Clock driver for MediaTek MT2712"
72 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
73 select COMMON_CLK_MEDIATEK
74 default ARCH_MEDIATEK && ARM64
76 This driver supports MediaTek MT2712 basic clocks.
78 config COMMON_CLK_MT2712_BDPSYS
79 bool "Clock driver for MediaTek MT2712 bdpsys"
80 depends on COMMON_CLK_MT2712
82 This driver supports MediaTek MT2712 bdpsys clocks.
84 config COMMON_CLK_MT2712_IMGSYS
85 bool "Clock driver for MediaTek MT2712 imgsys"
86 depends on COMMON_CLK_MT2712
88 This driver supports MediaTek MT2712 imgsys clocks.
90 config COMMON_CLK_MT2712_JPGDECSYS
91 bool "Clock driver for MediaTek MT2712 jpgdecsys"
92 depends on COMMON_CLK_MT2712
94 This driver supports MediaTek MT2712 jpgdecsys clocks.
96 config COMMON_CLK_MT2712_MFGCFG
97 bool "Clock driver for MediaTek MT2712 mfgcfg"
98 depends on COMMON_CLK_MT2712
100 This driver supports MediaTek MT2712 mfgcfg clocks.
102 config COMMON_CLK_MT2712_MMSYS
103 bool "Clock driver for MediaTek MT2712 mmsys"
104 depends on COMMON_CLK_MT2712
106 This driver supports MediaTek MT2712 mmsys clocks.
108 config COMMON_CLK_MT2712_VDECSYS
109 bool "Clock driver for MediaTek MT2712 vdecsys"
110 depends on COMMON_CLK_MT2712
112 This driver supports MediaTek MT2712 vdecsys clocks.
114 config COMMON_CLK_MT2712_VENCSYS
115 bool "Clock driver for MediaTek MT2712 vencsys"
116 depends on COMMON_CLK_MT2712
118 This driver supports MediaTek MT2712 vencsys clocks.
120 config COMMON_CLK_MT6765
121 bool "Clock driver for MediaTek MT6765"
122 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
123 select COMMON_CLK_MEDIATEK
124 default ARCH_MEDIATEK && ARM64
126 This driver supports MediaTek MT6765 basic clocks.
128 config COMMON_CLK_MT6765_AUDIOSYS
129 bool "Clock driver for MediaTek MT6765 audiosys"
130 depends on COMMON_CLK_MT6765
132 This driver supports MediaTek MT6765 audiosys clocks.
134 config COMMON_CLK_MT6765_CAMSYS
135 bool "Clock driver for MediaTek MT6765 camsys"
136 depends on COMMON_CLK_MT6765
138 This driver supports MediaTek MT6765 camsys clocks.
140 config COMMON_CLK_MT6765_GCESYS
141 bool "Clock driver for MediaTek MT6765 gcesys"
142 depends on COMMON_CLK_MT6765
144 This driver supports MediaTek MT6765 gcesys clocks.
146 config COMMON_CLK_MT6765_MMSYS
147 bool "Clock driver for MediaTek MT6765 mmsys"
148 depends on COMMON_CLK_MT6765
150 This driver supports MediaTek MT6765 mmsys clocks.
152 config COMMON_CLK_MT6765_IMGSYS
153 bool "Clock driver for MediaTek MT6765 imgsys"
154 depends on COMMON_CLK_MT6765
156 This driver supports MediaTek MT6765 imgsys clocks.
158 config COMMON_CLK_MT6765_VCODECSYS
159 bool "Clock driver for MediaTek MT6765 vcodecsys"
160 depends on COMMON_CLK_MT6765
162 This driver supports MediaTek MT6765 vcodecsys clocks.
164 config COMMON_CLK_MT6765_MFGSYS
165 bool "Clock driver for MediaTek MT6765 mfgsys"
166 depends on COMMON_CLK_MT6765
168 This driver supports MediaTek MT6765 mfgsys clocks.
170 config COMMON_CLK_MT6765_MIPI0ASYS
171 bool "Clock driver for MediaTek MT6765 mipi0asys"
172 depends on COMMON_CLK_MT6765
174 This driver supports MediaTek MT6765 mipi0asys clocks.
176 config COMMON_CLK_MT6765_MIPI0BSYS
177 bool "Clock driver for MediaTek MT6765 mipi0bsys"
178 depends on COMMON_CLK_MT6765
180 This driver supports MediaTek MT6765 mipi0bsys clocks.
182 config COMMON_CLK_MT6765_MIPI1ASYS
183 bool "Clock driver for MediaTek MT6765 mipi1asys"
184 depends on COMMON_CLK_MT6765
186 This driver supports MediaTek MT6765 mipi1asys clocks.
188 config COMMON_CLK_MT6765_MIPI1BSYS
189 bool "Clock driver for MediaTek MT6765 mipi1bsys"
190 depends on COMMON_CLK_MT6765
192 This driver supports MediaTek MT6765 mipi1bsys clocks.
194 config COMMON_CLK_MT6765_MIPI2ASYS
195 bool "Clock driver for MediaTek MT6765 mipi2asys"
196 depends on COMMON_CLK_MT6765
198 This driver supports MediaTek MT6765 mipi2asys clocks.
200 config COMMON_CLK_MT6765_MIPI2BSYS
201 bool "Clock driver for MediaTek MT6765 mipi2bsys"
202 depends on COMMON_CLK_MT6765
204 This driver supports MediaTek MT6765 mipi2bsys clocks.
206 config COMMON_CLK_MT6779
207 bool "Clock driver for MediaTek MT6779"
208 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
209 select COMMON_CLK_MEDIATEK
210 default ARCH_MEDIATEK && ARM64
212 This driver supports MediaTek MT6779 basic clocks.
214 config COMMON_CLK_MT6779_MMSYS
215 bool "Clock driver for MediaTek MT6779 mmsys"
216 depends on COMMON_CLK_MT6779
218 This driver supports MediaTek MT6779 mmsys clocks.
220 config COMMON_CLK_MT6779_IMGSYS
221 bool "Clock driver for MediaTek MT6779 imgsys"
222 depends on COMMON_CLK_MT6779
224 This driver supports MediaTek MT6779 imgsys clocks.
226 config COMMON_CLK_MT6779_IPESYS
227 bool "Clock driver for MediaTek MT6779 ipesys"
228 depends on COMMON_CLK_MT6779
230 This driver supports MediaTek MT6779 ipesys clocks.
232 config COMMON_CLK_MT6779_CAMSYS
233 bool "Clock driver for MediaTek MT6779 camsys"
234 depends on COMMON_CLK_MT6779
236 This driver supports MediaTek MT6779 camsys clocks.
238 config COMMON_CLK_MT6779_VDECSYS
239 bool "Clock driver for MediaTek MT6779 vdecsys"
240 depends on COMMON_CLK_MT6779
242 This driver supports MediaTek MT6779 vdecsys clocks.
244 config COMMON_CLK_MT6779_VENCSYS
245 bool "Clock driver for MediaTek MT6779 vencsys"
246 depends on COMMON_CLK_MT6779
248 This driver supports MediaTek MT6779 vencsys clocks.
250 config COMMON_CLK_MT6779_MFGCFG
251 bool "Clock driver for MediaTek MT6779 mfgcfg"
252 depends on COMMON_CLK_MT6779
254 This driver supports MediaTek MT6779 mfgcfg clocks.
256 config COMMON_CLK_MT6779_AUDSYS
257 bool "Clock driver for Mediatek MT6779 audsys"
258 depends on COMMON_CLK_MT6779
260 This driver supports Mediatek MT6779 audsys clocks.
262 config COMMON_CLK_MT6797
263 bool "Clock driver for MediaTek MT6797"
264 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
265 select COMMON_CLK_MEDIATEK
266 default ARCH_MEDIATEK && ARM64
268 This driver supports MediaTek MT6797 basic clocks.
270 config COMMON_CLK_MT6797_MMSYS
271 bool "Clock driver for MediaTek MT6797 mmsys"
272 depends on COMMON_CLK_MT6797
274 This driver supports MediaTek MT6797 mmsys clocks.
276 config COMMON_CLK_MT6797_IMGSYS
277 bool "Clock driver for MediaTek MT6797 imgsys"
278 depends on COMMON_CLK_MT6797
280 This driver supports MediaTek MT6797 imgsys clocks.
282 config COMMON_CLK_MT6797_VDECSYS
283 bool "Clock driver for MediaTek MT6797 vdecsys"
284 depends on COMMON_CLK_MT6797
286 This driver supports MediaTek MT6797 vdecsys clocks.
288 config COMMON_CLK_MT6797_VENCSYS
289 bool "Clock driver for MediaTek MT6797 vencsys"
290 depends on COMMON_CLK_MT6797
292 This driver supports MediaTek MT6797 vencsys clocks.
294 config COMMON_CLK_MT7622
295 bool "Clock driver for MediaTek MT7622"
296 depends on ARCH_MEDIATEK || COMPILE_TEST
297 select COMMON_CLK_MEDIATEK
298 default ARCH_MEDIATEK
300 This driver supports MediaTek MT7622 basic clocks and clocks
301 required for various periperals found on MediaTek.
303 config COMMON_CLK_MT7622_ETHSYS
304 bool "Clock driver for MediaTek MT7622 ETHSYS"
305 depends on COMMON_CLK_MT7622
307 This driver add support for clocks for Ethernet and SGMII
308 required on MediaTek MT7622 SoC.
310 config COMMON_CLK_MT7622_HIFSYS
311 bool "Clock driver for MediaTek MT7622 HIFSYS"
312 depends on COMMON_CLK_MT7622
314 This driver supports MediaTek MT7622 HIFSYS clocks providing
317 config COMMON_CLK_MT7622_AUDSYS
318 bool "Clock driver for MediaTek MT7622 AUDSYS"
319 depends on COMMON_CLK_MT7622
321 This driver supports MediaTek MT7622 AUDSYS clocks providing
322 to audio consumers such as I2S and TDM.
324 config COMMON_CLK_MT7629
325 bool "Clock driver for MediaTek MT7629"
326 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
327 select COMMON_CLK_MEDIATEK
328 default ARCH_MEDIATEK && ARM
330 This driver supports MediaTek MT7629 basic clocks and clocks
331 required for various periperals found on MediaTek.
333 config COMMON_CLK_MT7629_ETHSYS
334 bool "Clock driver for MediaTek MT7629 ETHSYS"
335 depends on COMMON_CLK_MT7629
337 This driver add support for clocks for Ethernet and SGMII
338 required on MediaTek MT7629 SoC.
340 config COMMON_CLK_MT7629_HIFSYS
341 bool "Clock driver for MediaTek MT7629 HIFSYS"
342 depends on COMMON_CLK_MT7629
344 This driver supports MediaTek MT7629 HIFSYS clocks providing
347 config COMMON_CLK_MT8135
348 bool "Clock driver for MediaTek MT8135"
349 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
350 select COMMON_CLK_MEDIATEK
351 default ARCH_MEDIATEK && ARM
353 This driver supports MediaTek MT8135 clocks.
355 config COMMON_CLK_MT8167
356 bool "Clock driver for MediaTek MT8167"
357 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
358 select COMMON_CLK_MEDIATEK
359 default ARCH_MEDIATEK
361 This driver supports MediaTek MT8167 basic clocks.
363 config COMMON_CLK_MT8167_AUDSYS
364 bool "Clock driver for MediaTek MT8167 audsys"
365 depends on COMMON_CLK_MT8167
366 default COMMON_CLK_MT8167
368 This driver supports MediaTek MT8167 audsys clocks.
370 config COMMON_CLK_MT8167_IMGSYS
371 bool "Clock driver for MediaTek MT8167 imgsys"
372 depends on COMMON_CLK_MT8167
373 default COMMON_CLK_MT8167
375 This driver supports MediaTek MT8167 imgsys clocks.
377 config COMMON_CLK_MT8167_MFGCFG
378 bool "Clock driver for MediaTek MT8167 mfgcfg"
379 depends on COMMON_CLK_MT8167
380 default COMMON_CLK_MT8167
382 This driver supports MediaTek MT8167 mfgcfg clocks.
384 config COMMON_CLK_MT8167_MMSYS
385 bool "Clock driver for MediaTek MT8167 mmsys"
386 depends on COMMON_CLK_MT8167
387 default COMMON_CLK_MT8167
389 This driver supports MediaTek MT8167 mmsys clocks.
391 config COMMON_CLK_MT8167_VDECSYS
392 bool "Clock driver for MediaTek MT8167 vdecsys"
393 depends on COMMON_CLK_MT8167
394 default COMMON_CLK_MT8167
396 This driver supports MediaTek MT8167 vdecsys clocks.
398 config COMMON_CLK_MT8173
399 bool "Clock driver for MediaTek MT8173"
400 depends on ARCH_MEDIATEK || COMPILE_TEST
401 select COMMON_CLK_MEDIATEK
402 default ARCH_MEDIATEK
404 This driver supports MediaTek MT8173 clocks.
406 config COMMON_CLK_MT8173_MMSYS
407 bool "Clock driver for MediaTek MT8173 mmsys"
408 depends on COMMON_CLK_MT8173
409 default COMMON_CLK_MT8173
411 This driver supports MediaTek MT8173 mmsys clocks.
413 config COMMON_CLK_MT8183
414 bool "Clock driver for MediaTek MT8183"
415 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
416 select COMMON_CLK_MEDIATEK
417 default ARCH_MEDIATEK && ARM64
419 This driver supports MediaTek MT8183 basic clocks.
421 config COMMON_CLK_MT8183_AUDIOSYS
422 bool "Clock driver for MediaTek MT8183 audiosys"
423 depends on COMMON_CLK_MT8183
424 default COMMON_CLK_MT8183
426 This driver supports MediaTek MT8183 audiosys clocks.
428 config COMMON_CLK_MT8183_CAMSYS
429 bool "Clock driver for MediaTek MT8183 camsys"
430 depends on COMMON_CLK_MT8183
431 default COMMON_CLK_MT8183
433 This driver supports MediaTek MT8183 camsys clocks.
435 config COMMON_CLK_MT8183_IMGSYS
436 bool "Clock driver for MediaTek MT8183 imgsys"
437 depends on COMMON_CLK_MT8183
438 default COMMON_CLK_MT8183
440 This driver supports MediaTek MT8183 imgsys clocks.
442 config COMMON_CLK_MT8183_IPU_CORE0
443 bool "Clock driver for MediaTek MT8183 ipu_core0"
444 depends on COMMON_CLK_MT8183
445 default COMMON_CLK_MT8183
447 This driver supports MediaTek MT8183 ipu_core0 clocks.
449 config COMMON_CLK_MT8183_IPU_CORE1
450 bool "Clock driver for MediaTek MT8183 ipu_core1"
451 depends on COMMON_CLK_MT8183
452 default COMMON_CLK_MT8183
454 This driver supports MediaTek MT8183 ipu_core1 clocks.
456 config COMMON_CLK_MT8183_IPU_ADL
457 bool "Clock driver for MediaTek MT8183 ipu_adl"
458 depends on COMMON_CLK_MT8183
459 default COMMON_CLK_MT8183
461 This driver supports MediaTek MT8183 ipu_adl clocks.
463 config COMMON_CLK_MT8183_IPU_CONN
464 bool "Clock driver for MediaTek MT8183 ipu_conn"
465 depends on COMMON_CLK_MT8183
466 default COMMON_CLK_MT8183
468 This driver supports MediaTek MT8183 ipu_conn clocks.
470 config COMMON_CLK_MT8183_MFGCFG
471 bool "Clock driver for MediaTek MT8183 mfgcfg"
472 depends on COMMON_CLK_MT8183
473 default COMMON_CLK_MT8183
475 This driver supports MediaTek MT8183 mfgcfg clocks.
477 config COMMON_CLK_MT8183_MMSYS
478 bool "Clock driver for MediaTek MT8183 mmsys"
479 depends on COMMON_CLK_MT8183
480 default COMMON_CLK_MT8183
482 This driver supports MediaTek MT8183 mmsys clocks.
484 config COMMON_CLK_MT8183_VDECSYS
485 bool "Clock driver for MediaTek MT8183 vdecsys"
486 depends on COMMON_CLK_MT8183
487 default COMMON_CLK_MT8183
489 This driver supports MediaTek MT8183 vdecsys clocks.
491 config COMMON_CLK_MT8183_VENCSYS
492 bool "Clock driver for MediaTek MT8183 vencsys"
493 depends on COMMON_CLK_MT8183
494 default COMMON_CLK_MT8183
496 This driver supports MediaTek MT8183 vencsys clocks.
498 config COMMON_CLK_MT8192
499 bool "Clock driver for MediaTek MT8192"
500 depends on ARM64 || COMPILE_TEST
501 select COMMON_CLK_MEDIATEK
504 This driver supports MediaTek MT8192 basic clocks.
506 config COMMON_CLK_MT8192_AUDSYS
507 bool "Clock driver for MediaTek MT8192 audsys"
508 depends on COMMON_CLK_MT8192
510 This driver supports MediaTek MT8192 audsys clocks.
512 config COMMON_CLK_MT8192_CAMSYS
513 bool "Clock driver for MediaTek MT8192 camsys"
514 depends on COMMON_CLK_MT8192
516 This driver supports MediaTek MT8192 camsys and camsys_raw clocks.
518 config COMMON_CLK_MT8192_IMGSYS
519 bool "Clock driver for MediaTek MT8192 imgsys"
520 depends on COMMON_CLK_MT8192
522 This driver supports MediaTek MT8192 imgsys and imgsys2 clocks.
524 config COMMON_CLK_MT8192_IMP_IIC_WRAP
525 bool "Clock driver for MediaTek MT8192 imp_iic_wrap"
526 depends on COMMON_CLK_MT8192
528 This driver supports MediaTek MT8192 imp_iic_wrap clocks.
530 config COMMON_CLK_MT8192_IPESYS
531 bool "Clock driver for MediaTek MT8192 ipesys"
532 depends on COMMON_CLK_MT8192
534 This driver supports MediaTek MT8192 ipesys clocks.
536 config COMMON_CLK_MT8192_MDPSYS
537 bool "Clock driver for MediaTek MT8192 mdpsys"
538 depends on COMMON_CLK_MT8192
540 This driver supports MediaTek MT8192 mdpsys clocks.
542 config COMMON_CLK_MT8192_MFGCFG
543 bool "Clock driver for MediaTek MT8192 mfgcfg"
544 depends on COMMON_CLK_MT8192
546 This driver supports MediaTek MT8192 mfgcfg clocks.
548 config COMMON_CLK_MT8192_MMSYS
549 bool "Clock driver for MediaTek MT8192 mmsys"
550 depends on COMMON_CLK_MT8192
552 This driver supports MediaTek MT8192 mmsys clocks.
554 config COMMON_CLK_MT8192_MSDC
555 bool "Clock driver for MediaTek MT8192 msdc"
556 depends on COMMON_CLK_MT8192
558 This driver supports MediaTek MT8192 msdc and msdc_top clocks.
560 config COMMON_CLK_MT8192_SCP_ADSP
561 bool "Clock driver for MediaTek MT8192 scp_adsp"
562 depends on COMMON_CLK_MT8192
564 This driver supports MediaTek MT8192 scp_adsp clocks.
566 config COMMON_CLK_MT8192_VDECSYS
567 bool "Clock driver for MediaTek MT8192 vdecsys"
568 depends on COMMON_CLK_MT8192
570 This driver supports MediaTek MT8192 vdecsys and vdecsys_soc clocks.
572 config COMMON_CLK_MT8192_VENCSYS
573 bool "Clock driver for MediaTek MT8192 vencsys"
574 depends on COMMON_CLK_MT8192
576 This driver supports MediaTek MT8192 vencsys clocks.
578 config COMMON_CLK_MT8516
579 bool "Clock driver for MediaTek MT8516"
580 depends on ARCH_MEDIATEK || COMPILE_TEST
581 select COMMON_CLK_MEDIATEK
582 default ARCH_MEDIATEK
584 This driver supports MediaTek MT8516 clocks.
586 config COMMON_CLK_MT8516_AUDSYS
587 bool "Clock driver for MediaTek MT8516 audsys"
588 depends on COMMON_CLK_MT8516
590 This driver supports MediaTek MT8516 audsys clocks.