xref: /openbmc/linux/drivers/clk/Kconfig (revision 4e95bc26)
1# SPDX-License-Identifier: GPL-2.0
2
3config CLKDEV_LOOKUP
4	bool
5	select HAVE_CLK
6
7config HAVE_CLK_PREPARE
8	bool
9
10config COMMON_CLK
11	bool
12	select HAVE_CLK_PREPARE
13	select CLKDEV_LOOKUP
14	select SRCU
15	select RATIONAL
16	---help---
17	  The common clock framework is a single definition of struct
18	  clk, useful across many platforms, as well as an
19	  implementation of the clock API in include/linux/clk.h.
20	  Architectures utilizing the common struct clk should select
21	  this option.
22
23menu "Common Clock Framework"
24	depends on COMMON_CLK
25
26config COMMON_CLK_WM831X
27	tristate "Clock driver for WM831x/2x PMICs"
28	depends on MFD_WM831X
29	---help---
30          Supports the clocking subsystem of the WM831x/2x series of
31	  PMICs from Wolfson Microelectronics.
32
33source "drivers/clk/versatile/Kconfig"
34
35config CLK_HSDK
36	bool "PLL Driver for HSDK platform"
37	depends on OF || COMPILE_TEST
38	---help---
39	  This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
40	  control.
41
42config COMMON_CLK_MAX77686
43	tristate "Clock driver for Maxim 77620/77686/77802 MFD"
44	depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST
45	---help---
46	  This driver supports Maxim 77620/77686/77802 crystal oscillator
47	  clock.
48
49config COMMON_CLK_MAX9485
50	tristate "Maxim 9485 Programmable Clock Generator"
51	depends on I2C
52	help
53	  This driver supports Maxim 9485 Programmable Audio Clock Generator
54
55config COMMON_CLK_RK808
56	tristate "Clock driver for RK805/RK808/RK818"
57	depends on MFD_RK808
58	---help---
59	  This driver supports RK805, RK808 and RK818 crystal oscillator clock. These
60	  multi-function devices have two fixed-rate oscillators,
61	  clocked at 32KHz each. Clkout1 is always on, Clkout2 can off
62	  by control register.
63
64config COMMON_CLK_HI655X
65	tristate "Clock driver for Hi655x" if EXPERT
66	depends on (MFD_HI655X_PMIC || COMPILE_TEST)
67	depends on REGMAP
68	default MFD_HI655X_PMIC
69	---help---
70	  This driver supports the hi655x PMIC clock. This
71	  multi-function device has one fixed-rate oscillator, clocked
72	  at 32KHz.
73
74config COMMON_CLK_SCMI
75	tristate "Clock driver controlled via SCMI interface"
76	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
77	  ---help---
78	  This driver provides support for clocks that are controlled
79	  by firmware that implements the SCMI interface.
80
81	  This driver uses SCMI Message Protocol to interact with the
82	  firmware providing all the clock controls.
83
84config COMMON_CLK_SCPI
85	tristate "Clock driver controlled via SCPI interface"
86	depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
87	  ---help---
88	  This driver provides support for clocks that are controlled
89	  by firmware that implements the SCPI interface.
90
91	  This driver uses SCPI Message Protocol to interact with the
92	  firmware providing all the clock controls.
93
94config COMMON_CLK_SI5351
95	tristate "Clock driver for SiLabs 5351A/B/C"
96	depends on I2C
97	select REGMAP_I2C
98	select RATIONAL
99	---help---
100	  This driver supports Silicon Labs 5351A/B/C programmable clock
101	  generators.
102
103config COMMON_CLK_SI514
104	tristate "Clock driver for SiLabs 514 devices"
105	depends on I2C
106	depends on OF
107	select REGMAP_I2C
108	help
109	---help---
110	  This driver supports the Silicon Labs 514 programmable clock
111	  generator.
112
113config COMMON_CLK_SI544
114	tristate "Clock driver for SiLabs 544 devices"
115	depends on I2C
116	select REGMAP_I2C
117	help
118	---help---
119	  This driver supports the Silicon Labs 544 programmable clock
120	  generator.
121
122config COMMON_CLK_SI570
123	tristate "Clock driver for SiLabs 570 and compatible devices"
124	depends on I2C
125	depends on OF
126	select REGMAP_I2C
127	help
128	---help---
129	  This driver supports Silicon Labs 570/571/598/599 programmable
130	  clock generators.
131
132config COMMON_CLK_CDCE706
133	tristate "Clock driver for TI CDCE706 clock synthesizer"
134	depends on I2C
135	select REGMAP_I2C
136	select RATIONAL
137	---help---
138	  This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.
139
140config COMMON_CLK_CDCE925
141	tristate "Clock driver for TI CDCE913/925/937/949 devices"
142	depends on I2C
143	depends on OF
144	select REGMAP_I2C
145	help
146	---help---
147	  This driver supports the TI CDCE913/925/937/949 programmable clock
148	  synthesizer. Each chip has different number of PLLs and outputs.
149	  For example, the CDCE925 contains two PLLs with spread-spectrum
150	  clocking support and five output dividers. The driver only supports
151	  the following setup, and uses a fixed setting for the output muxes.
152	  Y1 is derived from the input clock
153	  Y2 and Y3 derive from PLL1
154	  Y4 and Y5 derive from PLL2
155	  Given a target output frequency, the driver will set the PLL and
156	  divider to best approximate the desired output.
157
158config COMMON_CLK_CS2000_CP
159	tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
160	depends on I2C
161	help
162	  If you say yes here you get support for the CS2000 clock multiplier.
163
164config COMMON_CLK_GEMINI
165	bool "Clock driver for Cortina Systems Gemini SoC"
166	depends on ARCH_GEMINI || COMPILE_TEST
167	select MFD_SYSCON
168	select RESET_CONTROLLER
169	---help---
170	  This driver supports the SoC clocks on the Cortina Systems Gemini
171	  platform, also known as SL3516 or CS3516.
172
173config COMMON_CLK_ASPEED
174	bool "Clock driver for Aspeed BMC SoCs"
175	depends on ARCH_ASPEED || COMPILE_TEST
176	default ARCH_ASPEED
177	select MFD_SYSCON
178	select RESET_CONTROLLER
179	---help---
180	  This driver supports the SoC clocks on the Aspeed BMC platforms.
181
182	  The G4 and G5 series, including the ast2400 and ast2500, are supported
183	  by this driver.
184
185config COMMON_CLK_S2MPS11
186	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
187	depends on MFD_SEC_CORE || COMPILE_TEST
188	---help---
189	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
190	  clock. These multi-function devices have two (S2MPS14) or three
191	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
192
193config CLK_TWL6040
194	tristate "External McPDM functional clock from twl6040"
195	depends on TWL6040_CORE
196	---help---
197	  Enable the external functional clock support on OMAP4+ platforms for
198	  McPDM. McPDM module is using the external bit clock on the McPDM bus
199	  as functional clock.
200
201config COMMON_CLK_AXI_CLKGEN
202	tristate "AXI clkgen driver"
203	depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
204	help
205	---help---
206	  Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
207	  FPGAs. It is commonly used in Analog Devices' reference designs.
208
209config CLK_QORIQ
210	bool "Clock driver for Freescale QorIQ platforms"
211	depends on (PPC_E500MC || ARM || ARM64 || COMPILE_TEST) && OF
212	---help---
213	  This adds the clock driver support for Freescale QorIQ platforms
214	  using common clock framework.
215
216config COMMON_CLK_XGENE
217	bool "Clock driver for APM XGene SoC"
218	default y
219	depends on ARM64 || COMPILE_TEST
220	---help---
221	  Sypport for the APM X-Gene SoC reference, PLL, and device clocks.
222
223config COMMON_CLK_LOCHNAGAR
224	tristate "Cirrus Logic Lochnagar clock driver"
225	depends on MFD_LOCHNAGAR
226	help
227	  This driver supports the clocking features of the Cirrus Logic
228	  Lochnagar audio development board.
229
230config COMMON_CLK_NXP
231	def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
232	select REGMAP_MMIO if ARCH_LPC32XX
233	select MFD_SYSCON if ARCH_LPC18XX
234	---help---
235	  Support for clock providers on NXP platforms.
236
237config COMMON_CLK_PALMAS
238	tristate "Clock driver for TI Palmas devices"
239	depends on MFD_PALMAS
240	---help---
241	  This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
242	  using common clock framework.
243
244config COMMON_CLK_PWM
245	tristate "Clock driver for PWMs used as clock outputs"
246	depends on PWM
247	---help---
248	  Adapter driver so that any PWM output can be (mis)used as clock signal
249	  at 50% duty cycle.
250
251config COMMON_CLK_PXA
252	def_bool COMMON_CLK && ARCH_PXA
253	---help---
254	  Support for the Marvell PXA SoC.
255
256config COMMON_CLK_PIC32
257	def_bool COMMON_CLK && MACH_PIC32
258
259config COMMON_CLK_OXNAS
260	bool "Clock driver for the OXNAS SoC Family"
261	depends on ARCH_OXNAS || COMPILE_TEST
262	select MFD_SYSCON
263	---help---
264	  Support for the OXNAS SoC Family clocks.
265
266config COMMON_CLK_VC5
267	tristate "Clock driver for IDT VersaClock 5,6 devices"
268	depends on I2C
269	depends on OF
270	select REGMAP_I2C
271	help
272	---help---
273	  This driver supports the IDT VersaClock 5 and VersaClock 6
274	  programmable clock generators.
275
276config COMMON_CLK_STM32MP157
277	def_bool COMMON_CLK && MACH_STM32MP157
278	help
279	---help---
280	  Support for stm32mp157 SoC family clocks
281
282config COMMON_CLK_STM32F
283	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
284	help
285	---help---
286	  Support for stm32f4 and stm32f7 SoC families clocks
287
288config COMMON_CLK_STM32H7
289	def_bool COMMON_CLK && MACH_STM32H743
290	help
291	---help---
292	  Support for stm32h7 SoC family clocks
293
294config COMMON_CLK_BD718XX
295	tristate "Clock driver for ROHM BD718x7 PMIC"
296	depends on MFD_ROHM_BD718XX
297	help
298	  This driver supports ROHM BD71837 and ROHM BD71847
299	  PMICs clock gates.
300
301config COMMON_CLK_FIXED_MMIO
302	bool "Clock driver for Memory Mapped Fixed values"
303	depends on COMMON_CLK && OF
304	help
305	  Support for Memory Mapped IO Fixed clocks
306
307source "drivers/clk/actions/Kconfig"
308source "drivers/clk/analogbits/Kconfig"
309source "drivers/clk/bcm/Kconfig"
310source "drivers/clk/hisilicon/Kconfig"
311source "drivers/clk/imgtec/Kconfig"
312source "drivers/clk/imx/Kconfig"
313source "drivers/clk/ingenic/Kconfig"
314source "drivers/clk/keystone/Kconfig"
315source "drivers/clk/mediatek/Kconfig"
316source "drivers/clk/meson/Kconfig"
317source "drivers/clk/mvebu/Kconfig"
318source "drivers/clk/qcom/Kconfig"
319source "drivers/clk/renesas/Kconfig"
320source "drivers/clk/samsung/Kconfig"
321source "drivers/clk/sifive/Kconfig"
322source "drivers/clk/sprd/Kconfig"
323source "drivers/clk/sunxi/Kconfig"
324source "drivers/clk/sunxi-ng/Kconfig"
325source "drivers/clk/tegra/Kconfig"
326source "drivers/clk/ti/Kconfig"
327source "drivers/clk/uniphier/Kconfig"
328source "drivers/clk/zynqmp/Kconfig"
329
330endmenu
331