Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux-2.6-block.git] / drivers / clk / Kconfig
CommitLineData
7b9487a9 1# SPDX-License-Identifier: GPL-2.0
6d803ba7 2
bc8c945e
SB
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
6d803ba7
JCPV
9config CLKDEV_LOOKUP
10 bool
11 select HAVE_CLK
aa3831cf 12
5c77f560
SG
13config HAVE_CLK_PREPARE
14 bool
15
bbd7ffdb 16config HAVE_LEGACY_CLK # TODO: Remove once all legacy users are migrated
8fb61e33 17 bool
bbd7ffdb
SB
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
b2476490 28 select HAVE_CLK_PREPARE
01033be1 29 select CLKDEV_LOOKUP
83fe27ea 30 select SRCU
0777591e 31 select RATIONAL
a7f7f624 32 help
b2476490
MT
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
8fb61e33 37 this option.
b2476490 38
bbd7ffdb 39if COMMON_CLK
b2476490 40
f05259a6
MB
41config COMMON_CLK_WM831X
42 tristate "Clock driver for WM831x/2x PMICs"
43 depends on MFD_WM831X
a7f7f624 44 help
333d2d19 45 Supports the clocking subsystem of the WM831x/2x series of
fe4e4372 46 PMICs from Wolfson Microelectronics.
f05259a6 47
5ee2b877 48source "drivers/clk/versatile/Kconfig"
f9a6aa43 49
daeeb438
EP
50config CLK_HSDK
51 bool "PLL Driver for HSDK platform"
f6bade68 52 depends on ARC_SOC_HSDK || COMPILE_TEST
bd8548d0 53 depends on HAS_IOMEM
a7f7f624 54 help
daeeb438
EP
55 This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
56 control.
57
73118e61 58config COMMON_CLK_MAX77686
5a227cd1 59 tristate "Clock driver for Maxim 77620/77686/77802 MFD"
9c1b305c 60 depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST
a7f7f624 61 help
5a227cd1
LD
62 This driver supports Maxim 77620/77686/77802 crystal oscillator
63 clock.
83ccf16c 64
33f51046
DM
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
038b892a 71config COMMON_CLK_RK808
8ed14401 72 tristate "Clock driver for RK805/RK808/RK809/RK817/RK818"
038b892a 73 depends on MFD_RK808
a7f7f624 74 help
8ed14401
TX
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.
038b892a 78
b68adc23 79config COMMON_CLK_HI655X
3a49afb8
RV
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
a7f7f624 84 help
b68adc23
DL
85 This driver supports the hi655x PMIC clock. This
86 multi-function device has one fixed-rate oscillator, clocked
87 at 32KHz.
88
6d6a1d82
SH
89config COMMON_CLK_SCMI
90 tristate "Clock driver controlled via SCMI interface"
91 depends on ARM_SCMI_PROTOCOL || COMPILE_TEST
a7f7f624 92 help
6d6a1d82
SH
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
cd52c2a4
SH
99config COMMON_CLK_SCPI
100 tristate "Clock driver controlled via SCPI interface"
101 depends on ARM_SCPI_PROTOCOL || COMPILE_TEST
a7f7f624 102 help
cd52c2a4
SH
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
3044a860
ML
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
9abd5f05
SH
120config COMMON_CLK_SI5351
121 tristate "Clock driver for SiLabs 5351A/B/C"
122 depends on I2C
123 select REGMAP_I2C
a7f7f624 124 help
9abd5f05
SH
125 This driver supports Silicon Labs 5351A/B/C programmable clock
126 generators.
127
8ce20e66
ML
128config COMMON_CLK_SI514
129 tristate "Clock driver for SiLabs 514 devices"
130 depends on I2C
131 depends on OF
132 select REGMAP_I2C
133 help
8ce20e66
ML
134 This driver supports the Silicon Labs 514 programmable clock
135 generator.
136
953cc3e8
ML
137config COMMON_CLK_SI544
138 tristate "Clock driver for SiLabs 544 devices"
139 depends on I2C
140 select REGMAP_I2C
141 help
953cc3e8
ML
142 This driver supports the Silicon Labs 544 programmable clock
143 generator.
8ce20e66 144
1459c837
SB
145config COMMON_CLK_SI570
146 tristate "Clock driver for SiLabs 570 and compatible devices"
147 depends on I2C
148 depends on OF
149 select REGMAP_I2C
150 help
1459c837
SB
151 This driver supports Silicon Labs 570/571/598/599 programmable
152 clock generators.
153
1ab4601d
MS
154config COMMON_CLK_BM1880
155 bool "Clock driver for Bitmain BM1880 SoC"
156 depends on ARCH_BITMAIN || COMPILE_TEST
157 default ARCH_BITMAIN
158 help
159 This driver supports the clocks on Bitmain BM1880 SoC.
160
c7d5a46b
ML
161config COMMON_CLK_CDCE706
162 tristate "Clock driver for TI CDCE706 clock synthesizer"
163 depends on I2C
164 select REGMAP_I2C
a7f7f624 165 help
c7d5a46b
ML
166 This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.
167
19fbbbbc 168config COMMON_CLK_CDCE925
5508124c 169 tristate "Clock driver for TI CDCE913/925/937/949 devices"
19fbbbbc
ML
170 depends on I2C
171 depends on OF
172 select REGMAP_I2C
173 help
5508124c
AM
174 This driver supports the TI CDCE913/925/937/949 programmable clock
175 synthesizer. Each chip has different number of PLLs and outputs.
176 For example, the CDCE925 contains two PLLs with spread-spectrum
177 clocking support and five output dividers. The driver only supports
178 the following setup, and uses a fixed setting for the output muxes.
19fbbbbc
ML
179 Y1 is derived from the input clock
180 Y2 and Y3 derive from PLL1
181 Y4 and Y5 derive from PLL2
182 Given a target output frequency, the driver will set the PLL and
183 divider to best approximate the desired output.
184
64dfbe24
KM
185config COMMON_CLK_CS2000_CP
186 tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
187 depends on I2C
188 help
189 If you say yes here you get support for the CS2000 clock multiplier.
190
fcf77be8
MW
191config COMMON_CLK_FSL_FLEXSPI
192 tristate "Clock driver for FlexSPI on Layerscape SoCs"
193 depends on ARCH_LAYERSCAPE || COMPILE_TEST
194 default ARCH_LAYERSCAPE && SPI_NXP_FLEXSPI
195 help
196 On Layerscape SoCs there is a special clock for the FlexSPI
197 interface.
198
9cd10205
MW
199config COMMON_CLK_FSL_SAI
200 bool "Clock driver for BCLK of Freescale SAI cores"
201 depends on ARCH_LAYERSCAPE || COMPILE_TEST
202 help
203 This driver supports the Freescale SAI (Synchronous Audio Interface)
204 to be used as a generic clock output. Some SoCs have restrictions
205 regarding the possible pin multiplexer settings. Eg. on some SoCs
206 two SAI interfaces can only be enabled together. If just one is
207 needed, the BCLK pin of the second one can be used as general
208 purpose clock output. Ideally, it can be used to drive an audio
209 codec (sometimes known as MCLK).
210
846423f9
LW
211config COMMON_CLK_GEMINI
212 bool "Clock driver for Cortina Systems Gemini SoC"
213 depends on ARCH_GEMINI || COMPILE_TEST
214 select MFD_SYSCON
215 select RESET_CONTROLLER
a7f7f624 216 help
846423f9
LW
217 This driver supports the SoC clocks on the Cortina Systems Gemini
218 platform, also known as SL3516 or CS3516.
219
5eda5d79
JS
220config COMMON_CLK_ASPEED
221 bool "Clock driver for Aspeed BMC SoCs"
222 depends on ARCH_ASPEED || COMPILE_TEST
223 default ARCH_ASPEED
224 select MFD_SYSCON
225 select RESET_CONTROLLER
a7f7f624 226 help
5eda5d79
JS
227 This driver supports the SoC clocks on the Aspeed BMC platforms.
228
229 The G4 and G5 series, including the ast2400 and ast2500, are supported
230 by this driver.
231
7cc560de 232config COMMON_CLK_S2MPS11
e8b60a45 233 tristate "Clock driver for S2MPS1X/S5M8767 MFD"
9c1b305c 234 depends on MFD_SEC_CORE || COMPILE_TEST
a7f7f624 235 help
e8b60a45
KK
236 This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
237 clock. These multi-function devices have two (S2MPS14) or three
238 (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
7cc560de 239
f9f8c043
PU
240config CLK_TWL6040
241 tristate "External McPDM functional clock from twl6040"
242 depends on TWL6040_CORE
a7f7f624 243 help
f9f8c043
PU
244 Enable the external functional clock support on OMAP4+ platforms for
245 McPDM. McPDM module is using the external bit clock on the McPDM bus
246 as functional clock.
247
0e646c52
LPC
248config COMMON_CLK_AXI_CLKGEN
249 tristate "AXI clkgen driver"
324a8105
AA
250 depends on HAS_IOMEM || COMPILE_TEST
251 depends on OF
0e646c52 252 help
0e646c52
LPC
253 Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
254 FPGAs. It is commonly used in Analog Devices' reference designs.
255
93a17c05
TY
256config CLK_QORIQ
257 bool "Clock driver for Freescale QorIQ platforms"
b8bcece8
GU
258 depends on OF
259 depends on PPC_E500MC || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST
a7f7f624 260 help
93a17c05
TY
261 This adds the clock driver support for Freescale QorIQ platforms
262 using common clock framework.
555eae97 263
d37010a3
WH
264config CLK_LS1028A_PLLDIG
265 tristate "Clock driver for LS1028A Display output"
266 depends on ARCH_LAYERSCAPE || COMPILE_TEST
267 default ARCH_LAYERSCAPE
268 help
269 This driver support the Display output interfaces(LCD, DPHY) pixel clocks
270 of the QorIQ Layerscape LS1028A, as implemented TSMC CLN28HPM PLL. Not all
271 features of the PLL are currently supported by the driver. By default,
272 configured bypass mode with this PLL.
273
308964ca
LH
274config COMMON_CLK_XGENE
275 bool "Clock driver for APM XGene SoC"
ce9a1046 276 default ARCH_XGENE
4a7748c3 277 depends on ARM64 || COMPILE_TEST
a7f7f624 278 help
4fe02fef 279 Support for the APM X-Gene SoC reference, PLL, and device clocks.
308964ca 280
76c54783
CK
281config COMMON_CLK_LOCHNAGAR
282 tristate "Cirrus Logic Lochnagar clock driver"
283 depends on MFD_LOCHNAGAR
284 help
285 This driver supports the clocking features of the Cirrus Logic
286 Lochnagar audio development board.
287
f7c82a60
VZ
288config COMMON_CLK_NXP
289 def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
290 select REGMAP_MMIO if ARCH_LPC32XX
72ad679a 291 select MFD_SYSCON if ARCH_LPC18XX
a7f7f624 292 help
f7c82a60
VZ
293 Support for clock providers on NXP platforms.
294
942d1d67
PU
295config COMMON_CLK_PALMAS
296 tristate "Clock driver for TI Palmas devices"
297 depends on MFD_PALMAS
a7f7f624 298 help
942d1d67
PU
299 This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
300 using common clock framework.
301
9a74ccdb
PZ
302config COMMON_CLK_PWM
303 tristate "Clock driver for PWMs used as clock outputs"
304 depends on PWM
a7f7f624 305 help
9a74ccdb
PZ
306 Adapter driver so that any PWM output can be (mis)used as clock signal
307 at 50% duty cycle.
308
98d147f5
RJ
309config COMMON_CLK_PXA
310 def_bool COMMON_CLK && ARCH_PXA
a7f7f624 311 help
048c58b4 312 Support for the Marvell PXA SoC.
98d147f5 313
ce6e1188
PCM
314config COMMON_CLK_PIC32
315 def_bool COMMON_CLK && MACH_PIC32
316
0bbd72b4
NA
317config COMMON_CLK_OXNAS
318 bool "Clock driver for the OXNAS SoC Family"
821f9946 319 depends on ARCH_OXNAS || COMPILE_TEST
0bbd72b4 320 select MFD_SYSCON
a7f7f624 321 help
0bbd72b4
NA
322 Support for the OXNAS SoC Family clocks.
323
3e1aec4e 324config COMMON_CLK_VC5
dbf6b16f 325 tristate "Clock driver for IDT VersaClock 5,6 devices"
3e1aec4e
MV
326 depends on I2C
327 depends on OF
328 select REGMAP_I2C
329 help
dbf6b16f
MV
330 This driver supports the IDT VersaClock 5 and VersaClock 6
331 programmable clock generators.
3e1aec4e 332
9bee94e7
GF
333config COMMON_CLK_STM32MP157
334 def_bool COMMON_CLK && MACH_STM32MP157
335 help
9bee94e7
GF
336 Support for stm32mp157 SoC family clocks
337
da32d353 338config COMMON_CLK_STM32F
9a160601 339 def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
da32d353 340 help
da32d353
BG
341 Support for stm32f4 and stm32f7 SoC families clocks
342
343config COMMON_CLK_STM32H7
9a160601 344 def_bool COMMON_CLK && MACH_STM32H743
da32d353 345 help
da32d353
BG
346 Support for stm32h7 SoC family clocks
347
a9372a5f
LR
348config COMMON_CLK_MMP2
349 def_bool COMMON_CLK && (MACH_MMP2_DT || MACH_MMP3_DT)
350 help
351 Support for Marvell MMP2 and MMP3 SoC clocks
352
725262d2
LR
353config COMMON_CLK_MMP2_AUDIO
354 tristate "Clock driver for MMP2 Audio subsystem"
355 depends on COMMON_CLK_MMP2 || COMPILE_TEST
356 help
357 This driver supports clocks for Audio subsystem on MMP2 SoC.
358
2e62246b 359config COMMON_CLK_BD718XX
ae866dec
MV
360 tristate "Clock driver for 32K clk gates on ROHM PMICs"
361 depends on MFD_ROHM_BD718XX || MFD_ROHM_BD70528 || MFD_ROHM_BD71828
2e62246b 362 help
ae866dec 363 This driver supports ROHM BD71837, ROHM BD71847, ROHM BD71828 and
0dae7f58 364 ROHM BD70528 PMICs clock gates.
2e62246b 365
50cc4caf
JK
366config COMMON_CLK_FIXED_MMIO
367 bool "Clock driver for Memory Mapped Fixed values"
368 depends on COMMON_CLK && OF
369 help
370 Support for Memory Mapped IO Fixed clocks
371
c6ca7616
DLM
372config COMMON_CLK_K210
373 bool "Clock driver for the Canaan Kendryte K210 SoC"
374 depends on OF && RISCV && SOC_CANAAN
375 default SOC_CANAAN
376 help
377 Support for the Canaan Kendryte K210 RISC-V SoC clocks.
378
3495e295 379source "drivers/clk/actions/Kconfig"
7b9487a9 380source "drivers/clk/analogbits/Kconfig"
b7d950b9 381source "drivers/clk/baikal-t1/Kconfig"
64a12c56 382source "drivers/clk/bcm/Kconfig"
72ea4861 383source "drivers/clk/hisilicon/Kconfig"
6b0fd6c1 384source "drivers/clk/imgtec/Kconfig"
3a48d918 385source "drivers/clk/imx/Kconfig"
0880fb86 386source "drivers/clk/ingenic/Kconfig"
b745c079 387source "drivers/clk/keystone/Kconfig"
2886c846 388source "drivers/clk/mediatek/Kconfig"
cb7c47d7 389source "drivers/clk/meson/Kconfig"
bef7a78d 390source "drivers/clk/mstar/Kconfig"
97fa4cf4 391source "drivers/clk/mvebu/Kconfig"
b9e65ebc 392source "drivers/clk/qcom/Kconfig"
a5bd7f7a 393source "drivers/clk/renesas/Kconfig"
4d98ed1e 394source "drivers/clk/rockchip/Kconfig"
4ce9b85e 395source "drivers/clk/samsung/Kconfig"
30b8e27e 396source "drivers/clk/sifive/Kconfig"
d41f59fd 397source "drivers/clk/sprd/Kconfig"
49c726d5 398source "drivers/clk/sunxi/Kconfig"
1d80c142 399source "drivers/clk/sunxi-ng/Kconfig"
31b52ba4 400source "drivers/clk/tegra/Kconfig"
21330497 401source "drivers/clk/ti/Kconfig"
734d82f4 402source "drivers/clk/uniphier/Kconfig"
d058fd9e 403source "drivers/clk/x86/Kconfig"
a2fe7baa 404source "drivers/clk/xilinx/Kconfig"
3fde0e16 405source "drivers/clk/zynqmp/Kconfig"
b9e65ebc 406
bbd7ffdb 407endif