xref: /openbmc/linux/drivers/clk/qcom/Kconfig (revision 1a59d1b8)
1# SPDX-License-Identifier: GPL-2.0-only
2config KRAIT_CLOCKS
3       bool
4       select KRAIT_L2_ACCESSORS
5
6config QCOM_GDSC
7	bool
8	select PM_GENERIC_DOMAINS if PM
9
10config QCOM_RPMCC
11	bool
12
13menuconfig COMMON_CLK_QCOM
14	tristate "Support for Qualcomm's clock controllers"
15	depends on OF
16	depends on ARCH_QCOM || COMPILE_TEST
17	select REGMAP_MMIO
18	select RESET_CONTROLLER
19
20if COMMON_CLK_QCOM
21
22config QCOM_A53PLL
23	tristate "MSM8916 A53 PLL"
24	default ARCH_QCOM
25	help
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
29	  devices.
30
31config QCOM_CLK_APCS_MSM8916
32	tristate "MSM8916 APCS Clock Controller"
33	depends on QCOM_APCS_IPC || COMPILE_TEST
34	default ARCH_QCOM
35	help
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
39	  such as msm8916.
40
41config QCOM_CLK_RPM
42	tristate "RPM based Clock Controller"
43	depends on MFD_QCOM_RPM
44	select QCOM_RPMCC
45	help
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.
53
54config QCOM_CLK_SMD_RPM
55	tristate "RPM over SMD based Clock Controller"
56	depends on QCOM_SMD_RPM
57	select QCOM_RPMCC
58	help
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.
66
67config QCOM_CLK_RPMH
68	tristate "RPMh Clock Driver"
69	depends on QCOM_RPMH
70	help
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.
75
76config APQ_GCC_8084
77	tristate "APQ8084 Global Clock Controller"
78	select QCOM_GDSC
79	help
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.
83
84config APQ_MMCC_8084
85	tristate "APQ8084 Multimedia Clock Controller"
86	select APQ_GCC_8084
87	select QCOM_GDSC
88	help
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.
92
93config IPQ_GCC_4019
94	tristate "IPQ4019 Global Clock Controller"
95	help
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.
99
100config IPQ_GCC_806X
101	tristate "IPQ806x Global Clock Controller"
102	help
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.
106
107config IPQ_LCC_806X
108	tristate "IPQ806x LPASS Clock Controller"
109	select IPQ_GCC_806X
110	help
111	  Support for the LPASS clock controller on ipq806x devices.
112	  Say Y if you want to use audio devices such as i2s, pcm,
113	  S/PDIF, etc.
114
115config IPQ_GCC_8074
116	tristate "IPQ8074 Global Clock Controller"
117	help
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
121	  of ipq8074.
122
123config MSM_GCC_8660
124	tristate "MSM8660 Global Clock Controller"
125	help
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.
129
130config MSM_GCC_8916
131	tristate "MSM8916 Global Clock Controller"
132	select QCOM_GDSC
133	help
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.
137
138config MSM_GCC_8960
139	tristate "APQ8064/MSM8960 Global Clock Controller"
140	help
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.
144
145config MSM_LCC_8960
146	tristate "APQ8064/MSM8960 LPASS Clock Controller"
147	select MSM_GCC_8960
148	help
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,
151	  SLIMBus, etc.
152
153config MDM_GCC_9615
154	tristate "MDM9615 Global Clock Controller"
155	help
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.
159
160config MDM_LCC_9615
161	tristate "MDM9615 LPASS Clock Controller"
162	select MDM_GCC_9615
163	help
164	  Support for the LPASS clock controller on mdm9615 devices.
165	  Say Y if you want to use audio devices such as i2s, pcm,
166	  SLIMBus, etc.
167
168config MSM_MMCC_8960
169	tristate "MSM8960 Multimedia Clock Controller"
170	select MSM_GCC_8960
171	help
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.
175
176config MSM_GCC_8974
177	tristate "MSM8974 Global Clock Controller"
178	select QCOM_GDSC
179	help
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.
183
184config MSM_MMCC_8974
185	tristate "MSM8974 Multimedia Clock Controller"
186	select MSM_GCC_8974
187	select QCOM_GDSC
188	help
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.
192
193config MSM_GCC_8994
194	tristate "MSM8994 Global Clock Controller"
195	help
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.
199
200config MSM_GCC_8996
201	tristate "MSM8996 Global Clock Controller"
202	select QCOM_GDSC
203	help
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.
207
208config MSM_MMCC_8996
209	tristate "MSM8996 Multimedia Clock Controller"
210	select MSM_GCC_8996
211	select QCOM_GDSC
212	help
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.
216
217config MSM_GCC_8998
218	tristate "MSM8998 Global Clock Controller"
219	select QCOM_GDSC
220	help
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.
224
225config QCS_GCC_404
226	tristate "QCS404 Global Clock Controller"
227	help
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.
231
232config SDM_CAMCC_845
233	tristate "SDM845 Camera Clock Controller"
234	select SDM_GCC_845
235	help
236	  Support for the camera clock controller on SDM845 devices.
237	  Say Y if you want to support camera devices and camera functionality.
238
239config SDM_GCC_660
240	tristate "SDM660 Global Clock Controller"
241	select QCOM_GDSC
242	help
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.
246
247config QCS_TURING_404
248	tristate "QCS404 Turing Clock Controller"
249	help
250	  Support for the Turing Clock Controller on QCS404, provides clocks
251	  and resets for the Turing subsystem.
252
253config SDM_GCC_845
254	tristate "SDM845 Global Clock Controller"
255	select QCOM_GDSC
256	help
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.
260
261config SDM_GPUCC_845
262	tristate "SDM845 Graphics Clock Controller"
263	select SDM_GCC_845
264	help
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.
268
269config SDM_VIDEOCC_845
270	tristate "SDM845 Video Clock Controller"
271	select SDM_GCC_845
272	select QCOM_GDSC
273	help
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.
277
278config SDM_DISPCC_845
279	tristate "SDM845 Display Clock Controller"
280	select SDM_GCC_845
281	help
282	  Support for the display clock controller on Qualcomm Technologies, Inc
283	  SDM845 devices.
284	  Say Y if you want to support display devices and functionality such as
285	  splash screen.
286
287config SDM_LPASSCC_845
288	tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller"
289	select SDM_GCC_845
290	help
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.
294
295config SPMI_PMIC_CLKDIV
296	tristate "SPMI PMIC clkdiv Support"
297	depends on SPMI || COMPILE_TEST
298	help
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.
303
304config QCOM_HFPLL
305	tristate "High-Frequency PLL (HFPLL) Clock Controller"
306	help
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.
310
311config KPSS_XCC
312	tristate "KPSS Clock Controller"
313	help
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.
317
318config KRAITCC
319	tristate "Krait Clock Controller"
320	depends on ARM
321	select KRAIT_CLOCKS
322	help
323	  Support for the Krait CPU clocks on Qualcomm devices.
324	  Say Y if you want to support CPU frequency scaling.
325
326endif
327