xref: /openbmc/linux/drivers/clk/qcom/Kconfig (revision 6a0abce4)
1config KRAIT_CLOCKS
2       bool
3       select KRAIT_L2_ACCESSORS
4
5config QCOM_GDSC
6	bool
7	select PM_GENERIC_DOMAINS if PM
8
9config QCOM_RPMCC
10	bool
11
12menuconfig COMMON_CLK_QCOM
13	tristate "Support for Qualcomm's clock controllers"
14	depends on OF
15	depends on ARCH_QCOM || COMPILE_TEST
16	select REGMAP_MMIO
17	select RESET_CONTROLLER
18
19if COMMON_CLK_QCOM
20
21config QCOM_A53PLL
22	tristate "MSM8916 A53 PLL"
23	default ARCH_QCOM
24	help
25	  Support for the A53 PLL on MSM8916 devices. It provides
26	  the CPU with frequencies above 1GHz.
27	  Say Y if you want to support higher CPU frequencies on MSM8916
28	  devices.
29
30config QCOM_CLK_APCS_MSM8916
31	tristate "MSM8916 APCS Clock Controller"
32	depends on QCOM_APCS_IPC || COMPILE_TEST
33	default ARCH_QCOM
34	help
35	  Support for the APCS Clock Controller on msm8916 devices. The
36	  APCS is managing the mux and divider which feeds the CPUs.
37	  Say Y if you want to support CPU frequency scaling on devices
38	  such as msm8916.
39
40config QCOM_CLK_RPM
41	tristate "RPM based Clock Controller"
42	depends on MFD_QCOM_RPM
43	select QCOM_RPMCC
44	help
45	  The RPM (Resource Power Manager) is a dedicated hardware engine for
46	  managing the shared SoC resources in order to keep the lowest power
47	  profile. It communicates with other hardware subsystems via shared
48	  memory and accepts clock requests, aggregates the requests and turns
49	  the clocks on/off or scales them on demand.
50	  Say Y if you want to support the clocks exposed by the RPM on
51	  platforms such as apq8064, msm8660, msm8960 etc.
52
53config QCOM_CLK_SMD_RPM
54	tristate "RPM over SMD based Clock Controller"
55	depends on QCOM_SMD_RPM
56	select QCOM_RPMCC
57	help
58	  The RPM (Resource Power Manager) is a dedicated hardware engine for
59	  managing the shared SoC resources in order to keep the lowest power
60	  profile. It communicates with other hardware subsystems via shared
61	  memory and accepts clock requests, aggregates the requests and turns
62	  the clocks on/off or scales them on demand.
63	  Say Y if you want to support the clocks exposed by the RPM on
64	  platforms such as apq8016, apq8084, msm8974 etc.
65
66config QCOM_CLK_RPMH
67	tristate "RPMh Clock Driver"
68	depends on QCOM_RPMH
69	help
70	 RPMh manages shared resources on some Qualcomm Technologies, Inc.
71	 SoCs. It accepts requests from other hardware subsystems via RSC.
72	 Say Y if you want to support the clocks exposed by RPMh on
73	 platforms such as SDM845.
74
75config APQ_GCC_8084
76	tristate "APQ8084 Global Clock Controller"
77	select QCOM_GDSC
78	help
79	  Support for the global clock controller on apq8084 devices.
80	  Say Y if you want to use peripheral devices such as UART, SPI,
81	  i2c, USB, SD/eMMC, SATA, PCIe, etc.
82
83config APQ_MMCC_8084
84	tristate "APQ8084 Multimedia Clock Controller"
85	select APQ_GCC_8084
86	select QCOM_GDSC
87	help
88	  Support for the multimedia clock controller on apq8084 devices.
89	  Say Y if you want to support multimedia devices such as display,
90	  graphics, video encode/decode, camera, etc.
91
92config IPQ_GCC_4019
93	tristate "IPQ4019 Global Clock Controller"
94	help
95	  Support for the global clock controller on ipq4019 devices.
96	  Say Y if you want to use peripheral devices such as UART, SPI,
97	  i2c, USB, SD/eMMC, etc.
98
99config IPQ_GCC_806X
100	tristate "IPQ806x Global Clock Controller"
101	help
102	  Support for the global clock controller on ipq806x devices.
103	  Say Y if you want to use peripheral devices such as UART, SPI,
104	  i2c, USB, SD/eMMC, etc.
105
106config IPQ_LCC_806X
107	tristate "IPQ806x LPASS Clock Controller"
108	select IPQ_GCC_806X
109	help
110	  Support for the LPASS clock controller on ipq806x devices.
111	  Say Y if you want to use audio devices such as i2s, pcm,
112	  S/PDIF, etc.
113
114config IPQ_GCC_8074
115	tristate "IPQ8074 Global Clock Controller"
116	help
117	  Support for global clock controller on ipq8074 devices.
118	  Say Y if you want to use peripheral devices such as UART, SPI,
119	  i2c, USB, SD/eMMC, etc. Select this for the root clock
120	  of ipq8074.
121
122config MSM_GCC_8660
123	tristate "MSM8660 Global Clock Controller"
124	help
125	  Support for the global clock controller on msm8660 devices.
126	  Say Y if you want to use peripheral devices such as UART, SPI,
127	  i2c, USB, SD/eMMC, etc.
128
129config MSM_GCC_8916
130	tristate "MSM8916 Global Clock Controller"
131	select QCOM_GDSC
132	help
133	  Support for the global clock controller on msm8916 devices.
134	  Say Y if you want to use devices such as UART, SPI i2c, USB,
135	  SD/eMMC, display, graphics, camera etc.
136
137config MSM_GCC_8960
138	tristate "APQ8064/MSM8960 Global Clock Controller"
139	help
140	  Support for the global clock controller on apq8064/msm8960 devices.
141	  Say Y if you want to use peripheral devices such as UART, SPI,
142	  i2c, USB, SD/eMMC, SATA, PCIe, etc.
143
144config MSM_LCC_8960
145	tristate "APQ8064/MSM8960 LPASS Clock Controller"
146	select MSM_GCC_8960
147	help
148	  Support for the LPASS clock controller on apq8064/msm8960 devices.
149	  Say Y if you want to use audio devices such as i2s, pcm,
150	  SLIMBus, etc.
151
152config MDM_GCC_9615
153	tristate "MDM9615 Global Clock Controller"
154	help
155	  Support for the global clock controller on mdm9615 devices.
156	  Say Y if you want to use peripheral devices such as UART, SPI,
157	  i2c, USB, SD/eMMC, etc.
158
159config MDM_LCC_9615
160	tristate "MDM9615 LPASS Clock Controller"
161	select MDM_GCC_9615
162	help
163	  Support for the LPASS clock controller on mdm9615 devices.
164	  Say Y if you want to use audio devices such as i2s, pcm,
165	  SLIMBus, etc.
166
167config MSM_MMCC_8960
168	tristate "MSM8960 Multimedia Clock Controller"
169	select MSM_GCC_8960
170	help
171	  Support for the multimedia clock controller on msm8960 devices.
172	  Say Y if you want to support multimedia devices such as display,
173	  graphics, video encode/decode, camera, etc.
174
175config MSM_GCC_8974
176	tristate "MSM8974 Global Clock Controller"
177	select QCOM_GDSC
178	help
179	  Support for the global clock controller on msm8974 devices.
180	  Say Y if you want to use peripheral devices such as UART, SPI,
181	  i2c, USB, SD/eMMC, SATA, PCIe, etc.
182
183config MSM_MMCC_8974
184	tristate "MSM8974 Multimedia Clock Controller"
185	select MSM_GCC_8974
186	select QCOM_GDSC
187	help
188	  Support for the multimedia clock controller on msm8974 devices.
189	  Say Y if you want to support multimedia devices such as display,
190	  graphics, video encode/decode, camera, etc.
191
192config MSM_GCC_8994
193	tristate "MSM8994 Global Clock Controller"
194	help
195	  Support for the global clock controller on msm8994 devices.
196	  Say Y if you want to use peripheral devices such as UART, SPI,
197	  i2c, USB, UFS, SD/eMMC, PCIe, etc.
198
199config MSM_GCC_8996
200	tristate "MSM8996 Global Clock Controller"
201	select QCOM_GDSC
202	help
203	  Support for the global clock controller on msm8996 devices.
204	  Say Y if you want to use peripheral devices such as UART, SPI,
205	  i2c, USB, UFS, SD/eMMC, PCIe, etc.
206
207config MSM_MMCC_8996
208	tristate "MSM8996 Multimedia Clock Controller"
209	select MSM_GCC_8996
210	select QCOM_GDSC
211	help
212	  Support for the multimedia clock controller on msm8996 devices.
213	  Say Y if you want to support multimedia devices such as display,
214	  graphics, video encode/decode, camera, etc.
215
216config MSM_GCC_8998
217	tristate "MSM8998 Global Clock Controller"
218	help
219	  Support for the global clock controller on msm8998 devices.
220	  Say Y if you want to use peripheral devices such as UART, SPI,
221	  i2c, USB, UFS, SD/eMMC, PCIe, etc.
222
223config QCS_GCC_404
224	tristate "QCS404 Global Clock Controller"
225	help
226	  Support for the global clock controller on QCS404 devices.
227	  Say Y if you want to use multimedia devices or peripheral
228	  devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
229
230config SDM_CAMCC_845
231	tristate "SDM845 Camera Clock Controller"
232	select SDM_GCC_845
233	help
234	  Support for the camera clock controller on SDM845 devices.
235	  Say Y if you want to support camera devices and camera functionality.
236
237config SDM_GCC_660
238	tristate "SDM660 Global Clock Controller"
239	select QCOM_GDSC
240	help
241	  Support for the global clock controller on SDM660 devices.
242	  Say Y if you want to use peripheral devices such as UART, SPI,
243	  i2C, USB, UFS, SDDC, PCIe, etc.
244
245config SDM_GCC_845
246	tristate "SDM845 Global Clock Controller"
247	select QCOM_GDSC
248	help
249	  Support for the global clock controller on SDM845 devices.
250	  Say Y if you want to use peripheral devices such as UART, SPI,
251	  i2C, USB, UFS, SDDC, PCIe, etc.
252
253config SDM_GPUCC_845
254	tristate "SDM845 Graphics Clock Controller"
255	select SDM_GCC_845
256	help
257	  Support for the graphics clock controller on SDM845 devices.
258	  Say Y if you want to support graphics controller devices and
259	  functionality such as 3D graphics.
260
261config SDM_VIDEOCC_845
262	tristate "SDM845 Video Clock Controller"
263	select SDM_GCC_845
264	select QCOM_GDSC
265	help
266	  Support for the video clock controller on SDM845 devices.
267	  Say Y if you want to support video devices and functionality such as
268	  video encode and decode.
269
270config SDM_DISPCC_845
271	tristate "SDM845 Display Clock Controller"
272	select SDM_GCC_845
273	help
274	  Support for the display clock controller on Qualcomm Technologies, Inc
275	  SDM845 devices.
276	  Say Y if you want to support display devices and functionality such as
277	  splash screen.
278
279config SDM_LPASSCC_845
280	tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller"
281	select SDM_GCC_845
282	help
283	  Support for the LPASS clock controller on SDM845 devices.
284	  Say Y if you want to use the LPASS branch clocks of the LPASS clock
285	  controller to reset the LPASS subsystem.
286
287config SPMI_PMIC_CLKDIV
288	tristate "SPMI PMIC clkdiv Support"
289	depends on SPMI || COMPILE_TEST
290	help
291	  This driver supports the clkdiv functionality on the Qualcomm
292	  Technologies, Inc. SPMI PMIC. It configures the frequency of
293	  clkdiv outputs of the PMIC. These clocks are typically wired
294	  through alternate functions on GPIO pins.
295
296config QCOM_HFPLL
297	tristate "High-Frequency PLL (HFPLL) Clock Controller"
298	help
299	  Support for the high-frequency PLLs present on Qualcomm devices.
300	  Say Y if you want to support CPU frequency scaling on devices
301	  such as MSM8974, APQ8084, etc.
302
303config KPSS_XCC
304	tristate "KPSS Clock Controller"
305	help
306	  Support for the Krait ACC and GCC clock controllers. Say Y
307	  if you want to support CPU frequency scaling on devices such
308	  as MSM8960, APQ8064, etc.
309
310config KRAITCC
311	tristate "Krait Clock Controller"
312	depends on ARM
313	select KRAIT_CLOCKS
314	help
315	  Support for the Krait CPU clocks on Qualcomm devices.
316	  Say Y if you want to support CPU frequency scaling.
317
318endif
319