xref: /openbmc/linux/drivers/clk/Kconfig (revision 068ac0db)
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/RK809/RK817/RK818"
57	depends on MFD_RK808
58	---help---
59	  This driver supports RK805, RK809 and RK817, RK808 and RK818 crystal oscillator clock.
60	  These multi-function devices have two fixed-rate oscillators, clocked at 32KHz each.
61	  Clkout1 is always on, Clkout2 can off by control register.
62
63config COMMON_CLK_HI655X
64	tristate "Clock driver for Hi655x" if EXPERT
65	depends on (MFD_HI655X_PMIC || COMPILE_TEST)
66	depends on REGMAP
67	default MFD_HI655X_PMIC
68	---help---
69	  This driver supports the hi655x PMIC clock. This
70	  multi-function device has one fixed-rate oscillator, clocked
71	  at 32KHz.
72
73config COMMON_CLK_SCMI
74	tristate "Clock driver controlled via SCMI interface"
75	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
76	  ---help---
77	  This driver provides support for clocks that are controlled
78	  by firmware that implements the SCMI interface.
79
80	  This driver uses SCMI Message Protocol to interact with the
81	  firmware providing all the clock controls.
82
83config COMMON_CLK_SCPI
84	tristate "Clock driver controlled via SCPI interface"
85	depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
86	  ---help---
87	  This driver provides support for clocks that are controlled
88	  by firmware that implements the SCPI interface.
89
90	  This driver uses SCPI Message Protocol to interact with the
91	  firmware providing all the clock controls.
92
93config COMMON_CLK_SI5341
94	tristate "Clock driver for SiLabs 5341 and 5340 A/B/C/D devices"
95	depends on I2C
96	select REGMAP_I2C
97	help
98	  This driver supports Silicon Labs Si5341 and Si5340 programmable clock
99	  generators. Not all features of these chips are currently supported
100	  by the driver, in particular it only supports XTAL input. The chip can
101	  be pre-programmed to support other configurations and features not yet
102	  implemented in the driver.
103
104config COMMON_CLK_SI5351
105	tristate "Clock driver for SiLabs 5351A/B/C"
106	depends on I2C
107	select REGMAP_I2C
108	select RATIONAL
109	---help---
110	  This driver supports Silicon Labs 5351A/B/C programmable clock
111	  generators.
112
113config COMMON_CLK_SI514
114	tristate "Clock driver for SiLabs 514 devices"
115	depends on I2C
116	depends on OF
117	select REGMAP_I2C
118	help
119	  This driver supports the Silicon Labs 514 programmable clock
120	  generator.
121
122config COMMON_CLK_SI544
123	tristate "Clock driver for SiLabs 544 devices"
124	depends on I2C
125	select REGMAP_I2C
126	help
127	  This driver supports the Silicon Labs 544 programmable clock
128	  generator.
129
130config COMMON_CLK_SI570
131	tristate "Clock driver for SiLabs 570 and compatible devices"
132	depends on I2C
133	depends on OF
134	select REGMAP_I2C
135	help
136	  This driver supports Silicon Labs 570/571/598/599 programmable
137	  clock generators.
138
139config COMMON_CLK_BM1880
140	bool "Clock driver for Bitmain BM1880 SoC"
141	depends on ARCH_BITMAIN || COMPILE_TEST
142	default ARCH_BITMAIN
143	help
144	  This driver supports the clocks on Bitmain BM1880 SoC.
145
146config COMMON_CLK_CDCE706
147	tristate "Clock driver for TI CDCE706 clock synthesizer"
148	depends on I2C
149	select REGMAP_I2C
150	select RATIONAL
151	---help---
152	  This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.
153
154config COMMON_CLK_CDCE925
155	tristate "Clock driver for TI CDCE913/925/937/949 devices"
156	depends on I2C
157	depends on OF
158	select REGMAP_I2C
159	help
160	  This driver supports the TI CDCE913/925/937/949 programmable clock
161	  synthesizer. Each chip has different number of PLLs and outputs.
162	  For example, the CDCE925 contains two PLLs with spread-spectrum
163	  clocking support and five output dividers. The driver only supports
164	  the following setup, and uses a fixed setting for the output muxes.
165	  Y1 is derived from the input clock
166	  Y2 and Y3 derive from PLL1
167	  Y4 and Y5 derive from PLL2
168	  Given a target output frequency, the driver will set the PLL and
169	  divider to best approximate the desired output.
170
171config COMMON_CLK_CS2000_CP
172	tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
173	depends on I2C
174	help
175	  If you say yes here you get support for the CS2000 clock multiplier.
176
177config COMMON_CLK_GEMINI
178	bool "Clock driver for Cortina Systems Gemini SoC"
179	depends on ARCH_GEMINI || COMPILE_TEST
180	select MFD_SYSCON
181	select RESET_CONTROLLER
182	---help---
183	  This driver supports the SoC clocks on the Cortina Systems Gemini
184	  platform, also known as SL3516 or CS3516.
185
186config COMMON_CLK_ASPEED
187	bool "Clock driver for Aspeed BMC SoCs"
188	depends on ARCH_ASPEED || COMPILE_TEST
189	default ARCH_ASPEED
190	select MFD_SYSCON
191	select RESET_CONTROLLER
192	---help---
193	  This driver supports the SoC clocks on the Aspeed BMC platforms.
194
195	  The G4 and G5 series, including the ast2400 and ast2500, are supported
196	  by this driver.
197
198config COMMON_CLK_S2MPS11
199	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
200	depends on MFD_SEC_CORE || COMPILE_TEST
201	---help---
202	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
203	  clock. These multi-function devices have two (S2MPS14) or three
204	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
205
206config CLK_TWL6040
207	tristate "External McPDM functional clock from twl6040"
208	depends on TWL6040_CORE
209	---help---
210	  Enable the external functional clock support on OMAP4+ platforms for
211	  McPDM. McPDM module is using the external bit clock on the McPDM bus
212	  as functional clock.
213
214config COMMON_CLK_AXI_CLKGEN
215	tristate "AXI clkgen driver"
216	depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
217	help
218	  Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
219	  FPGAs. It is commonly used in Analog Devices' reference designs.
220
221config CLK_QORIQ
222	bool "Clock driver for Freescale QorIQ platforms"
223	depends on (PPC_E500MC || ARM || ARM64 || COMPILE_TEST) && OF
224	---help---
225	  This adds the clock driver support for Freescale QorIQ platforms
226	  using common clock framework.
227
228config COMMON_CLK_XGENE
229	bool "Clock driver for APM XGene SoC"
230	default ARCH_XGENE
231	depends on ARM64 || COMPILE_TEST
232	---help---
233	  Sypport for the APM X-Gene SoC reference, PLL, and device clocks.
234
235config COMMON_CLK_LOCHNAGAR
236	tristate "Cirrus Logic Lochnagar clock driver"
237	depends on MFD_LOCHNAGAR
238	help
239	  This driver supports the clocking features of the Cirrus Logic
240	  Lochnagar audio development board.
241
242config COMMON_CLK_NXP
243	def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
244	select REGMAP_MMIO if ARCH_LPC32XX
245	select MFD_SYSCON if ARCH_LPC18XX
246	---help---
247	  Support for clock providers on NXP platforms.
248
249config COMMON_CLK_PALMAS
250	tristate "Clock driver for TI Palmas devices"
251	depends on MFD_PALMAS
252	---help---
253	  This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
254	  using common clock framework.
255
256config COMMON_CLK_PWM
257	tristate "Clock driver for PWMs used as clock outputs"
258	depends on PWM
259	---help---
260	  Adapter driver so that any PWM output can be (mis)used as clock signal
261	  at 50% duty cycle.
262
263config COMMON_CLK_PXA
264	def_bool COMMON_CLK && ARCH_PXA
265	---help---
266	  Support for the Marvell PXA SoC.
267
268config COMMON_CLK_PIC32
269	def_bool COMMON_CLK && MACH_PIC32
270
271config COMMON_CLK_OXNAS
272	bool "Clock driver for the OXNAS SoC Family"
273	depends on ARCH_OXNAS || COMPILE_TEST
274	select MFD_SYSCON
275	---help---
276	  Support for the OXNAS SoC Family clocks.
277
278config COMMON_CLK_VC5
279	tristate "Clock driver for IDT VersaClock 5,6 devices"
280	depends on I2C
281	depends on OF
282	select REGMAP_I2C
283	help
284	  This driver supports the IDT VersaClock 5 and VersaClock 6
285	  programmable clock generators.
286
287config COMMON_CLK_STM32MP157
288	def_bool COMMON_CLK && MACH_STM32MP157
289	help
290	  Support for stm32mp157 SoC family clocks
291
292config COMMON_CLK_STM32F
293	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
294	help
295	  Support for stm32f4 and stm32f7 SoC families clocks
296
297config COMMON_CLK_STM32H7
298	def_bool COMMON_CLK && MACH_STM32H743
299	help
300	  Support for stm32h7 SoC family clocks
301
302config COMMON_CLK_MMP2
303	def_bool COMMON_CLK && (MACH_MMP2_DT || MACH_MMP3_DT)
304	help
305	  Support for Marvell MMP2 and MMP3 SoC clocks
306
307config COMMON_CLK_BD718XX
308	tristate "Clock driver for ROHM BD718x7 PMIC"
309	depends on MFD_ROHM_BD718XX || MFD_ROHM_BD70528
310	help
311	  This driver supports ROHM BD71837, ROHM BD71847 and
312	  ROHM BD70528 PMICs clock gates.
313
314config COMMON_CLK_FIXED_MMIO
315	bool "Clock driver for Memory Mapped Fixed values"
316	depends on COMMON_CLK && OF
317	help
318	  Support for Memory Mapped IO Fixed clocks
319
320source "drivers/clk/actions/Kconfig"
321source "drivers/clk/analogbits/Kconfig"
322source "drivers/clk/bcm/Kconfig"
323source "drivers/clk/hisilicon/Kconfig"
324source "drivers/clk/imgtec/Kconfig"
325source "drivers/clk/imx/Kconfig"
326source "drivers/clk/ingenic/Kconfig"
327source "drivers/clk/keystone/Kconfig"
328source "drivers/clk/mediatek/Kconfig"
329source "drivers/clk/meson/Kconfig"
330source "drivers/clk/mvebu/Kconfig"
331source "drivers/clk/qcom/Kconfig"
332source "drivers/clk/renesas/Kconfig"
333source "drivers/clk/samsung/Kconfig"
334source "drivers/clk/sifive/Kconfig"
335source "drivers/clk/sprd/Kconfig"
336source "drivers/clk/sunxi/Kconfig"
337source "drivers/clk/sunxi-ng/Kconfig"
338source "drivers/clk/tegra/Kconfig"
339source "drivers/clk/ti/Kconfig"
340source "drivers/clk/uniphier/Kconfig"
341source "drivers/clk/zynqmp/Kconfig"
342
343endmenu
344