1# SPDX-License-Identifier: GPL-2.0-only
2#
3# MediaTek Clock Drivers
4#
5menu "Clock driver for MediaTek SoC"
6	depends on ARCH_MEDIATEK || COMPILE_TEST
7
8config COMMON_CLK_MEDIATEK
9	bool
10	select RESET_CONTROLLER
11	help
12	  MediaTek SoCs' clock support.
13
14config 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
19	help
20	  This driver supports MediaTek MT2701 basic clocks.
21
22config COMMON_CLK_MT2701_MMSYS
23	bool "Clock driver for MediaTek MT2701 mmsys"
24	depends on COMMON_CLK_MT2701
25	help
26	  This driver supports MediaTek MT2701 mmsys clocks.
27
28config COMMON_CLK_MT2701_IMGSYS
29	bool "Clock driver for MediaTek MT2701 imgsys"
30	depends on COMMON_CLK_MT2701
31	help
32	  This driver supports MediaTek MT2701 imgsys clocks.
33
34config COMMON_CLK_MT2701_VDECSYS
35	bool "Clock driver for MediaTek MT2701 vdecsys"
36	depends on COMMON_CLK_MT2701
37	help
38	  This driver supports MediaTek MT2701 vdecsys clocks.
39
40config COMMON_CLK_MT2701_HIFSYS
41	bool "Clock driver for MediaTek MT2701 hifsys"
42	depends on COMMON_CLK_MT2701
43	help
44	  This driver supports MediaTek MT2701 hifsys clocks.
45
46config COMMON_CLK_MT2701_ETHSYS
47	bool "Clock driver for MediaTek MT2701 ethsys"
48	depends on COMMON_CLK_MT2701
49	help
50	  This driver supports MediaTek MT2701 ethsys clocks.
51
52config COMMON_CLK_MT2701_BDPSYS
53	bool "Clock driver for MediaTek MT2701 bdpsys"
54	depends on COMMON_CLK_MT2701
55	help
56	  This driver supports MediaTek MT2701 bdpsys clocks.
57
58config COMMON_CLK_MT2701_AUDSYS
59	bool "Clock driver for Mediatek MT2701 audsys"
60	depends on COMMON_CLK_MT2701
61	help
62	  This driver supports Mediatek MT2701 audsys clocks.
63
64config COMMON_CLK_MT2701_G3DSYS
65	bool "Clock driver for MediaTek MT2701 g3dsys"
66	depends on COMMON_CLK_MT2701
67	help
68	  This driver supports MediaTek MT2701 g3dsys clocks.
69
70config 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
75	help
76	  This driver supports MediaTek MT2712 basic clocks.
77
78config COMMON_CLK_MT2712_BDPSYS
79	bool "Clock driver for MediaTek MT2712 bdpsys"
80	depends on COMMON_CLK_MT2712
81	help
82	  This driver supports MediaTek MT2712 bdpsys clocks.
83
84config COMMON_CLK_MT2712_IMGSYS
85	bool "Clock driver for MediaTek MT2712 imgsys"
86	depends on COMMON_CLK_MT2712
87	help
88	  This driver supports MediaTek MT2712 imgsys clocks.
89
90config COMMON_CLK_MT2712_JPGDECSYS
91	bool "Clock driver for MediaTek MT2712 jpgdecsys"
92	depends on COMMON_CLK_MT2712
93	help
94	  This driver supports MediaTek MT2712 jpgdecsys clocks.
95
96config COMMON_CLK_MT2712_MFGCFG
97	bool "Clock driver for MediaTek MT2712 mfgcfg"
98	depends on COMMON_CLK_MT2712
99	help
100	  This driver supports MediaTek MT2712 mfgcfg clocks.
101
102config COMMON_CLK_MT2712_MMSYS
103	bool "Clock driver for MediaTek MT2712 mmsys"
104	depends on COMMON_CLK_MT2712
105	help
106	  This driver supports MediaTek MT2712 mmsys clocks.
107
108config COMMON_CLK_MT2712_VDECSYS
109	bool "Clock driver for MediaTek MT2712 vdecsys"
110	depends on COMMON_CLK_MT2712
111	help
112	  This driver supports MediaTek MT2712 vdecsys clocks.
113
114config COMMON_CLK_MT2712_VENCSYS
115	bool "Clock driver for MediaTek MT2712 vencsys"
116	depends on COMMON_CLK_MT2712
117	help
118	  This driver supports MediaTek MT2712 vencsys clocks.
119
120config 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
125       help
126         This driver supports MediaTek MT6765 basic clocks.
127
128config COMMON_CLK_MT6765_AUDIOSYS
129       bool "Clock driver for MediaTek MT6765 audiosys"
130       depends on COMMON_CLK_MT6765
131       help
132         This driver supports MediaTek MT6765 audiosys clocks.
133
134config COMMON_CLK_MT6765_CAMSYS
135       bool "Clock driver for MediaTek MT6765 camsys"
136       depends on COMMON_CLK_MT6765
137       help
138         This driver supports MediaTek MT6765 camsys clocks.
139
140config COMMON_CLK_MT6765_GCESYS
141       bool "Clock driver for MediaTek MT6765 gcesys"
142       depends on COMMON_CLK_MT6765
143       help
144         This driver supports MediaTek MT6765 gcesys clocks.
145
146config COMMON_CLK_MT6765_MMSYS
147       bool "Clock driver for MediaTek MT6765 mmsys"
148       depends on COMMON_CLK_MT6765
149       help
150         This driver supports MediaTek MT6765 mmsys clocks.
151
152config COMMON_CLK_MT6765_IMGSYS
153       bool "Clock driver for MediaTek MT6765 imgsys"
154       depends on COMMON_CLK_MT6765
155       help
156         This driver supports MediaTek MT6765 imgsys clocks.
157
158config COMMON_CLK_MT6765_VCODECSYS
159       bool "Clock driver for MediaTek MT6765 vcodecsys"
160       depends on COMMON_CLK_MT6765
161       help
162         This driver supports MediaTek MT6765 vcodecsys clocks.
163
164config COMMON_CLK_MT6765_MFGSYS
165       bool "Clock driver for MediaTek MT6765 mfgsys"
166       depends on COMMON_CLK_MT6765
167       help
168         This driver supports MediaTek MT6765 mfgsys clocks.
169
170config COMMON_CLK_MT6765_MIPI0ASYS
171       bool "Clock driver for MediaTek MT6765 mipi0asys"
172       depends on COMMON_CLK_MT6765
173       help
174         This driver supports MediaTek MT6765 mipi0asys clocks.
175
176config COMMON_CLK_MT6765_MIPI0BSYS
177       bool "Clock driver for MediaTek MT6765 mipi0bsys"
178       depends on COMMON_CLK_MT6765
179       help
180         This driver supports MediaTek MT6765 mipi0bsys clocks.
181
182config COMMON_CLK_MT6765_MIPI1ASYS
183       bool "Clock driver for MediaTek MT6765 mipi1asys"
184       depends on COMMON_CLK_MT6765
185       help
186         This driver supports MediaTek MT6765 mipi1asys clocks.
187
188config COMMON_CLK_MT6765_MIPI1BSYS
189       bool "Clock driver for MediaTek MT6765 mipi1bsys"
190       depends on COMMON_CLK_MT6765
191       help
192         This driver supports MediaTek MT6765 mipi1bsys clocks.
193
194config COMMON_CLK_MT6765_MIPI2ASYS
195       bool "Clock driver for MediaTek MT6765 mipi2asys"
196       depends on COMMON_CLK_MT6765
197      help
198         This driver supports MediaTek MT6765 mipi2asys clocks.
199
200config COMMON_CLK_MT6765_MIPI2BSYS
201       bool "Clock driver for MediaTek MT6765 mipi2bsys"
202       depends on COMMON_CLK_MT6765
203       help
204         This driver supports MediaTek MT6765 mipi2bsys clocks.
205
206config 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
211	help
212	  This driver supports MediaTek MT6779 basic clocks.
213
214config COMMON_CLK_MT6779_MMSYS
215	bool "Clock driver for MediaTek MT6779 mmsys"
216	depends on COMMON_CLK_MT6779
217	help
218	  This driver supports MediaTek MT6779 mmsys clocks.
219
220config COMMON_CLK_MT6779_IMGSYS
221	bool "Clock driver for MediaTek MT6779 imgsys"
222	depends on COMMON_CLK_MT6779
223	help
224	  This driver supports MediaTek MT6779 imgsys clocks.
225
226config COMMON_CLK_MT6779_IPESYS
227	bool "Clock driver for MediaTek MT6779 ipesys"
228	depends on COMMON_CLK_MT6779
229	help
230	  This driver supports MediaTek MT6779 ipesys clocks.
231
232config COMMON_CLK_MT6779_CAMSYS
233	bool "Clock driver for MediaTek MT6779 camsys"
234	depends on COMMON_CLK_MT6779
235	help
236	  This driver supports MediaTek MT6779 camsys clocks.
237
238config COMMON_CLK_MT6779_VDECSYS
239	bool "Clock driver for MediaTek MT6779 vdecsys"
240	depends on COMMON_CLK_MT6779
241	help
242	  This driver supports MediaTek MT6779 vdecsys clocks.
243
244config COMMON_CLK_MT6779_VENCSYS
245	bool "Clock driver for MediaTek MT6779 vencsys"
246	depends on COMMON_CLK_MT6779
247	help
248	  This driver supports MediaTek MT6779 vencsys clocks.
249
250config COMMON_CLK_MT6779_MFGCFG
251	bool "Clock driver for MediaTek MT6779 mfgcfg"
252	depends on COMMON_CLK_MT6779
253	help
254	  This driver supports MediaTek MT6779 mfgcfg clocks.
255
256config COMMON_CLK_MT6779_AUDSYS
257	bool "Clock driver for Mediatek MT6779 audsys"
258	depends on COMMON_CLK_MT6779
259	help
260	  This driver supports Mediatek MT6779 audsys clocks.
261
262config 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
267	help
268	  This driver supports MediaTek MT6797 basic clocks.
269
270config COMMON_CLK_MT6797_MMSYS
271	bool "Clock driver for MediaTek MT6797 mmsys"
272	depends on COMMON_CLK_MT6797
273	help
274	  This driver supports MediaTek MT6797 mmsys clocks.
275
276config COMMON_CLK_MT6797_IMGSYS
277	bool "Clock driver for MediaTek MT6797 imgsys"
278	depends on COMMON_CLK_MT6797
279	help
280	  This driver supports MediaTek MT6797 imgsys clocks.
281
282config COMMON_CLK_MT6797_VDECSYS
283	bool "Clock driver for MediaTek MT6797 vdecsys"
284	depends on COMMON_CLK_MT6797
285	help
286	  This driver supports MediaTek MT6797 vdecsys clocks.
287
288config COMMON_CLK_MT6797_VENCSYS
289	bool "Clock driver for MediaTek MT6797 vencsys"
290	depends on COMMON_CLK_MT6797
291	help
292	  This driver supports MediaTek MT6797 vencsys clocks.
293
294config 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
299	help
300	  This driver supports MediaTek MT7622 basic clocks and clocks
301	  required for various periperals found on MediaTek.
302
303config COMMON_CLK_MT7622_ETHSYS
304	bool "Clock driver for MediaTek MT7622 ETHSYS"
305	depends on COMMON_CLK_MT7622
306	help
307	  This driver add support for clocks for Ethernet and SGMII
308	  required on MediaTek MT7622 SoC.
309
310config COMMON_CLK_MT7622_HIFSYS
311	bool "Clock driver for MediaTek MT7622 HIFSYS"
312	depends on COMMON_CLK_MT7622
313	help
314	  This driver supports MediaTek MT7622 HIFSYS clocks providing
315	  to PCI-E and USB.
316
317config COMMON_CLK_MT7622_AUDSYS
318	bool "Clock driver for MediaTek MT7622 AUDSYS"
319	depends on COMMON_CLK_MT7622
320	help
321	  This driver supports MediaTek MT7622 AUDSYS clocks providing
322	  to audio consumers such as I2S and TDM.
323
324config 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
329	help
330	  This driver supports MediaTek MT7629 basic clocks and clocks
331	  required for various periperals found on MediaTek.
332
333config COMMON_CLK_MT7629_ETHSYS
334	bool "Clock driver for MediaTek MT7629 ETHSYS"
335	depends on COMMON_CLK_MT7629
336	help
337	  This driver add support for clocks for Ethernet and SGMII
338	  required on MediaTek MT7629 SoC.
339
340config COMMON_CLK_MT7629_HIFSYS
341	bool "Clock driver for MediaTek MT7629 HIFSYS"
342	depends on COMMON_CLK_MT7629
343	help
344	  This driver supports MediaTek MT7629 HIFSYS clocks providing
345	  to PCI-E and USB.
346
347config 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
352	help
353	  This driver supports MediaTek MT8135 clocks.
354
355config 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
360	help
361	  This driver supports MediaTek MT8167 basic clocks.
362
363config COMMON_CLK_MT8167_AUDSYS
364	bool "Clock driver for MediaTek MT8167 audsys"
365	depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
366	select COMMON_CLK_MEDIATEK
367	default ARCH_MEDIATEK
368	help
369	  This driver supports MediaTek MT8167 audsys clocks.
370
371config COMMON_CLK_MT8167_IMGSYS
372	bool "Clock driver for MediaTek MT8167 imgsys"
373	depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
374	select COMMON_CLK_MEDIATEK
375	default ARCH_MEDIATEK
376	help
377	  This driver supports MediaTek MT8167 imgsys clocks.
378
379config COMMON_CLK_MT8167_MFGCFG
380	bool "Clock driver for MediaTek MT8167 mfgcfg"
381	depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
382	select COMMON_CLK_MEDIATEK
383	default ARCH_MEDIATEK
384	help
385	  This driver supports MediaTek MT8167 mfgcfg clocks.
386
387config COMMON_CLK_MT8167_MMSYS
388	bool "Clock driver for MediaTek MT8167 mmsys"
389	depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
390	select COMMON_CLK_MEDIATEK
391	default ARCH_MEDIATEK
392	help
393	  This driver supports MediaTek MT8167 mmsys clocks.
394
395config COMMON_CLK_MT8167_VDECSYS
396	bool "Clock driver for MediaTek MT8167 vdecsys"
397	depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
398	select COMMON_CLK_MEDIATEK
399	default ARCH_MEDIATEK
400	help
401	  This driver supports MediaTek MT8167 vdecsys clocks.
402
403config COMMON_CLK_MT8173
404	bool "Clock driver for MediaTek MT8173"
405	depends on ARCH_MEDIATEK || COMPILE_TEST
406	select COMMON_CLK_MEDIATEK
407	default ARCH_MEDIATEK
408	help
409	  This driver supports MediaTek MT8173 clocks.
410
411config COMMON_CLK_MT8173_MMSYS
412	bool "Clock driver for MediaTek MT8173 mmsys"
413	depends on COMMON_CLK_MT8173
414	default COMMON_CLK_MT8173
415	help
416	  This driver supports MediaTek MT8173 mmsys clocks.
417
418config COMMON_CLK_MT8183
419	bool "Clock driver for MediaTek MT8183"
420	depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
421	select COMMON_CLK_MEDIATEK
422	default ARCH_MEDIATEK && ARM64
423	help
424	  This driver supports MediaTek MT8183 basic clocks.
425
426config COMMON_CLK_MT8183_AUDIOSYS
427	bool "Clock driver for MediaTek MT8183 audiosys"
428	depends on COMMON_CLK_MT8183
429	help
430	  This driver supports MediaTek MT8183 audiosys clocks.
431
432config COMMON_CLK_MT8183_CAMSYS
433	bool "Clock driver for MediaTek MT8183 camsys"
434	depends on COMMON_CLK_MT8183
435	help
436	  This driver supports MediaTek MT8183 camsys clocks.
437
438config COMMON_CLK_MT8183_IMGSYS
439	bool "Clock driver for MediaTek MT8183 imgsys"
440	depends on COMMON_CLK_MT8183
441	help
442	  This driver supports MediaTek MT8183 imgsys clocks.
443
444config COMMON_CLK_MT8183_IPU_CORE0
445	bool "Clock driver for MediaTek MT8183 ipu_core0"
446	depends on COMMON_CLK_MT8183
447	help
448	  This driver supports MediaTek MT8183 ipu_core0 clocks.
449
450config COMMON_CLK_MT8183_IPU_CORE1
451	bool "Clock driver for MediaTek MT8183 ipu_core1"
452	depends on COMMON_CLK_MT8183
453	help
454	  This driver supports MediaTek MT8183 ipu_core1 clocks.
455
456config COMMON_CLK_MT8183_IPU_ADL
457	bool "Clock driver for MediaTek MT8183 ipu_adl"
458	depends on COMMON_CLK_MT8183
459	help
460	  This driver supports MediaTek MT8183 ipu_adl clocks.
461
462config COMMON_CLK_MT8183_IPU_CONN
463	bool "Clock driver for MediaTek MT8183 ipu_conn"
464	depends on COMMON_CLK_MT8183
465	help
466	  This driver supports MediaTek MT8183 ipu_conn clocks.
467
468config COMMON_CLK_MT8183_MFGCFG
469	bool "Clock driver for MediaTek MT8183 mfgcfg"
470	depends on COMMON_CLK_MT8183
471	help
472	  This driver supports MediaTek MT8183 mfgcfg clocks.
473
474config COMMON_CLK_MT8183_MMSYS
475	bool "Clock driver for MediaTek MT8183 mmsys"
476	depends on COMMON_CLK_MT8183
477	help
478	  This driver supports MediaTek MT8183 mmsys clocks.
479
480config COMMON_CLK_MT8183_VDECSYS
481	bool "Clock driver for MediaTek MT8183 vdecsys"
482	depends on COMMON_CLK_MT8183
483	help
484	  This driver supports MediaTek MT8183 vdecsys clocks.
485
486config COMMON_CLK_MT8183_VENCSYS
487	bool "Clock driver for MediaTek MT8183 vencsys"
488	depends on COMMON_CLK_MT8183
489	help
490	  This driver supports MediaTek MT8183 vencsys clocks.
491
492config COMMON_CLK_MT8516
493	bool "Clock driver for MediaTek MT8516"
494	depends on ARCH_MEDIATEK || COMPILE_TEST
495	select COMMON_CLK_MEDIATEK
496	default ARCH_MEDIATEK
497	help
498	  This driver supports MediaTek MT8516 clocks.
499
500config COMMON_CLK_MT8516_AUDSYS
501	bool "Clock driver for MediaTek MT8516 audsys"
502	depends on COMMON_CLK_MT8516
503	help
504	  This driver supports MediaTek MT8516 audsys clocks.
505
506endmenu
507