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