xref: /openbmc/linux/drivers/clk/qcom/Kconfig (revision 1804569d)
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	select QCOM_GDSC
219	help
220	  Support for the global clock controller on msm8998 devices.
221	  Say Y if you want to use peripheral devices such as UART, SPI,
222	  i2c, USB, UFS, SD/eMMC, PCIe, etc.
223
224config QCS_GCC_404
225	tristate "QCS404 Global Clock Controller"
226	help
227	  Support for the global clock controller on QCS404 devices.
228	  Say Y if you want to use multimedia devices or peripheral
229	  devices such as UART, SPI, I2C, USB, SD/eMMC, PCIe etc.
230
231config SDM_CAMCC_845
232	tristate "SDM845 Camera Clock Controller"
233	select SDM_GCC_845
234	help
235	  Support for the camera clock controller on SDM845 devices.
236	  Say Y if you want to support camera devices and camera functionality.
237
238config SDM_GCC_660
239	tristate "SDM660 Global Clock Controller"
240	select QCOM_GDSC
241	help
242	  Support for the global clock controller on SDM660 devices.
243	  Say Y if you want to use peripheral devices such as UART, SPI,
244	  i2C, USB, UFS, SDDC, PCIe, etc.
245
246config SDM_GCC_845
247	tristate "SDM845 Global Clock Controller"
248	select QCOM_GDSC
249	help
250	  Support for the global clock controller on SDM845 devices.
251	  Say Y if you want to use peripheral devices such as UART, SPI,
252	  i2C, USB, UFS, SDDC, PCIe, etc.
253
254config SDM_GPUCC_845
255	tristate "SDM845 Graphics Clock Controller"
256	select SDM_GCC_845
257	help
258	  Support for the graphics clock controller on SDM845 devices.
259	  Say Y if you want to support graphics controller devices and
260	  functionality such as 3D graphics.
261
262config SDM_VIDEOCC_845
263	tristate "SDM845 Video Clock Controller"
264	select SDM_GCC_845
265	select QCOM_GDSC
266	help
267	  Support for the video clock controller on SDM845 devices.
268	  Say Y if you want to support video devices and functionality such as
269	  video encode and decode.
270
271config SDM_DISPCC_845
272	tristate "SDM845 Display Clock Controller"
273	select SDM_GCC_845
274	help
275	  Support for the display clock controller on Qualcomm Technologies, Inc
276	  SDM845 devices.
277	  Say Y if you want to support display devices and functionality such as
278	  splash screen.
279
280config SDM_LPASSCC_845
281	tristate "SDM845 Low Power Audio Subsystem (LPAAS) Clock Controller"
282	select SDM_GCC_845
283	help
284	  Support for the LPASS clock controller on SDM845 devices.
285	  Say Y if you want to use the LPASS branch clocks of the LPASS clock
286	  controller to reset the LPASS subsystem.
287
288config SPMI_PMIC_CLKDIV
289	tristate "SPMI PMIC clkdiv Support"
290	depends on SPMI || COMPILE_TEST
291	help
292	  This driver supports the clkdiv functionality on the Qualcomm
293	  Technologies, Inc. SPMI PMIC. It configures the frequency of
294	  clkdiv outputs of the PMIC. These clocks are typically wired
295	  through alternate functions on GPIO pins.
296
297config QCOM_HFPLL
298	tristate "High-Frequency PLL (HFPLL) Clock Controller"
299	help
300	  Support for the high-frequency PLLs present on Qualcomm devices.
301	  Say Y if you want to support CPU frequency scaling on devices
302	  such as MSM8974, APQ8084, etc.
303
304config KPSS_XCC
305	tristate "KPSS Clock Controller"
306	help
307	  Support for the Krait ACC and GCC clock controllers. Say Y
308	  if you want to support CPU frequency scaling on devices such
309	  as MSM8960, APQ8064, etc.
310
311config KRAITCC
312	tristate "Krait Clock Controller"
313	depends on ARM
314	select KRAIT_CLOCKS
315	help
316	  Support for the Krait CPU clocks on Qualcomm devices.
317	  Say Y if you want to support CPU frequency scaling.
318
319endif
320