1 # SPDX-License-Identifier: GPL-2.0-only
4 select KRAIT_L2_ACCESSORS
8 select PM_GENERIC_DOMAINS if PM
13 menuconfig COMMON_CLK_QCOM
14 tristate "Support for Qualcomm's clock controllers"
16 depends on ARCH_QCOM || COMPILE_TEST
19 select RESET_CONTROLLER
24 tristate "MSM8916 A53 PLL"
26 Support for the A53 PLL on MSM8916 devices. It provides
27 the CPU with frequencies above 1GHz.
28 Say Y if you want to support higher CPU frequencies on MSM8916
32 tristate "SDX55 A7 PLL"
34 Support for the A7 PLL on SDX55 devices. It provides the CPU with
35 frequencies above 1GHz.
36 Say Y if you want to support higher CPU frequencies on SDX55
39 config QCOM_CLK_APCS_MSM8916
40 tristate "MSM8916 APCS Clock Controller"
41 depends on QCOM_APCS_IPC || COMPILE_TEST
43 Support for the APCS Clock Controller on msm8916 devices. The
44 APCS is managing the mux and divider which feeds the CPUs.
45 Say Y if you want to support CPU frequency scaling on devices
48 config QCOM_CLK_APCC_MSM8996
49 tristate "MSM8996 CPU Clock Controller"
50 select QCOM_KRYO_L2_ACCESSORS
53 Support for the CPU clock controller on msm8996 devices.
54 Say Y if you want to support CPU clock scaling using CPUfreq
55 drivers for dynamic power management.
57 config QCOM_CLK_APCS_SDX55
58 tristate "SDX55 APCS Clock Controller"
59 depends on QCOM_APCS_IPC || COMPILE_TEST
61 Support for the APCS Clock Controller on SDX55 platform. The
62 APCS is managing the mux and divider which feeds the CPUs.
63 Say Y if you want to support CPU frequency scaling on devices
67 tristate "RPM based Clock Controller"
68 depends on MFD_QCOM_RPM
71 The RPM (Resource Power Manager) is a dedicated hardware engine for
72 managing the shared SoC resources in order to keep the lowest power
73 profile. It communicates with other hardware subsystems via shared
74 memory and accepts clock requests, aggregates the requests and turns
75 the clocks on/off or scales them on demand.
76 Say Y if you want to support the clocks exposed by the RPM on
77 platforms such as apq8064, msm8660, msm8960 etc.
79 config QCOM_CLK_SMD_RPM
80 tristate "RPM over SMD based Clock Controller"
81 depends on QCOM_SMD_RPM
84 The RPM (Resource Power Manager) is a dedicated hardware engine for
85 managing the shared SoC resources in order to keep the lowest power
86 profile. It communicates with other hardware subsystems via shared
87 memory and accepts clock requests, aggregates the requests and turns
88 the clocks on/off or scales them on demand.
89 Say Y if you want to support the clocks exposed by the RPM on
90 platforms such as apq8016, apq8084, msm8974 etc.
93 tristate "RPMh Clock Driver"
96 RPMh manages shared resources on some Qualcomm Technologies, Inc.
97 SoCs. It accepts requests from other hardware subsystems via RSC.
98 Say Y if you want to support the clocks exposed by RPMh on
99 platforms such as SDM845.
102 tristate "APQ8084 Global Clock Controller"
105 Support for the global clock controller on apq8084 devices.
106 Say Y if you want to use peripheral devices such as UART, SPI,
107 i2c, USB, SD/eMMC, SATA, PCIe, etc.
110 tristate "APQ8084 Multimedia Clock Controller"
114 Support for the multimedia clock controller on apq8084 devices.
115 Say Y if you want to support multimedia devices such as display,
116 graphics, video encode/decode, camera, etc.
119 tristate "IPQ APSS PLL"
121 Support for APSS PLL on ipq devices. The APSS PLL is the main
122 clock that feeds the CPUs on ipq based devices.
123 Say Y if you want to support CPU frequency scaling on ipq based
127 tristate "IPQ APSS Clock Controller"
129 depends on QCOM_APCS_IPC || COMPILE_TEST
131 Support for APSS clock controller on IPQ platforms. The
132 APSS clock controller manages the Mux and enable block that feeds the
134 Say Y if you want to support CPU frequency scaling on
138 tristate "IPQ4019 Global Clock Controller"
140 Support for the global clock controller on ipq4019 devices.
141 Say Y if you want to use peripheral devices such as UART, SPI,
142 i2c, USB, SD/eMMC, etc.
145 tristate "IPQ6018 Global Clock Controller"
147 Support for global clock controller on ipq6018 devices.
148 Say Y if you want to use peripheral devices such as UART, SPI,
149 i2c, USB, SD/eMMC, etc. Select this for the root clock
153 tristate "IPQ806x Global Clock Controller"
155 Support for the global clock controller on ipq806x devices.
156 Say Y if you want to use peripheral devices such as UART, SPI,
157 i2c, USB, SD/eMMC, etc.
160 tristate "IPQ806x LPASS Clock Controller"
163 Support for the LPASS clock controller on ipq806x devices.
164 Say Y if you want to use audio devices such as i2s, pcm,
168 tristate "IPQ8074 Global Clock Controller"
170 Support for global clock controller on ipq8074 devices.
171 Say Y if you want to use peripheral devices such as UART, SPI,
172 i2c, USB, SD/eMMC, etc. Select this for the root clock
176 tristate "MSM8660 Global Clock Controller"
178 Support for the global clock controller on msm8660 devices.
179 Say Y if you want to use peripheral devices such as UART, SPI,
180 i2c, USB, SD/eMMC, etc.
183 tristate "MSM8916 Global Clock Controller"
186 Support for the global clock controller on msm8916 devices.
187 Say Y if you want to use devices such as UART, SPI i2c, USB,
188 SD/eMMC, display, graphics, camera etc.
191 tristate "MSM8939 Global Clock Controller"
194 Support for the global clock controller on msm8939 devices.
195 Say Y if you want to use devices such as UART, SPI i2c, USB,
196 SD/eMMC, display, graphics, camera etc.
199 tristate "APQ8064/MSM8960 Global Clock Controller"
201 Support for the global clock controller on apq8064/msm8960 devices.
202 Say Y if you want to use peripheral devices such as UART, SPI,
203 i2c, USB, SD/eMMC, SATA, PCIe, etc.
206 tristate "APQ8064/MSM8960 LPASS Clock Controller"
209 Support for the LPASS clock controller on apq8064/msm8960 devices.
210 Say Y if you want to use audio devices such as i2s, pcm,
214 tristate "MDM9607 Global Clock Controller"
216 Support for the global clock controller on mdm9607 devices.
217 Say Y if you want to use peripheral devices such as UART, SPI,
218 I2C, USB, SD/eMMC, etc.
221 tristate "MDM9615 Global Clock Controller"
223 Support for the global clock controller on mdm9615 devices.
224 Say Y if you want to use peripheral devices such as UART, SPI,
225 i2c, USB, SD/eMMC, etc.
228 tristate "MDM9615 LPASS Clock Controller"
231 Support for the LPASS clock controller on mdm9615 devices.
232 Say Y if you want to use audio devices such as i2s, pcm,
236 tristate "MSM8960 Multimedia Clock Controller"
239 Support for the multimedia clock controller on msm8960 devices.
240 Say Y if you want to support multimedia devices such as display,
241 graphics, video encode/decode, camera, etc.
244 tristate "MSM8953 Global Clock Controller"
247 Support for the global clock controller on msm8953 devices.
248 Say Y if you want to use devices such as UART, SPI i2c, USB,
249 SD/eMMC, display, graphics, camera etc.
252 tristate "MSM8974 Global Clock Controller"
255 Support for the global clock controller on msm8974 devices.
256 Say Y if you want to use peripheral devices such as UART, SPI,
257 i2c, USB, SD/eMMC, SATA, PCIe, etc.
260 tristate "MSM8974 Multimedia Clock Controller"
264 Support for the multimedia clock controller on msm8974 devices.
265 Say Y if you want to support multimedia devices such as display,
266 graphics, video encode/decode, camera, etc.
269 tristate "MSM8994 Multimedia Clock Controller"
273 Support for the multimedia clock controller on msm8994 devices.
274 Say Y if you want to support multimedia devices such as display,
275 graphics, video encode/decode, camera, etc.
278 tristate "MSM8994 Global Clock Controller"
280 Support for the global clock controller on msm8994 devices.
281 Say Y if you want to use peripheral devices such as UART, SPI,
282 i2c, USB, UFS, SD/eMMC, PCIe, etc.
285 tristate "MSM8996 Global Clock Controller"
288 Support for the global clock controller on msm8996 devices.
289 Say Y if you want to use peripheral devices such as UART, SPI,
290 i2c, USB, UFS, SD/eMMC, PCIe, etc.
293 tristate "MSM8996 Multimedia Clock Controller"
297 Support for the multimedia clock controller on msm8996 devices.
298 Say Y if you want to support multimedia devices such as display,
299 graphics, video encode/decode, camera, etc.
302 tristate "MSM8998 Global Clock Controller"
305 Support for the global clock controller on msm8998 devices.
306 Say Y if you want to use peripheral devices such as UART, SPI,
307 i2c, USB, UFS, SD/eMMC, PCIe, etc.
309 config MSM_GPUCC_8998
310 tristate "MSM8998 Graphics Clock Controller"
314 Support for the graphics clock controller on MSM8998 devices.
315 Say Y if you want to support graphics controller devices and
316 functionality such as 3D graphics.
319 tristate "MSM8998 Multimedia Clock Controller"
323 Support for the multimedia clock controller on msm8998 devices.
324 Say Y if you want to support multimedia devices such as display,
325 graphics, video encode/decode, camera, etc.
328 tristate "QCS404 Global Clock Controller"
330 Support for the global clock controller on QCS404 devices.
331 Say Y if you want to use multimedia devices or peripheral
332 devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
335 tristate "SC7180 Camera Clock Controller"
338 Support for the camera clock controller on Qualcomm Technologies, Inc
340 Say Y if you want to support camera devices and functionality such as
343 config SC_DISPCC_7180
344 tristate "SC7180 Display Clock Controller"
347 Support for the display clock controller on Qualcomm Technologies, Inc
349 Say Y if you want to support display devices and functionality such as
352 config SC_DISPCC_7280
353 tristate "SC7280 Display Clock Controller"
356 Support for the display clock controller on Qualcomm Technologies, Inc.
358 Say Y if you want to support display devices and functionality such as
362 tristate "SC7180 Global Clock Controller"
364 depends on COMMON_CLK_QCOM
366 Support for the global clock controller on SC7180 devices.
367 Say Y if you want to use peripheral devices such as UART, SPI,
368 I2C, USB, UFS, SDCC, etc.
371 tristate "SC7280 Global Clock Controller"
373 depends on COMMON_CLK_QCOM
375 Support for the global clock controller on SC7280 devices.
376 Say Y if you want to use peripheral devices such as UART, SPI,
377 I2C, USB, UFS, SDCC, PCIe etc.
380 tristate "SC8180X Global Clock Controller"
382 depends on COMMON_CLK_QCOM
384 Support for the global clock controller on SC8180X devices.
385 Say Y if you want to use peripheral devices such as UART, SPI,
386 I2C, USB, UFS, SDCC, etc.
388 config SC_LPASS_CORECC_7180
389 tristate "SC7180 LPASS Core Clock Controller"
392 Support for the LPASS(Low Power Audio Subsystem) core clock controller
394 Say Y if you want to use LPASS clocks and power domains of the LPASS
395 core clock controller.
398 tristate "SC7180 Graphics Clock Controller"
401 Support for the graphics clock controller on SC7180 devices.
402 Say Y if you want to support graphics controller devices and
403 functionality such as 3D graphics.
406 tristate "SC7280 Graphics Clock Controller"
409 Support for the graphics clock controller on SC7280 devices.
410 Say Y if you want to support graphics controller devices and
411 functionality such as 3D graphics.
414 tristate "SC7180 Modem Clock Controller"
417 Support for the Modem Subsystem clock controller on Qualcomm
418 Technologies, Inc on SC7180 devices.
419 Say Y if you want to use the Modem branch clocks of the Modem
420 subsystem clock controller to reset the MSS subsystem.
422 config SC_VIDEOCC_7180
423 tristate "SC7180 Video Clock Controller"
426 Support for the video clock controller on SC7180 devices.
427 Say Y if you want to support video devices and functionality such as
428 video encode and decode.
430 config SC_VIDEOCC_7280
431 tristate "SC7280 Video Clock Controller"
434 Support for the video clock controller on SC7280 devices.
435 Say Y if you want to support video devices and functionality such as
436 video encode and decode.
439 tristate "SDM845 Camera Clock Controller"
442 Support for the camera clock controller on SDM845 devices.
443 Say Y if you want to support camera devices and camera functionality.
446 tristate "SDM660 Global Clock Controller"
449 Support for the global clock controller on SDM660 devices.
450 Say Y if you want to use peripheral devices such as UART, SPI,
451 i2C, USB, UFS, SDDC, PCIe, etc.
454 tristate "SDM660 Multimedia Clock Controller"
458 Support for the multimedia clock controller on SDM660 devices.
459 Say Y if you want to support multimedia devices such as display,
460 graphics, video encode/decode, camera, etc.
463 tristate "SDM660 Graphics Clock Controller"
467 Support for the graphics clock controller on SDM630/636/660 devices.
468 Say Y if you want to support graphics controller devices and
469 functionality such as 3D graphics
471 config QCS_TURING_404
472 tristate "QCS404 Turing Clock Controller"
474 Support for the Turing Clock Controller on QCS404, provides clocks
475 and resets for the Turing subsystem.
477 config QCS_Q6SSTOP_404
478 tristate "QCS404 Q6SSTOP Clock Controller"
481 Support for the Q6SSTOP clock controller on QCS404 devices.
482 Say Y if you want to use the Q6SSTOP branch clocks of the WCSS clock
483 controller to reset the Q6SSTOP subsystem.
486 tristate "SDM845 Global Clock Controller"
489 Support for the global clock controller on SDM845 devices.
490 Say Y if you want to use peripheral devices such as UART, SPI,
491 i2C, USB, UFS, SDDC, PCIe, etc.
494 tristate "SDM845 Graphics Clock Controller"
497 Support for the graphics clock controller on SDM845 devices.
498 Say Y if you want to support graphics controller devices and
499 functionality such as 3D graphics.
501 config SDM_VIDEOCC_845
502 tristate "SDM845 Video Clock Controller"
506 Support for the video clock controller on SDM845 devices.
507 Say Y if you want to support video devices and functionality such as
508 video encode and decode.
510 config SDM_DISPCC_845
511 tristate "SDM845 Display Clock Controller"
514 Support for the display clock controller on Qualcomm Technologies, Inc
516 Say Y if you want to support display devices and functionality such as
519 config SDM_LPASSCC_845
520 tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller"
523 Support for the LPASS clock controller on SDM845 devices.
524 Say Y if you want to use the LPASS branch clocks of the LPASS clock
525 controller to reset the LPASS subsystem.
528 tristate "SDX55 Global Clock Controller"
531 Support for the global clock controller on SDX55 devices.
532 Say Y if you want to use peripheral devices such as UART,
533 SPI, I2C, USB, SD/UFS, PCIe etc.
536 tristate "SM8250 Camera Clock Controller"
539 Support for the camera clock controller on SM8250 devices.
540 Say Y if you want to support camera devices and camera functionality.
542 config SM_DISPCC_8250
543 tristate "SM8150 and SM8250 Display Clock Controller"
544 depends on SM_GCC_8150 || SM_GCC_8250
546 Support for the display clock controller on Qualcomm Technologies, Inc
547 SM8150 and SM8250 devices.
548 Say Y if you want to support display devices and functionality such as
552 tristate "SM6115 and SM4250 Global Clock Controller"
554 Support for the global clock controller on SM6115 and SM4250 devices.
555 Say Y if you want to use peripheral devices such as UART, SPI,
556 i2C, USB, UFS, SDDC, PCIe, etc.
559 tristate "SM6125 Global Clock Controller"
561 Support for the global clock controller on SM6125 devices.
562 Say Y if you want to use peripheral devices such as UART,
563 SPI, I2C, USB, SD/UFS, PCIe etc.
566 tristate "SM6350 Global Clock Controller"
568 Support for the global clock controller on SM6350 devices.
569 Say Y if you want to use peripheral devices such as UART,
570 SPI, I2C, USB, SD/UFS, PCIe etc.
573 tristate "SM8150 Global Clock Controller"
575 Support for the global clock controller on SM8150 devices.
576 Say Y if you want to use peripheral devices such as UART,
577 SPI, I2C, USB, SD/UFS, PCIe etc.
580 tristate "SM8250 Global Clock Controller"
583 Support for the global clock controller on SM8250 devices.
584 Say Y if you want to use peripheral devices such as UART,
585 SPI, I2C, USB, SD/UFS, PCIe etc.
588 tristate "SM8350 Global Clock Controller"
591 Support for the global clock controller on SM8350 devices.
592 Say Y if you want to use peripheral devices such as UART,
593 SPI, I2C, USB, SD/UFS, PCIe etc.
596 tristate "SM8150 Graphics Clock Controller"
599 Support for the graphics clock controller on SM8150 devices.
600 Say Y if you want to support graphics controller devices and
601 functionality such as 3D graphics.
604 tristate "SM8250 Graphics Clock Controller"
607 Support for the graphics clock controller on SM8250 devices.
608 Say Y if you want to support graphics controller devices and
609 functionality such as 3D graphics.
611 config SM_VIDEOCC_8150
612 tristate "SM8150 Video Clock Controller"
616 Support for the video clock controller on SM8150 devices.
617 Say Y if you want to support video devices and functionality such as
618 video encode and decode.
620 config SM_VIDEOCC_8250
621 tristate "SM8250 Video Clock Controller"
625 Support for the video clock controller on SM8250 devices.
626 Say Y if you want to support video devices and functionality such as
627 video encode and decode.
629 config SPMI_PMIC_CLKDIV
630 tristate "SPMI PMIC clkdiv Support"
631 depends on SPMI || COMPILE_TEST
633 This driver supports the clkdiv functionality on the Qualcomm
634 Technologies, Inc. SPMI PMIC. It configures the frequency of
635 clkdiv outputs of the PMIC. These clocks are typically wired
636 through alternate functions on GPIO pins.
639 tristate "High-Frequency PLL (HFPLL) Clock Controller"
641 Support for the high-frequency PLLs present on Qualcomm devices.
642 Say Y if you want to support CPU frequency scaling on devices
643 such as MSM8974, APQ8084, etc.
646 tristate "KPSS Clock Controller"
648 Support for the Krait ACC and GCC clock controllers. Say Y
649 if you want to support CPU frequency scaling on devices such
650 as MSM8960, APQ8064, etc.
653 tristate "Krait Clock Controller"
657 Support for the Krait CPU clocks on Qualcomm devices.
658 Say Y if you want to support CPU frequency scaling.
660 config CLK_GFM_LPASS_SM8250
661 tristate "SM8250 GFM LPASS Clocks"
663 Support for the Glitch Free Mux (GFM) Low power audio
664 subsystem (LPASS) clocks found on SM8250 SoCs.