blob: ce3d9b300bab57d4855601972a696cd8c17e4fab [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
James Liao2886c842016-08-19 13:34:49 +08002#
Sean Wang16a1ac12017-12-20 14:42:58 +08003# MediaTek Clock Drivers
James Liao2886c842016-08-19 13:34:49 +08004#
Sean Wang16a1ac12017-12-20 14:42:58 +08005menu "Clock driver for MediaTek SoC"
6 depends on ARCH_MEDIATEK || COMPILE_TEST
7
James Liao2886c842016-08-19 13:34:49 +08008config COMMON_CLK_MEDIATEK
9 bool
Sean Wangbc273602018-01-05 16:14:06 +080010 select RESET_CONTROLLER
James Liao2886c842016-08-19 13:34:49 +080011 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080012 MediaTek SoCs' clock support.
James Liao2886c842016-08-19 13:34:49 +080013
Shunli Wange9862112016-11-04 15:43:05 +080014config COMMON_CLK_MT2701
Sean Wang16a1ac12017-12-20 14:42:58 +080015 bool "Clock driver for MediaTek MT2701"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010016 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
Shunli Wange9862112016-11-04 15:43:05 +080017 select COMMON_CLK_MEDIATEK
Jean Delvare6e9c0d52017-01-24 13:07:04 +010018 default ARCH_MEDIATEK && ARM
Shunli Wange9862112016-11-04 15:43:05 +080019 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080020 This driver supports MediaTek MT2701 basic clocks.
Shunli Wange9862112016-11-04 15:43:05 +080021
22config COMMON_CLK_MT2701_MMSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080023 bool "Clock driver for MediaTek MT2701 mmsys"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010024 depends on COMMON_CLK_MT2701
Shunli Wange9862112016-11-04 15:43:05 +080025 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080026 This driver supports MediaTek MT2701 mmsys clocks.
Shunli Wange9862112016-11-04 15:43:05 +080027
28config COMMON_CLK_MT2701_IMGSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080029 bool "Clock driver for MediaTek MT2701 imgsys"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010030 depends on COMMON_CLK_MT2701
Shunli Wange9862112016-11-04 15:43:05 +080031 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080032 This driver supports MediaTek MT2701 imgsys clocks.
Shunli Wange9862112016-11-04 15:43:05 +080033
34config COMMON_CLK_MT2701_VDECSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080035 bool "Clock driver for MediaTek MT2701 vdecsys"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010036 depends on COMMON_CLK_MT2701
Shunli Wange9862112016-11-04 15:43:05 +080037 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080038 This driver supports MediaTek MT2701 vdecsys clocks.
Shunli Wange9862112016-11-04 15:43:05 +080039
40config COMMON_CLK_MT2701_HIFSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080041 bool "Clock driver for MediaTek MT2701 hifsys"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010042 depends on COMMON_CLK_MT2701
Shunli Wange9862112016-11-04 15:43:05 +080043 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080044 This driver supports MediaTek MT2701 hifsys clocks.
Shunli Wange9862112016-11-04 15:43:05 +080045
46config COMMON_CLK_MT2701_ETHSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080047 bool "Clock driver for MediaTek MT2701 ethsys"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010048 depends on COMMON_CLK_MT2701
Shunli Wange9862112016-11-04 15:43:05 +080049 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080050 This driver supports MediaTek MT2701 ethsys clocks.
Shunli Wange9862112016-11-04 15:43:05 +080051
52config COMMON_CLK_MT2701_BDPSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080053 bool "Clock driver for MediaTek MT2701 bdpsys"
Jean Delvare6e9c0d52017-01-24 13:07:04 +010054 depends on COMMON_CLK_MT2701
Shunli Wange9862112016-11-04 15:43:05 +080055 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080056 This driver supports MediaTek MT2701 bdpsys clocks.
Shunli Wange9862112016-11-04 15:43:05 +080057
Ryder Leeb572f632018-03-20 11:16:52 +080058config 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
Sean Wanga11ca682018-04-27 16:14:46 +080064config 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
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080070config COMMON_CLK_MT2712
Sean Wang16a1ac12017-12-20 14:42:58 +080071 bool "Clock driver for MediaTek MT2712"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080072 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
73 select COMMON_CLK_MEDIATEK
74 default ARCH_MEDIATEK && ARM64
75 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080076 This driver supports MediaTek MT2712 basic clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080077
78config COMMON_CLK_MT2712_BDPSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080079 bool "Clock driver for MediaTek MT2712 bdpsys"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080080 depends on COMMON_CLK_MT2712
81 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080082 This driver supports MediaTek MT2712 bdpsys clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080083
84config COMMON_CLK_MT2712_IMGSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080085 bool "Clock driver for MediaTek MT2712 imgsys"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080086 depends on COMMON_CLK_MT2712
87 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080088 This driver supports MediaTek MT2712 imgsys clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080089
90config COMMON_CLK_MT2712_JPGDECSYS
Sean Wang16a1ac12017-12-20 14:42:58 +080091 bool "Clock driver for MediaTek MT2712 jpgdecsys"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080092 depends on COMMON_CLK_MT2712
93 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +080094 This driver supports MediaTek MT2712 jpgdecsys clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080095
96config COMMON_CLK_MT2712_MFGCFG
Sean Wang16a1ac12017-12-20 14:42:58 +080097 bool "Clock driver for MediaTek MT2712 mfgcfg"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +080098 depends on COMMON_CLK_MT2712
99 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800100 This driver supports MediaTek MT2712 mfgcfg clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800101
102config COMMON_CLK_MT2712_MMSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800103 bool "Clock driver for MediaTek MT2712 mmsys"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800104 depends on COMMON_CLK_MT2712
105 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800106 This driver supports MediaTek MT2712 mmsys clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800107
108config COMMON_CLK_MT2712_VDECSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800109 bool "Clock driver for MediaTek MT2712 vdecsys"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800110 depends on COMMON_CLK_MT2712
111 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800112 This driver supports MediaTek MT2712 vdecsys clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800113
114config COMMON_CLK_MT2712_VENCSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800115 bool "Clock driver for MediaTek MT2712 vencsys"
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800116 depends on COMMON_CLK_MT2712
117 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800118 This driver supports MediaTek MT2712 vencsys clocks.
weiyi.lu@mediatek.come2f744a2017-10-23 12:10:34 +0800119
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800120config COMMON_CLK_MT6797
Sean Wang16a1ac12017-12-20 14:42:58 +0800121 bool "Clock driver for MediaTek MT6797"
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800122 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
123 select COMMON_CLK_MEDIATEK
124 default ARCH_MEDIATEK && ARM64
125 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800126 This driver supports MediaTek MT6797 basic clocks.
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800127
128config COMMON_CLK_MT6797_MMSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800129 bool "Clock driver for MediaTek MT6797 mmsys"
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800130 depends on COMMON_CLK_MT6797
131 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800132 This driver supports MediaTek MT6797 mmsys clocks.
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800133
134config COMMON_CLK_MT6797_IMGSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800135 bool "Clock driver for MediaTek MT6797 imgsys"
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800136 depends on COMMON_CLK_MT6797
137 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800138 This driver supports MediaTek MT6797 imgsys clocks.
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800139
140config COMMON_CLK_MT6797_VDECSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800141 bool "Clock driver for MediaTek MT6797 vdecsys"
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800142 depends on COMMON_CLK_MT6797
143 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800144 This driver supports MediaTek MT6797 vdecsys clocks.
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800145
146config COMMON_CLK_MT6797_VENCSYS
Sean Wang16a1ac12017-12-20 14:42:58 +0800147 bool "Clock driver for MediaTek MT6797 vencsys"
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800148 depends on COMMON_CLK_MT6797
149 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800150 This driver supports MediaTek MT6797 vencsys clocks.
Kevin-CW Chen96596aa2017-04-08 09:20:30 +0800151
Sean Wang2fc0a502017-10-05 11:50:24 +0800152config COMMON_CLK_MT7622
153 bool "Clock driver for MediaTek MT7622"
154 depends on ARCH_MEDIATEK || COMPILE_TEST
155 select COMMON_CLK_MEDIATEK
156 default ARCH_MEDIATEK
157 ---help---
158 This driver supports MediaTek MT7622 basic clocks and clocks
159 required for various periperals found on MediaTek.
160
161config COMMON_CLK_MT7622_ETHSYS
162 bool "Clock driver for MediaTek MT7622 ETHSYS"
163 depends on COMMON_CLK_MT7622
164 ---help---
165 This driver add support for clocks for Ethernet and SGMII
166 required on MediaTek MT7622 SoC.
167
168config COMMON_CLK_MT7622_HIFSYS
169 bool "Clock driver for MediaTek MT7622 HIFSYS"
170 depends on COMMON_CLK_MT7622
171 ---help---
172 This driver supports MediaTek MT7622 HIFSYS clocks providing
173 to PCI-E and USB.
174
175config COMMON_CLK_MT7622_AUDSYS
176 bool "Clock driver for MediaTek MT7622 AUDSYS"
177 depends on COMMON_CLK_MT7622
178 ---help---
179 This driver supports MediaTek MT7622 AUDSYS clocks providing
180 to audio consumers such as I2S and TDM.
181
Ryder Lee3b5e7482018-11-05 16:43:55 +0800182config COMMON_CLK_MT7629
183 bool "Clock driver for MediaTek MT7629"
184 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
185 select COMMON_CLK_MEDIATEK
186 default ARCH_MEDIATEK && ARM
187 ---help---
188 This driver supports MediaTek MT7629 basic clocks and clocks
189 required for various periperals found on MediaTek.
190
191config COMMON_CLK_MT7629_ETHSYS
192 bool "Clock driver for MediaTek MT7629 ETHSYS"
193 depends on COMMON_CLK_MT7629
194 ---help---
195 This driver add support for clocks for Ethernet and SGMII
196 required on MediaTek MT7629 SoC.
197
198config COMMON_CLK_MT7629_HIFSYS
199 bool "Clock driver for MediaTek MT7629 HIFSYS"
200 depends on COMMON_CLK_MT7629
201 ---help---
202 This driver supports MediaTek MT7629 HIFSYS clocks providing
203 to PCI-E and USB.
204
James Liao2886c842016-08-19 13:34:49 +0800205config COMMON_CLK_MT8135
Sean Wang16a1ac12017-12-20 14:42:58 +0800206 bool "Clock driver for MediaTek MT8135"
Jean Delvare3d21a4b2017-01-24 13:09:12 +0100207 depends on (ARCH_MEDIATEK && ARM) || COMPILE_TEST
James Liao2886c842016-08-19 13:34:49 +0800208 select COMMON_CLK_MEDIATEK
Jean Delvare3d21a4b2017-01-24 13:09:12 +0100209 default ARCH_MEDIATEK && ARM
James Liao2886c842016-08-19 13:34:49 +0800210 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800211 This driver supports MediaTek MT8135 clocks.
James Liao2886c842016-08-19 13:34:49 +0800212
213config COMMON_CLK_MT8173
Sean Wang16a1ac12017-12-20 14:42:58 +0800214 bool "Clock driver for MediaTek MT8173"
Jean Delvare234d5112016-10-14 14:44:13 +0200215 depends on ARCH_MEDIATEK || COMPILE_TEST
James Liao2886c842016-08-19 13:34:49 +0800216 select COMMON_CLK_MEDIATEK
217 default ARCH_MEDIATEK
218 ---help---
Sean Wang16a1ac12017-12-20 14:42:58 +0800219 This driver supports MediaTek MT8173 clocks.
Weiyi Luacddfc22019-03-05 13:05:45 +0800220
221config COMMON_CLK_MT8183
222 bool "Clock driver for MediaTek MT8183"
223 depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
224 select COMMON_CLK_MEDIATEK
225 default ARCH_MEDIATEK && ARM64
226 help
227 This driver supports MediaTek MT8183 basic clocks.
228
229config COMMON_CLK_MT8183_AUDIOSYS
230 bool "Clock driver for MediaTek MT8183 audiosys"
231 depends on COMMON_CLK_MT8183
232 help
233 This driver supports MediaTek MT8183 audiosys clocks.
234
235config COMMON_CLK_MT8183_CAMSYS
236 bool "Clock driver for MediaTek MT8183 camsys"
237 depends on COMMON_CLK_MT8183
238 help
239 This driver supports MediaTek MT8183 camsys clocks.
240
241config COMMON_CLK_MT8183_IMGSYS
242 bool "Clock driver for MediaTek MT8183 imgsys"
243 depends on COMMON_CLK_MT8183
244 help
245 This driver supports MediaTek MT8183 imgsys clocks.
246
247config COMMON_CLK_MT8183_IPU_CORE0
248 bool "Clock driver for MediaTek MT8183 ipu_core0"
249 depends on COMMON_CLK_MT8183
250 help
251 This driver supports MediaTek MT8183 ipu_core0 clocks.
252
253config COMMON_CLK_MT8183_IPU_CORE1
254 bool "Clock driver for MediaTek MT8183 ipu_core1"
255 depends on COMMON_CLK_MT8183
256 help
257 This driver supports MediaTek MT8183 ipu_core1 clocks.
258
259config COMMON_CLK_MT8183_IPU_ADL
260 bool "Clock driver for MediaTek MT8183 ipu_adl"
261 depends on COMMON_CLK_MT8183
262 help
263 This driver supports MediaTek MT8183 ipu_adl clocks.
264
265config COMMON_CLK_MT8183_IPU_CONN
266 bool "Clock driver for MediaTek MT8183 ipu_conn"
267 depends on COMMON_CLK_MT8183
268 help
269 This driver supports MediaTek MT8183 ipu_conn clocks.
270
271config COMMON_CLK_MT8183_MFGCFG
272 bool "Clock driver for MediaTek MT8183 mfgcfg"
273 depends on COMMON_CLK_MT8183
274 help
275 This driver supports MediaTek MT8183 mfgcfg clocks.
276
277config COMMON_CLK_MT8183_MMSYS
278 bool "Clock driver for MediaTek MT8183 mmsys"
279 depends on COMMON_CLK_MT8183
280 help
281 This driver supports MediaTek MT8183 mmsys clocks.
282
283config COMMON_CLK_MT8183_VDECSYS
284 bool "Clock driver for MediaTek MT8183 vdecsys"
285 depends on COMMON_CLK_MT8183
286 help
287 This driver supports MediaTek MT8183 vdecsys clocks.
288
289config COMMON_CLK_MT8183_VENCSYS
290 bool "Clock driver for MediaTek MT8183 vencsys"
291 depends on COMMON_CLK_MT8183
292 help
293 This driver supports MediaTek MT8183 vencsys clocks.
294
Fabien Parentdb077fe2019-03-23 22:16:02 +0100295config COMMON_CLK_MT8516
296 bool "Clock driver for MediaTek MT8516"
297 depends on ARCH_MEDIATEK || COMPILE_TEST
298 select COMMON_CLK_MEDIATEK
299 default ARCH_MEDIATEK
300 help
301 This driver supports MediaTek MT8516 clocks.
302
Fabien Parent0fd49392019-05-02 14:18:43 +0200303config COMMON_CLK_MT8516_AUDSYS
304 bool "Clock driver for MediaTek MT8516 audsys"
305 depends on COMMON_CLK_MT8516
306 help
307 This driver supports MediaTek MT8516 audsys clocks.
308
Sean Wang16a1ac12017-12-20 14:42:58 +0800309endmenu