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
18 select RESET_CONTROLLER
23 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
31 config QCOM_CLK_APCS_MSM8916
32 tristate "MSM8916 APCS Clock Controller"
33 depends on QCOM_APCS_IPC || COMPILE_TEST
36 Support for the APCS Clock Controller on msm8916 devices. The
37 APCS is managing the mux and divider which feeds the CPUs.
38 Say Y if you want to support CPU frequency scaling on devices
42 tristate "RPM based Clock Controller"
43 depends on MFD_QCOM_RPM
46 The RPM (Resource Power Manager) is a dedicated hardware engine for
47 managing the shared SoC resources in order to keep the lowest power
48 profile. It communicates with other hardware subsystems via shared
49 memory and accepts clock requests, aggregates the requests and turns
50 the clocks on/off or scales them on demand.
51 Say Y if you want to support the clocks exposed by the RPM on
52 platforms such as apq8064, msm8660, msm8960 etc.
54 config QCOM_CLK_SMD_RPM
55 tristate "RPM over SMD based Clock Controller"
56 depends on QCOM_SMD_RPM
59 The RPM (Resource Power Manager) is a dedicated hardware engine for
60 managing the shared SoC resources in order to keep the lowest power
61 profile. It communicates with other hardware subsystems via shared
62 memory and accepts clock requests, aggregates the requests and turns
63 the clocks on/off or scales them on demand.
64 Say Y if you want to support the clocks exposed by the RPM on
65 platforms such as apq8016, apq8084, msm8974 etc.
68 tristate "RPMh Clock Driver"
71 RPMh manages shared resources on some Qualcomm Technologies, Inc.
72 SoCs. It accepts requests from other hardware subsystems via RSC.
73 Say Y if you want to support the clocks exposed by RPMh on
74 platforms such as SDM845.
77 tristate "APQ8084 Global Clock Controller"
80 Support for the global clock controller on apq8084 devices.
81 Say Y if you want to use peripheral devices such as UART, SPI,
82 i2c, USB, SD/eMMC, SATA, PCIe, etc.
85 tristate "APQ8084 Multimedia Clock Controller"
89 Support for the multimedia clock controller on apq8084 devices.
90 Say Y if you want to support multimedia devices such as display,
91 graphics, video encode/decode, camera, etc.
94 tristate "IPQ4019 Global Clock Controller"
96 Support for the global clock controller on ipq4019 devices.
97 Say Y if you want to use peripheral devices such as UART, SPI,
98 i2c, USB, SD/eMMC, etc.
101 tristate "IPQ806x Global Clock Controller"
103 Support for the global clock controller on ipq806x devices.
104 Say Y if you want to use peripheral devices such as UART, SPI,
105 i2c, USB, SD/eMMC, etc.
108 tristate "IPQ806x LPASS Clock Controller"
111 Support for the LPASS clock controller on ipq806x devices.
112 Say Y if you want to use audio devices such as i2s, pcm,
116 tristate "IPQ8074 Global Clock Controller"
118 Support for global clock controller on ipq8074 devices.
119 Say Y if you want to use peripheral devices such as UART, SPI,
120 i2c, USB, SD/eMMC, etc. Select this for the root clock
124 tristate "MSM8660 Global Clock Controller"
126 Support for the global clock controller on msm8660 devices.
127 Say Y if you want to use peripheral devices such as UART, SPI,
128 i2c, USB, SD/eMMC, etc.
131 tristate "MSM8916 Global Clock Controller"
134 Support for the global clock controller on msm8916 devices.
135 Say Y if you want to use devices such as UART, SPI i2c, USB,
136 SD/eMMC, display, graphics, camera etc.
139 tristate "APQ8064/MSM8960 Global Clock Controller"
141 Support for the global clock controller on apq8064/msm8960 devices.
142 Say Y if you want to use peripheral devices such as UART, SPI,
143 i2c, USB, SD/eMMC, SATA, PCIe, etc.
146 tristate "APQ8064/MSM8960 LPASS Clock Controller"
149 Support for the LPASS clock controller on apq8064/msm8960 devices.
150 Say Y if you want to use audio devices such as i2s, pcm,
154 tristate "MDM9615 Global Clock Controller"
156 Support for the global clock controller on mdm9615 devices.
157 Say Y if you want to use peripheral devices such as UART, SPI,
158 i2c, USB, SD/eMMC, etc.
161 tristate "MDM9615 LPASS Clock Controller"
164 Support for the LPASS clock controller on mdm9615 devices.
165 Say Y if you want to use audio devices such as i2s, pcm,
169 tristate "MSM8960 Multimedia Clock Controller"
172 Support for the multimedia clock controller on msm8960 devices.
173 Say Y if you want to support multimedia devices such as display,
174 graphics, video encode/decode, camera, etc.
177 tristate "MSM8974 Global Clock Controller"
180 Support for the global clock controller on msm8974 devices.
181 Say Y if you want to use peripheral devices such as UART, SPI,
182 i2c, USB, SD/eMMC, SATA, PCIe, etc.
185 tristate "MSM8974 Multimedia Clock Controller"
189 Support for the multimedia clock controller on msm8974 devices.
190 Say Y if you want to support multimedia devices such as display,
191 graphics, video encode/decode, camera, etc.
194 tristate "MSM8994 Global Clock Controller"
196 Support for the global clock controller on msm8994 devices.
197 Say Y if you want to use peripheral devices such as UART, SPI,
198 i2c, USB, UFS, SD/eMMC, PCIe, etc.
201 tristate "MSM8996 Global Clock Controller"
204 Support for the global clock controller on msm8996 devices.
205 Say Y if you want to use peripheral devices such as UART, SPI,
206 i2c, USB, UFS, SD/eMMC, PCIe, etc.
209 tristate "MSM8996 Multimedia Clock Controller"
213 Support for the multimedia clock controller on msm8996 devices.
214 Say Y if you want to support multimedia devices such as display,
215 graphics, video encode/decode, camera, etc.
218 tristate "MSM8998 Global Clock Controller"
221 Support for the global clock controller on msm8998 devices.
222 Say Y if you want to use peripheral devices such as UART, SPI,
223 i2c, USB, UFS, SD/eMMC, PCIe, etc.
226 tristate "QCS404 Global Clock Controller"
228 Support for the global clock controller on QCS404 devices.
229 Say Y if you want to use multimedia devices or peripheral
230 devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
233 tristate "SDM845 Camera Clock Controller"
236 Support for the camera clock controller on SDM845 devices.
237 Say Y if you want to support camera devices and camera functionality.
240 tristate "SDM660 Global Clock Controller"
243 Support for the global clock controller on SDM660 devices.
244 Say Y if you want to use peripheral devices such as UART, SPI,
245 i2C, USB, UFS, SDDC, PCIe, etc.
247 config QCS_TURING_404
248 tristate "QCS404 Turing Clock Controller"
250 Support for the Turing Clock Controller on QCS404, provides clocks
251 and resets for the Turing subsystem.
254 tristate "SDM845 Global Clock Controller"
257 Support for the global clock controller on SDM845 devices.
258 Say Y if you want to use peripheral devices such as UART, SPI,
259 i2C, USB, UFS, SDDC, PCIe, etc.
262 tristate "SDM845 Graphics Clock Controller"
265 Support for the graphics clock controller on SDM845 devices.
266 Say Y if you want to support graphics controller devices and
267 functionality such as 3D graphics.
269 config SDM_VIDEOCC_845
270 tristate "SDM845 Video Clock Controller"
274 Support for the video clock controller on SDM845 devices.
275 Say Y if you want to support video devices and functionality such as
276 video encode and decode.
278 config SDM_DISPCC_845
279 tristate "SDM845 Display Clock Controller"
282 Support for the display clock controller on Qualcomm Technologies, Inc
284 Say Y if you want to support display devices and functionality such as
287 config SDM_LPASSCC_845
288 tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller"
291 Support for the LPASS clock controller on SDM845 devices.
292 Say Y if you want to use the LPASS branch clocks of the LPASS clock
293 controller to reset the LPASS subsystem.
295 config SPMI_PMIC_CLKDIV
296 tristate "SPMI PMIC clkdiv Support"
297 depends on SPMI || COMPILE_TEST
299 This driver supports the clkdiv functionality on the Qualcomm
300 Technologies, Inc. SPMI PMIC. It configures the frequency of
301 clkdiv outputs of the PMIC. These clocks are typically wired
302 through alternate functions on GPIO pins.
305 tristate "High-Frequency PLL (HFPLL) Clock Controller"
307 Support for the high-frequency PLLs present on Qualcomm devices.
308 Say Y if you want to support CPU frequency scaling on devices
309 such as MSM8974, APQ8084, etc.
312 tristate "KPSS Clock Controller"
314 Support for the Krait ACC and GCC clock controllers. Say Y
315 if you want to support CPU frequency scaling on devices such
316 as MSM8960, APQ8064, etc.
319 tristate "Krait Clock Controller"
323 Support for the Krait CPU clocks on Qualcomm devices.
324 Say Y if you want to support CPU frequency scaling.