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 "A7 PLL driver for SDX55 and SDX65"
34 Support for the A7 PLL on SDX55 and SDX65 devices. It provides the CPU with
35 frequencies above 1GHz.
36 Say Y if you want to support higher CPU frequencies on SDX55 and SDX65
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 and SDX65 APCS Clock Controller"
59 depends on QCOM_APCS_IPC || COMPILE_TEST
61 Support for the APCS Clock Controller on SDX55, SDX65 platforms. 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"
171 Support for global clock controller on ipq8074 devices.
172 Say Y if you want to use peripheral devices such as UART, SPI,
173 i2c, USB, SD/eMMC, etc. Select this for the root clock
177 tristate "MSM8660 Global Clock Controller"
179 Support for the global clock controller on msm8660 devices.
180 Say Y if you want to use peripheral devices such as UART, SPI,
181 i2c, USB, SD/eMMC, etc.
184 tristate "MSM8909 Global Clock Controller"
187 Support for the global clock controller on msm8909 devices.
188 Say Y if you want to use devices such as UART, SPI, I2C, USB,
189 SD/eMMC, display, graphics, camera etc.
192 tristate "MSM8916 Global Clock Controller"
195 Support for the global clock controller on msm8916 devices.
196 Say Y if you want to use devices such as UART, SPI i2c, USB,
197 SD/eMMC, display, graphics, camera etc.
200 tristate "MSM8939 Global Clock Controller"
203 Support for the global clock controller on msm8939 devices.
204 Say Y if you want to use devices such as UART, SPI i2c, USB,
205 SD/eMMC, display, graphics, camera etc.
208 tristate "APQ8064/MSM8960 Global Clock Controller"
210 Support for the global clock controller on apq8064/msm8960 devices.
211 Say Y if you want to use peripheral devices such as UART, SPI,
212 i2c, USB, SD/eMMC, SATA, PCIe, etc.
215 tristate "APQ8064/MSM8960 LPASS Clock Controller"
218 Support for the LPASS clock controller on apq8064/msm8960 devices.
219 Say Y if you want to use audio devices such as i2s, pcm,
223 tristate "MDM9607 Global Clock Controller"
225 Support for the global clock controller on mdm9607 devices.
226 Say Y if you want to use peripheral devices such as UART, SPI,
227 I2C, USB, SD/eMMC, etc.
230 tristate "MDM9615 Global Clock Controller"
232 Support for the global clock controller on mdm9615 devices.
233 Say Y if you want to use peripheral devices such as UART, SPI,
234 i2c, USB, SD/eMMC, etc.
237 tristate "MDM9615 LPASS Clock Controller"
240 Support for the LPASS clock controller on mdm9615 devices.
241 Say Y if you want to use audio devices such as i2s, pcm,
245 tristate "MSM8960 Multimedia Clock Controller"
248 Support for the multimedia clock controller on msm8960 devices.
249 Say Y if you want to support multimedia devices such as display,
250 graphics, video encode/decode, camera, etc.
253 tristate "MSM8953 Global Clock Controller"
256 Support for the global clock controller on msm8953 devices.
257 Say Y if you want to use devices such as UART, SPI i2c, USB,
258 SD/eMMC, display, graphics, camera etc.
261 tristate "MSM8974 Global Clock Controller"
264 Support for the global clock controller on msm8974 devices.
265 Say Y if you want to use peripheral devices such as UART, SPI,
266 i2c, USB, SD/eMMC, SATA, PCIe, etc.
269 tristate "MSM8974 Multimedia Clock Controller"
273 Support for the multimedia clock controller on msm8974 devices.
274 Say Y if you want to support multimedia devices such as display,
275 graphics, video encode/decode, camera, etc.
278 tristate "MSM8956/76 Global Clock Controller"
281 Support for the global clock controller on msm8956/76 devices.
282 Say Y if you want to use peripheral devices such as UART, SPI,
283 i2c, USB, SD/eMMC, SATA, PCIe, etc.
286 tristate "MSM8994 Multimedia Clock Controller"
290 Support for the multimedia clock controller on msm8994 devices.
291 Say Y if you want to support multimedia devices such as display,
292 graphics, video encode/decode, camera, etc.
295 tristate "MSM8994 Global Clock Controller"
297 Support for the global clock controller on msm8994 devices.
298 Say Y if you want to use peripheral devices such as UART, SPI,
299 i2c, USB, UFS, SD/eMMC, PCIe, etc.
302 tristate "MSM8996 Global Clock Controller"
305 Support for the global clock controller on msm8996 devices.
306 Say Y if you want to use peripheral devices such as UART, SPI,
307 i2c, USB, UFS, SD/eMMC, PCIe, etc.
310 tristate "MSM8996 Multimedia Clock Controller"
314 Support for the multimedia clock controller on msm8996 devices.
315 Say Y if you want to support multimedia devices such as display,
316 graphics, video encode/decode, camera, etc.
319 tristate "MSM8998 Global Clock Controller"
322 Support for the global clock controller on msm8998 devices.
323 Say Y if you want to use peripheral devices such as UART, SPI,
324 i2c, USB, UFS, SD/eMMC, PCIe, etc.
326 config MSM_GPUCC_8998
327 tristate "MSM8998 Graphics Clock Controller"
331 Support for the graphics clock controller on MSM8998 devices.
332 Say Y if you want to support graphics controller devices and
333 functionality such as 3D graphics.
336 tristate "MSM8998 Multimedia Clock Controller"
340 Support for the multimedia clock controller on msm8998 devices.
341 Say Y if you want to support multimedia devices such as display,
342 graphics, video encode/decode, camera, etc.
345 tristate "QCM2290 Global Clock Controller"
348 Support for the global clock controller on QCM2290 devices.
349 Say Y if you want to use multimedia devices or peripheral
350 devices such as UART, SPI, I2C, USB, SD/eMMC etc.
352 config QCM_DISPCC_2290
353 tristate "QCM2290 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 "QCS404 Global Clock Controller"
364 Support for the global clock controller on QCS404 devices.
365 Say Y if you want to use multimedia devices or peripheral
366 devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
369 tristate "SC7180 Camera Clock Controller"
372 Support for the camera clock controller on Qualcomm Technologies, Inc
374 Say Y if you want to support camera devices and functionality such as
378 tristate "SC7280 Camera Clock Controller"
381 Support for the camera clock controller on Qualcomm Technologies, Inc
383 Say Y if you want to support camera devices and functionality such as
386 config SC_DISPCC_7180
387 tristate "SC7180 Display Clock Controller"
390 Support for the display clock controller on Qualcomm Technologies, Inc
392 Say Y if you want to support display devices and functionality such as
395 config SC_DISPCC_7280
396 tristate "SC7280 Display Clock Controller"
399 Support for the display clock controller on Qualcomm Technologies, Inc.
401 Say Y if you want to support display devices and functionality such as
404 config SC_DISPCC_8280XP
405 tristate "SC8280XP Display Clock Controller"
408 Support for the two display clock controllers on Qualcomm
409 Technologies, Inc. SC8280XP devices.
410 Say Y if you want to support display devices and functionality such as
414 tristate "SC7180 Global Clock Controller"
416 depends on COMMON_CLK_QCOM
418 Support for the global clock controller on SC7180 devices.
419 Say Y if you want to use peripheral devices such as UART, SPI,
420 I2C, USB, UFS, SDCC, etc.
423 tristate "SC7280 Global Clock Controller"
425 depends on COMMON_CLK_QCOM
427 Support for the global clock controller on SC7280 devices.
428 Say Y if you want to use peripheral devices such as UART, SPI,
429 I2C, USB, UFS, SDCC, PCIe etc.
432 tristate "SC8180X Global Clock Controller"
434 depends on COMMON_CLK_QCOM
436 Support for the global clock controller on SC8180X devices.
437 Say Y if you want to use peripheral devices such as UART, SPI,
438 I2C, USB, UFS, SDCC, etc.
441 tristate "SC8280XP Global Clock Controller"
443 depends on COMMON_CLK_QCOM
445 Support for the global clock controller on SC8280XP devices.
446 Say Y if you want to use peripheral devices such as UART, SPI,
447 I2C, USB, UFS, SDCC, etc.
450 tristate "SC7180 Graphics Clock Controller"
453 Support for the graphics clock controller on SC7180 devices.
454 Say Y if you want to support graphics controller devices and
455 functionality such as 3D graphics.
458 tristate "SC7280 Graphics Clock Controller"
461 Support for the graphics clock controller on SC7280 devices.
462 Say Y if you want to support graphics controller devices and
463 functionality such as 3D graphics.
465 config SC_GPUCC_8280XP
466 tristate "SC8280XP Graphics Clock Controller"
469 Support for the graphics clock controller on SC8280XP devices.
470 Say Y if you want to support graphics controller devices and
471 functionality such as 3D graphics.
473 config SC_LPASSCC_7280
474 tristate "SC7280 Low Power Audio Subsystem (LPASS) Clock Controller"
477 Support for the LPASS clock controller on SC7280 devices.
478 Say Y if you want to use the LPASS branch clocks of the LPASS clock
479 controller to reset the LPASS subsystem.
481 config SC_LPASS_CORECC_7180
482 tristate "SC7180 LPASS Core Clock Controller"
485 Support for the LPASS(Low Power Audio Subsystem) core clock controller
487 Say Y if you want to use LPASS clocks and power domains of the LPASS
488 core clock controller.
490 config SC_LPASS_CORECC_7280
491 tristate "SC7280 LPASS Core & Audio Clock Controller"
495 Support for the LPASS(Low Power Audio Subsystem) core and audio clock
496 controller on SC7280 devices.
497 Say Y if you want to use LPASS clocks and power domains of the LPASS
498 core clock controller.
501 tristate "SC7180 Modem Clock Controller"
504 Support for the Modem Subsystem clock controller on Qualcomm
505 Technologies, Inc on SC7180 devices.
506 Say Y if you want to use the Modem branch clocks of the Modem
507 subsystem clock controller to reset the MSS subsystem.
509 config SC_VIDEOCC_7180
510 tristate "SC7180 Video Clock Controller"
513 Support for the video clock controller on SC7180 devices.
514 Say Y if you want to support video devices and functionality such as
515 video encode and decode.
517 config SC_VIDEOCC_7280
518 tristate "SC7280 Video Clock Controller"
521 Support for the video clock controller on SC7280 devices.
522 Say Y if you want to support video devices and functionality such as
523 video encode and decode.
526 tristate "SDM845 Camera Clock Controller"
529 Support for the camera clock controller on SDM845 devices.
530 Say Y if you want to support camera devices and camera functionality.
533 tristate "SDM660 Global Clock Controller"
536 Support for the global clock controller on SDM660 devices.
537 Say Y if you want to use peripheral devices such as UART, SPI,
538 i2C, USB, UFS, SDDC, PCIe, etc.
541 tristate "SDM660 Multimedia Clock Controller"
545 Support for the multimedia clock controller on SDM660 devices.
546 Say Y if you want to support multimedia devices such as display,
547 graphics, video encode/decode, camera, etc.
550 tristate "SDM660 Graphics Clock Controller"
554 Support for the graphics clock controller on SDM630/636/660 devices.
555 Say Y if you want to support graphics controller devices and
556 functionality such as 3D graphics
558 config QCS_TURING_404
559 tristate "QCS404 Turing Clock Controller"
561 Support for the Turing Clock Controller on QCS404, provides clocks
562 and resets for the Turing subsystem.
564 config QCS_Q6SSTOP_404
565 tristate "QCS404 Q6SSTOP Clock Controller"
568 Support for the Q6SSTOP clock controller on QCS404 devices.
569 Say Y if you want to use the Q6SSTOP branch clocks of the WCSS clock
570 controller to reset the Q6SSTOP subsystem.
573 tristate "SDM845/SDM670 Global Clock Controller"
576 Support for the global clock controller on SDM845 and SDM670 devices.
577 Say Y if you want to use peripheral devices such as UART, SPI,
578 i2C, USB, UFS, SDDC, PCIe, etc.
581 tristate "SDM845 Graphics Clock Controller"
584 Support for the graphics clock controller on SDM845 devices.
585 Say Y if you want to support graphics controller devices and
586 functionality such as 3D graphics.
588 config SDM_VIDEOCC_845
589 tristate "SDM845 Video Clock Controller"
593 Support for the video clock controller on SDM845 devices.
594 Say Y if you want to support video devices and functionality such as
595 video encode and decode.
597 config SDM_DISPCC_845
598 tristate "SDM845 Display Clock Controller"
601 Support for the display clock controller on Qualcomm Technologies, Inc
603 Say Y if you want to support display devices and functionality such as
606 config SDM_LPASSCC_845
607 tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller"
610 Support for the LPASS clock controller on SDM845 devices.
611 Say Y if you want to use the LPASS branch clocks of the LPASS clock
612 controller to reset the LPASS subsystem.
615 tristate "SDX55 Global Clock Controller"
618 Support for the global clock controller on SDX55 devices.
619 Say Y if you want to use peripheral devices such as UART,
620 SPI, I2C, USB, SD/UFS, PCIe etc.
623 tristate "SDX65 Global Clock Controller"
626 Support for the global clock controller on SDX65 devices.
627 Say Y if you want to use peripheral devices such as UART,
628 SPI, I2C, USB, SD/UFS, PCIe etc.
631 tristate "SM8250 Camera Clock Controller"
634 Support for the camera clock controller on SM8250 devices.
635 Say Y if you want to support camera devices and camera functionality.
638 tristate "SM8450 Camera Clock Controller"
641 Support for the camera clock controller on SM8450 devices.
642 Say Y if you want to support camera devices and camera functionality.
644 config SM_DISPCC_6115
645 tristate "SM6115 Display Clock Controller"
646 depends on SM_GCC_6115
648 Support for the display clock controller on Qualcomm Technologies, Inc
649 SM6115/SM4250 devices.
650 Say Y if you want to support display devices and functionality such as
653 config SM_DISPCC_6125
654 tristate "SM6125 Display Clock Controller"
655 depends on SM_GCC_6125
657 Support for the display clock controller on Qualcomm Technologies, Inc
659 Say Y if you want to support display devices and functionality such as
662 config SM_DISPCC_8250
663 tristate "SM8150/SM8250/SM8350 Display Clock Controller"
664 depends on SM_GCC_8150 || SM_GCC_8250 || SM_GCC_8350
666 Support for the display clock controller on Qualcomm Technologies, Inc
667 SM8150/SM8250/SM8350 devices.
668 Say Y if you want to support display devices and functionality such as
671 config SM_DISPCC_6350
672 tristate "SM6350 Display Clock Controller"
673 depends on SM_GCC_6350
675 Support for the display clock controller on Qualcomm Technologies, Inc
677 Say Y if you want to support display devices and functionality such as
680 config SM_DISPCC_6375
681 tristate "SM6375 Display Clock Controller"
682 depends on SM_GCC_6375
684 Support for the display clock controller on Qualcomm Technologies, Inc
686 Say Y if you want to support display devices and functionality such as
689 config SM_DISPCC_8450
690 tristate "SM8450 Display Clock Controller"
691 depends on SM_GCC_8450
693 Support for the display clock controller on Qualcomm Technologies, Inc
695 Say Y if you want to support display devices and functionality such as
699 tristate "SM6115 and SM4250 Global Clock Controller"
702 Support for the global clock controller on SM6115 and SM4250 devices.
703 Say Y if you want to use peripheral devices such as UART, SPI,
704 i2C, USB, UFS, SDDC, PCIe, etc.
707 tristate "SM6125 Global Clock Controller"
709 Support for the global clock controller on SM6125 devices.
710 Say Y if you want to use peripheral devices such as UART,
711 SPI, I2C, USB, SD/UFS, PCIe etc.
714 tristate "SM6350 Global Clock Controller"
717 Support for the global clock controller on SM6350 devices.
718 Say Y if you want to use peripheral devices such as UART,
719 SPI, I2C, USB, SD/UFS, PCIe etc.
722 tristate "SM6375 Global Clock Controller"
725 Support for the global clock controller on SM6375 devices.
726 Say Y if you want to use peripheral devices such as UART,
727 SPI, I2C, USB, SD/UFS etc.
730 tristate "SM8150 Global Clock Controller"
732 Support for the global clock controller on SM8150 devices.
733 Say Y if you want to use peripheral devices such as UART,
734 SPI, I2C, USB, SD/UFS, PCIe etc.
737 tristate "SM8250 Global Clock Controller"
740 Support for the global clock controller on SM8250 devices.
741 Say Y if you want to use peripheral devices such as UART,
742 SPI, I2C, USB, SD/UFS, PCIe etc.
745 tristate "SM8350 Global Clock Controller"
748 Support for the global clock controller on SM8350 devices.
749 Say Y if you want to use peripheral devices such as UART,
750 SPI, I2C, USB, SD/UFS, PCIe etc.
753 tristate "SM8450 Global Clock Controller"
756 Support for the global clock controller on SM8450 devices.
757 Say Y if you want to use peripheral devices such as UART,
758 SPI, I2C, USB, SD/UFS, PCIe etc.
761 tristate "SM8550 Global Clock Controller"
764 Support for the global clock controller on SM8550 devices.
765 Say Y if you want to use peripheral devices such as UART,
766 SPI, I2C, USB, SD/UFS, PCIe etc.
769 tristate "SM6350 Graphics Clock Controller"
772 Support for the graphics clock controller on SM6350 devices.
773 Say Y if you want to support graphics controller devices and
774 functionality such as 3D graphics.
777 tristate "SM8150 Graphics Clock Controller"
780 Support for the graphics clock controller on SM8150 devices.
781 Say Y if you want to support graphics controller devices and
782 functionality such as 3D graphics.
785 tristate "SM8250 Graphics Clock Controller"
788 Support for the graphics clock controller on SM8250 devices.
789 Say Y if you want to support graphics controller devices and
790 functionality such as 3D graphics.
793 tristate "SM8350 Graphics Clock Controller"
796 Support for the graphics clock controller on SM8350 devices.
797 Say Y if you want to support graphics controller devices and
798 functionality such as 3D graphics.
800 config SM_VIDEOCC_8150
801 tristate "SM8150 Video Clock Controller"
805 Support for the video clock controller on SM8150 devices.
806 Say Y if you want to support video devices and functionality such as
807 video encode and decode.
809 config SM_VIDEOCC_8250
810 tristate "SM8250 Video Clock Controller"
814 Support for the video clock controller on SM8250 devices.
815 Say Y if you want to support video devices and functionality such as
816 video encode and decode.
818 config SPMI_PMIC_CLKDIV
819 tristate "SPMI PMIC clkdiv Support"
820 depends on SPMI || COMPILE_TEST
822 This driver supports the clkdiv functionality on the Qualcomm
823 Technologies, Inc. SPMI PMIC. It configures the frequency of
824 clkdiv outputs of the PMIC. These clocks are typically wired
825 through alternate functions on GPIO pins.
828 tristate "High-Frequency PLL (HFPLL) Clock Controller"
830 Support for the high-frequency PLLs present on Qualcomm devices.
831 Say Y if you want to support CPU frequency scaling on devices
832 such as MSM8974, APQ8084, etc.
835 tristate "KPSS Clock Controller"
837 Support for the Krait ACC and GCC clock controllers. Say Y
838 if you want to support CPU frequency scaling on devices such
839 as MSM8960, APQ8064, etc.
842 tristate "Krait Clock Controller"
846 Support for the Krait CPU clocks on Qualcomm devices.
847 Say Y if you want to support CPU frequency scaling.
849 config CLK_GFM_LPASS_SM8250
850 tristate "SM8250 GFM LPASS Clocks"
852 Support for the Glitch Free Mux (GFM) Low power audio
853 subsystem (LPASS) clocks found on SM8250 SoCs.