xref: /openbmc/linux/drivers/clk/Kconfig (revision 7a6ee0bb)
1# SPDX-License-Identifier: GPL-2.0
2
3config HAVE_CLK
4	bool
5	help
6	  The <linux/clk.h> calls support software clock gating and
7	  thus are a key power management tool on many systems.
8
9config HAVE_CLK_PREPARE
10	bool
11
12config HAVE_LEGACY_CLK # TODO: Remove once all legacy users are migrated
13	bool
14	select HAVE_CLK
15	help
16	  Select this option when the clock API in <linux/clk.h> is implemented
17	  by platform/architecture code. This method is deprecated. Modern
18	  code should select COMMON_CLK instead and not define a custom
19	  'struct clk'.
20
21menuconfig COMMON_CLK
22	bool "Common Clock Framework"
23	depends on !HAVE_LEGACY_CLK
24	select HAVE_CLK_PREPARE
25	select HAVE_CLK
26	select SRCU
27	select RATIONAL
28	help
29	  The common clock framework is a single definition of struct
30	  clk, useful across many platforms, as well as an
31	  implementation of the clock API in include/linux/clk.h.
32	  Architectures utilizing the common struct clk should select
33	  this option.
34
35if COMMON_CLK
36
37config COMMON_CLK_WM831X
38	tristate "Clock driver for WM831x/2x PMICs"
39	depends on MFD_WM831X
40	help
41	  Supports the clocking subsystem of the WM831x/2x series of
42	  PMICs from Wolfson Microelectronics.
43
44source "drivers/clk/versatile/Kconfig"
45
46config CLK_HSDK
47	bool "PLL Driver for HSDK platform"
48	depends on ARC_SOC_HSDK || COMPILE_TEST
49	depends on HAS_IOMEM
50	help
51	  This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
52	  control.
53
54config LMK04832
55	tristate "Ti LMK04832 JESD204B Compliant Clock Jitter Cleaner"
56	depends on SPI
57	select REGMAP_SPI
58	help
59	  Say yes here to build support for Texas Instruments' LMK04832 Ultra
60	  Low-Noise JESD204B Compliant Clock Jitter Cleaner With Dual Loop PLLs
61
62config COMMON_CLK_MAX77686
63	tristate "Clock driver for Maxim 77620/77686/77802 MFD"
64	depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST
65	help
66	  This driver supports Maxim 77620/77686/77802 crystal oscillator
67	  clock.
68
69config COMMON_CLK_MAX9485
70	tristate "Maxim 9485 Programmable Clock Generator"
71	depends on I2C
72	help
73	  This driver supports Maxim 9485 Programmable Audio Clock Generator
74
75config COMMON_CLK_RK808
76	tristate "Clock driver for RK805/RK808/RK809/RK817/RK818"
77	depends on MFD_RK808
78	help
79	  This driver supports RK805, RK809 and RK817, RK808 and RK818 crystal oscillator clock.
80	  These multi-function devices have two fixed-rate oscillators, clocked at 32KHz each.
81	  Clkout1 is always on, Clkout2 can off by control register.
82
83config COMMON_CLK_HI655X
84	tristate "Clock driver for Hi655x" if EXPERT
85	depends on (MFD_HI655X_PMIC || COMPILE_TEST)
86	depends on REGMAP
87	default MFD_HI655X_PMIC
88	help
89	  This driver supports the hi655x PMIC clock. This
90	  multi-function device has one fixed-rate oscillator, clocked
91	  at 32KHz.
92
93config COMMON_CLK_SCMI
94	tristate "Clock driver controlled via SCMI interface"
95	depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
96	help
97	  This driver provides support for clocks that are controlled
98	  by firmware that implements the SCMI interface.
99
100	  This driver uses SCMI Message Protocol to interact with the
101	  firmware providing all the clock controls.
102
103config COMMON_CLK_SCPI
104	tristate "Clock driver controlled via SCPI interface"
105	depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
106	help
107	  This driver provides support for clocks that are controlled
108	  by firmware that implements the SCPI interface.
109
110	  This driver uses SCPI Message Protocol to interact with the
111	  firmware providing all the clock controls.
112
113config COMMON_CLK_SI5341
114	tristate "Clock driver for SiLabs 5341 and 5340 A/B/C/D devices"
115	depends on I2C
116	select REGMAP_I2C
117	help
118	  This driver supports Silicon Labs Si5341 and Si5340 programmable clock
119	  generators. Not all features of these chips are currently supported
120	  by the driver, in particular it only supports XTAL input. The chip can
121	  be pre-programmed to support other configurations and features not yet
122	  implemented in the driver.
123
124config COMMON_CLK_SI5351
125	tristate "Clock driver for SiLabs 5351A/B/C"
126	depends on I2C
127	select REGMAP_I2C
128	help
129	  This driver supports Silicon Labs 5351A/B/C programmable clock
130	  generators.
131
132config COMMON_CLK_SI514
133	tristate "Clock driver for SiLabs 514 devices"
134	depends on I2C
135	depends on OF
136	select REGMAP_I2C
137	help
138	  This driver supports the Silicon Labs 514 programmable clock
139	  generator.
140
141config COMMON_CLK_SI544
142	tristate "Clock driver for SiLabs 544 devices"
143	depends on I2C
144	select REGMAP_I2C
145	help
146	  This driver supports the Silicon Labs 544 programmable clock
147	  generator.
148
149config COMMON_CLK_SI570
150	tristate "Clock driver for SiLabs 570 and compatible devices"
151	depends on I2C
152	depends on OF
153	select REGMAP_I2C
154	help
155	  This driver supports Silicon Labs 570/571/598/599 programmable
156	  clock generators.
157
158config COMMON_CLK_BM1880
159	bool "Clock driver for Bitmain BM1880 SoC"
160	depends on ARCH_BITMAIN || COMPILE_TEST
161	default ARCH_BITMAIN
162	help
163	  This driver supports the clocks on Bitmain BM1880 SoC.
164
165config COMMON_CLK_CDCE706
166	tristate "Clock driver for TI CDCE706 clock synthesizer"
167	depends on I2C
168	select REGMAP_I2C
169	help
170	  This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.
171
172config COMMON_CLK_TPS68470
173	tristate "Clock Driver for TI TPS68470 PMIC"
174	depends on I2C
175	depends on INTEL_SKL_INT3472 || COMPILE_TEST
176	select REGMAP_I2C
177	help
178	  This driver supports the clocks provided by the TPS68470 PMIC.
179
180config COMMON_CLK_CDCE925
181	tristate "Clock driver for TI CDCE913/925/937/949 devices"
182	depends on I2C
183	depends on OF
184	select REGMAP_I2C
185	help
186	  This driver supports the TI CDCE913/925/937/949 programmable clock
187	  synthesizer. Each chip has different number of PLLs and outputs.
188	  For example, the CDCE925 contains two PLLs with spread-spectrum
189	  clocking support and five output dividers. The driver only supports
190	  the following setup, and uses a fixed setting for the output muxes.
191	  Y1 is derived from the input clock
192	  Y2 and Y3 derive from PLL1
193	  Y4 and Y5 derive from PLL2
194	  Given a target output frequency, the driver will set the PLL and
195	  divider to best approximate the desired output.
196
197config COMMON_CLK_CS2000_CP
198	tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
199	depends on I2C
200	help
201	  If you say yes here you get support for the CS2000 clock multiplier.
202
203config COMMON_CLK_FSL_FLEXSPI
204	tristate "Clock driver for FlexSPI on Layerscape SoCs"
205	depends on ARCH_LAYERSCAPE || COMPILE_TEST
206	default ARCH_LAYERSCAPE && SPI_NXP_FLEXSPI
207	help
208	  On Layerscape SoCs there is a special clock for the FlexSPI
209	  interface.
210
211config COMMON_CLK_FSL_SAI
212	bool "Clock driver for BCLK of Freescale SAI cores"
213	depends on ARCH_LAYERSCAPE || COMPILE_TEST
214	help
215	  This driver supports the Freescale SAI (Synchronous Audio Interface)
216	  to be used as a generic clock output. Some SoCs have restrictions
217	  regarding the possible pin multiplexer settings. Eg. on some SoCs
218	  two SAI interfaces can only be enabled together. If just one is
219	  needed, the BCLK pin of the second one can be used as general
220	  purpose clock output. Ideally, it can be used to drive an audio
221	  codec (sometimes known as MCLK).
222
223config COMMON_CLK_GEMINI
224	bool "Clock driver for Cortina Systems Gemini SoC"
225	depends on ARCH_GEMINI || COMPILE_TEST
226	select MFD_SYSCON
227	select RESET_CONTROLLER
228	help
229	  This driver supports the SoC clocks on the Cortina Systems Gemini
230	  platform, also known as SL3516 or CS3516.
231
232config COMMON_CLK_LAN966X
233	bool "Generic Clock Controller driver for LAN966X SoC"
234	depends on HAS_IOMEM
235	depends on OF
236	help
237	  This driver provides support for Generic Clock Controller(GCK) on
238	  LAN966X SoC. GCK generates and supplies clock to various peripherals
239	  within the SoC.
240
241config COMMON_CLK_ASPEED
242	bool "Clock driver for Aspeed BMC SoCs"
243	depends on ARCH_ASPEED || COMPILE_TEST
244	default ARCH_ASPEED
245	select MFD_SYSCON
246	select RESET_CONTROLLER
247	help
248	  This driver supports the SoC clocks on the Aspeed BMC platforms.
249
250	  The G4 and G5 series, including the ast2400 and ast2500, are supported
251	  by this driver.
252
253config COMMON_CLK_S2MPS11
254	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
255	depends on MFD_SEC_CORE || COMPILE_TEST
256	help
257	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
258	  clock. These multi-function devices have two (S2MPS14) or three
259	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
260
261config CLK_TWL6040
262	tristate "External McPDM functional clock from twl6040"
263	depends on TWL6040_CORE
264	help
265	  Enable the external functional clock support on OMAP4+ platforms for
266	  McPDM. McPDM module is using the external bit clock on the McPDM bus
267	  as functional clock.
268
269config COMMON_CLK_AXI_CLKGEN
270	tristate "AXI clkgen driver"
271	depends on HAS_IOMEM || COMPILE_TEST
272	depends on OF
273	help
274	  Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
275	  FPGAs. It is commonly used in Analog Devices' reference designs.
276
277config CLK_QORIQ
278	bool "Clock driver for Freescale QorIQ platforms"
279	depends on OF
280	depends on PPC_E500MC || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST
281	help
282	  This adds the clock driver support for Freescale QorIQ platforms
283	  using common clock framework.
284
285config CLK_LS1028A_PLLDIG
286        tristate "Clock driver for LS1028A Display output"
287        depends on ARCH_LAYERSCAPE || COMPILE_TEST
288        default ARCH_LAYERSCAPE
289        help
290          This driver support the Display output interfaces(LCD, DPHY) pixel clocks
291          of the QorIQ Layerscape LS1028A, as implemented TSMC CLN28HPM PLL. Not all
292          features of the PLL are currently supported by the driver. By default,
293          configured bypass mode with this PLL.
294
295config COMMON_CLK_XGENE
296	bool "Clock driver for APM XGene SoC"
297	default ARCH_XGENE
298	depends on ARM64 || COMPILE_TEST
299	help
300	  Support for the APM X-Gene SoC reference, PLL, and device clocks.
301
302config COMMON_CLK_LOCHNAGAR
303	tristate "Cirrus Logic Lochnagar clock driver"
304	depends on MFD_LOCHNAGAR
305	help
306	  This driver supports the clocking features of the Cirrus Logic
307	  Lochnagar audio development board.
308
309config COMMON_CLK_NXP
310	def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
311	select REGMAP_MMIO if ARCH_LPC32XX
312	select MFD_SYSCON if ARCH_LPC18XX
313	help
314	  Support for clock providers on NXP platforms.
315
316config COMMON_CLK_PALMAS
317	tristate "Clock driver for TI Palmas devices"
318	depends on MFD_PALMAS
319	help
320	  This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
321	  using common clock framework.
322
323config COMMON_CLK_PWM
324	tristate "Clock driver for PWMs used as clock outputs"
325	depends on PWM
326	help
327	  Adapter driver so that any PWM output can be (mis)used as clock signal
328	  at 50% duty cycle.
329
330config COMMON_CLK_PXA
331	def_bool COMMON_CLK && ARCH_PXA
332	help
333	  Support for the Marvell PXA SoC.
334
335config COMMON_CLK_PIC32
336	def_bool COMMON_CLK && MACH_PIC32
337
338config COMMON_CLK_OXNAS
339	bool "Clock driver for the OXNAS SoC Family"
340	depends on ARCH_OXNAS || COMPILE_TEST
341	select MFD_SYSCON
342	help
343	  Support for the OXNAS SoC Family clocks.
344
345config COMMON_CLK_VC5
346	tristate "Clock driver for IDT VersaClock 5,6 devices"
347	depends on I2C
348	depends on OF
349	select REGMAP_I2C
350	help
351	  This driver supports the IDT VersaClock 5 and VersaClock 6
352	  programmable clock generators.
353
354config COMMON_CLK_STM32MP157
355	def_bool COMMON_CLK && MACH_STM32MP157
356	help
357	  Support for stm32mp157 SoC family clocks
358
359config COMMON_CLK_STM32F
360	def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
361	help
362	  Support for stm32f4 and stm32f7 SoC families clocks
363
364config COMMON_CLK_STM32H7
365	def_bool COMMON_CLK && MACH_STM32H743
366	help
367	  Support for stm32h7 SoC family clocks
368
369config COMMON_CLK_MMP2
370	def_bool COMMON_CLK && (MACH_MMP2_DT || MACH_MMP3_DT)
371	help
372	  Support for Marvell MMP2 and MMP3 SoC clocks
373
374config COMMON_CLK_MMP2_AUDIO
375        tristate "Clock driver for MMP2 Audio subsystem"
376        depends on COMMON_CLK_MMP2 || COMPILE_TEST
377        help
378          This driver supports clocks for Audio subsystem on MMP2 SoC.
379
380config COMMON_CLK_BD718XX
381	tristate "Clock driver for 32K clk gates on ROHM PMICs"
382	depends on MFD_ROHM_BD718XX || MFD_ROHM_BD71828
383	help
384	  This driver supports ROHM BD71837, BD71847, BD71850, BD71815
385	  and BD71828 PMICs clock gates.
386
387config COMMON_CLK_FIXED_MMIO
388	bool "Clock driver for Memory Mapped Fixed values"
389	depends on COMMON_CLK && OF
390	help
391	  Support for Memory Mapped IO Fixed clocks
392
393config COMMON_CLK_K210
394	bool "Clock driver for the Canaan Kendryte K210 SoC"
395	depends on OF && RISCV && SOC_CANAAN
396	default SOC_CANAAN
397	help
398	  Support for the Canaan Kendryte K210 RISC-V SoC clocks.
399
400source "drivers/clk/actions/Kconfig"
401source "drivers/clk/analogbits/Kconfig"
402source "drivers/clk/baikal-t1/Kconfig"
403source "drivers/clk/bcm/Kconfig"
404source "drivers/clk/hisilicon/Kconfig"
405source "drivers/clk/imgtec/Kconfig"
406source "drivers/clk/imx/Kconfig"
407source "drivers/clk/ingenic/Kconfig"
408source "drivers/clk/keystone/Kconfig"
409source "drivers/clk/mediatek/Kconfig"
410source "drivers/clk/meson/Kconfig"
411source "drivers/clk/mstar/Kconfig"
412source "drivers/clk/mvebu/Kconfig"
413source "drivers/clk/pistachio/Kconfig"
414source "drivers/clk/qcom/Kconfig"
415source "drivers/clk/ralink/Kconfig"
416source "drivers/clk/renesas/Kconfig"
417source "drivers/clk/rockchip/Kconfig"
418source "drivers/clk/samsung/Kconfig"
419source "drivers/clk/sifive/Kconfig"
420source "drivers/clk/socfpga/Kconfig"
421source "drivers/clk/sprd/Kconfig"
422source "drivers/clk/starfive/Kconfig"
423source "drivers/clk/sunxi/Kconfig"
424source "drivers/clk/sunxi-ng/Kconfig"
425source "drivers/clk/tegra/Kconfig"
426source "drivers/clk/ti/Kconfig"
427source "drivers/clk/uniphier/Kconfig"
428source "drivers/clk/visconti/Kconfig"
429source "drivers/clk/x86/Kconfig"
430source "drivers/clk/xilinx/Kconfig"
431source "drivers/clk/zynqmp/Kconfig"
432
433endif
434