blob: dc920daa6dbb217ecd61b880e646dec81103db6c [file] [log] [blame]
Paul Walmsley7b9487a2019-04-30 13:50:58 -07001# SPDX-License-Identifier: GPL-2.0
Jean-Christop PLAGNIOL-VILLARD6d803ba2010-11-17 10:04:33 +01002
3config CLKDEV_LOOKUP
4 bool
5 select HAVE_CLK
Kyungmin Parkaa3831c2011-07-18 16:34:54 +09006
Shawn Guo5c77f562011-12-20 14:46:38 +08007config HAVE_CLK_PREPARE
8 bool
9
Arnd Bergmann8fb61e32012-03-17 21:10:51 +000010config COMMON_CLK
11 bool
Mike Turquetteb24764902012-03-15 23:11:19 -070012 select HAVE_CLK_PREPARE
Rob Herring01033be2012-04-09 15:24:58 -050013 select CLKDEV_LOOKUP
Pranith Kumar83fe27e2014-12-05 11:24:45 -050014 select SRCU
Andy Shevchenko07775912015-09-22 18:54:11 +030015 select RATIONAL
Mike Turquetteb24764902012-03-15 23:11:19 -070016 ---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
Arnd Bergmann8fb61e32012-03-17 21:10:51 +000021 this option.
Mike Turquetteb24764902012-03-15 23:11:19 -070022
Arnd Bergmann8fb61e32012-03-17 21:10:51 +000023menu "Common Clock Framework"
24 depends on COMMON_CLK
Mike Turquetteb24764902012-03-15 23:11:19 -070025
Mark Brownf05259a2012-05-17 10:04:57 +010026config 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
Masanari Iidafe4e4372014-10-17 00:09:24 +090031 PMICs from Wolfson Microelectronics.
Mark Brownf05259a2012-05-17 10:04:57 +010032
Pawel Moll5ee2b872013-09-17 17:16:15 +010033source "drivers/clk/versatile/Kconfig"
Linus Walleijf9a6aa42012-08-06 18:32:08 +020034
Eugeniy Paltsevdaeeb432017-08-25 20:39:14 +030035config 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
Jonghwa Lee73118e62012-08-28 17:54:28 +090042config COMMON_CLK_MAX77686
Laxman Dewangan5a227cd2016-06-17 16:21:07 +053043 tristate "Clock driver for Maxim 77620/77686/77802 MFD"
Krzysztof Kozlowski9c1b3052016-10-02 22:58:14 +020044 depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST
Jonghwa Lee73118e62012-08-28 17:54:28 +090045 ---help---
Laxman Dewangan5a227cd2016-06-17 16:21:07 +053046 This driver supports Maxim 77620/77686/77802 crystal oscillator
47 clock.
Javier Martinez Canillas83ccf162014-08-18 10:33:03 +020048
Daniel Mack33f51042018-07-06 20:53:03 +020049config 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
Chris Zhong038b8922014-10-13 15:52:44 -070055config COMMON_CLK_RK808
Tony Xie8ed144012019-06-21 06:34:55 -040056 tristate "Clock driver for RK805/RK808/RK809/RK817/RK818"
Chris Zhong038b8922014-10-13 15:52:44 -070057 depends on MFD_RK808
58 ---help---
Tony Xie8ed144012019-06-21 06:34:55 -040059 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.
Chris Zhong038b8922014-10-13 15:52:44 -070062
Daniel Lezcanob68adc22017-04-17 19:19:25 +020063config COMMON_CLK_HI655X
Riku Voipio3a49afb2018-03-12 12:49:45 +020064 tristate "Clock driver for Hi655x" if EXPERT
65 depends on (MFD_HI655X_PMIC || COMPILE_TEST)
66 depends on REGMAP
67 default MFD_HI655X_PMIC
Daniel Lezcanob68adc22017-04-17 19:19:25 +020068 ---help---
69 This driver supports the hi655x PMIC clock. This
70 multi-function device has one fixed-rate oscillator, clocked
71 at 32KHz.
72
Sudeep Holla6d6a1d82017-06-13 17:19:36 +010073config 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
Sudeep Hollacd52c2a2015-03-30 10:59:52 +010083config 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
Mike Looijmans3044a862019-05-17 15:23:52 +020093config 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
Sebastian Hesselbarth9abd5f02013-04-11 21:42:29 +0200104config 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
Mike Looijmans8ce20e62015-10-02 09:15:29 +0200113config 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
Mike Looijmans8ce20e62015-10-02 09:15:29 +0200119 This driver supports the Silicon Labs 514 programmable clock
120 generator.
121
Mike Looijmans953cc3e2018-03-20 09:15:41 +0100122config COMMON_CLK_SI544
123 tristate "Clock driver for SiLabs 544 devices"
124 depends on I2C
125 select REGMAP_I2C
126 help
Mike Looijmans953cc3e2018-03-20 09:15:41 +0100127 This driver supports the Silicon Labs 544 programmable clock
128 generator.
129
Soren Brinkmann1459c832013-09-21 16:40:39 -0700130config 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
Soren Brinkmann1459c832013-09-21 16:40:39 -0700136 This driver supports Silicon Labs 570/571/598/599 programmable
137 clock generators.
138
Manivannan Sadhasivam1ab46012019-11-15 21:59:00 +0530139config 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
Mike Looijmansc7d5a46b2015-11-03 12:55:54 +0100146config 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
Mike Looijmans19fbbbb2015-06-03 07:25:19 +0200154config COMMON_CLK_CDCE925
Akinobu Mita55081242017-01-01 03:04:36 +0900155 tristate "Clock driver for TI CDCE913/925/937/949 devices"
Mike Looijmans19fbbbb2015-06-03 07:25:19 +0200156 depends on I2C
157 depends on OF
158 select REGMAP_I2C
159 help
Akinobu Mita55081242017-01-01 03:04:36 +0900160 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.
Mike Looijmans19fbbbb2015-06-03 07:25:19 +0200165 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
Kuninori Morimoto64dfbe22015-11-10 01:15:09 +0000171config 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
Linus Walleij846423f2017-06-21 09:59:52 +0200177config 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
Joel Stanley5eda5d72017-12-22 13:15:18 +1030186config 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
Yadwinder Singh Brar7cc560d2013-07-07 17:14:20 +0530198config COMMON_CLK_S2MPS11
Krzysztof Kozlowskie8b60a42014-05-21 13:23:01 +0200199 tristate "Clock driver for S2MPS1X/S5M8767 MFD"
Krzysztof Kozlowski9c1b3052016-10-02 22:58:14 +0200200 depends on MFD_SEC_CORE || COMPILE_TEST
Yadwinder Singh Brar7cc560d2013-07-07 17:14:20 +0530201 ---help---
Krzysztof Kozlowskie8b60a42014-05-21 13:23:01 +0200202 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.
Yadwinder Singh Brar7cc560d2013-07-07 17:14:20 +0530205
Peter Ujfalusif9f8c042012-09-14 17:30:27 +0300206config 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
Lars-Peter Clausen0e646c52013-03-11 16:22:29 +0100214config COMMON_CLK_AXI_CLKGEN
215 tristate "AXI clkgen driver"
Javier Martinez Canillas4a7748c2015-10-13 16:18:18 +0200216 depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
Lars-Peter Clausen0e646c52013-03-11 16:22:29 +0100217 help
Lars-Peter Clausen0e646c52013-03-11 16:22:29 +0100218 Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
219 FPGAs. It is commonly used in Analog Devices' reference designs.
220
Tang Yuantian93a17c02015-01-15 14:03:41 +0800221config CLK_QORIQ
222 bool "Clock driver for Freescale QorIQ platforms"
Linus Torvalds2f4bf522015-11-05 23:38:43 -0800223 depends on (PPC_E500MC || ARM || ARM64 || COMPILE_TEST) && OF
Tang Yuantian555eae92013-04-09 16:46:26 +0800224 ---help---
Tang Yuantian93a17c02015-01-15 14:03:41 +0800225 This adds the clock driver support for Freescale QorIQ platforms
226 using common clock framework.
Tang Yuantian555eae92013-04-09 16:46:26 +0800227
Loc Ho308964c2013-06-26 11:56:09 -0600228config COMMON_CLK_XGENE
229 bool "Clock driver for APM XGene SoC"
Marc Gonzalezce9a1042019-06-12 17:03:56 +0200230 default ARCH_XGENE
Javier Martinez Canillas4a7748c2015-10-13 16:18:18 +0200231 depends on ARM64 || COMPILE_TEST
Loc Ho308964c2013-06-26 11:56:09 -0600232 ---help---
233 Sypport for the APM X-Gene SoC reference, PLL, and device clocks.
234
Charles Keepax76c54782019-03-19 13:37:00 +0000235config 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
Vladimir Zapolskiyf7c82a62015-12-06 12:45:57 +0200242config COMMON_CLK_NXP
243 def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
244 select REGMAP_MMIO if ARCH_LPC32XX
Ezequiel Garcia72ad6792016-05-16 12:45:36 -0300245 select MFD_SYSCON if ARCH_LPC18XX
Vladimir Zapolskiyf7c82a62015-12-06 12:45:57 +0200246 ---help---
247 Support for clock providers on NXP platforms.
248
Peter Ujfalusi942d1d62014-06-27 09:01:11 +0300249config 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
Philipp Zabel9a74ccd2015-02-13 20:18:52 +0100256config 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
Robert Jarzmik98d147f2014-10-01 23:39:29 +0200263config COMMON_CLK_PXA
264 def_bool COMMON_CLK && ARCH_PXA
265 ---help---
Mike Looijmans048c58b2015-11-03 12:55:53 +0100266 Support for the Marvell PXA SoC.
Robert Jarzmik98d147f2014-10-01 23:39:29 +0200267
Purna Chandra Mandalce6e1182016-05-13 13:22:40 +0530268config COMMON_CLK_PIC32
269 def_bool COMMON_CLK && MACH_PIC32
270
Neil Armstrong0bbd72b2016-04-18 12:01:35 +0200271config COMMON_CLK_OXNAS
272 bool "Clock driver for the OXNAS SoC Family"
Jean Delvare821f9942016-07-07 09:18:44 +0200273 depends on ARCH_OXNAS || COMPILE_TEST
Neil Armstrong0bbd72b2016-04-18 12:01:35 +0200274 select MFD_SYSCON
275 ---help---
276 Support for the OXNAS SoC Family clocks.
277
Marek Vasut3e1aec4e2017-01-12 02:03:24 +0100278config COMMON_CLK_VC5
Marek Vasutdbf6b162017-07-09 15:28:14 +0200279 tristate "Clock driver for IDT VersaClock 5,6 devices"
Marek Vasut3e1aec4e2017-01-12 02:03:24 +0100280 depends on I2C
281 depends on OF
282 select REGMAP_I2C
283 help
Marek Vasutdbf6b162017-07-09 15:28:14 +0200284 This driver supports the IDT VersaClock 5 and VersaClock 6
285 programmable clock generators.
Marek Vasut3e1aec4e2017-01-12 02:03:24 +0100286
Gabriel Fernandez9bee94e2018-03-08 17:53:55 +0100287config COMMON_CLK_STM32MP157
288 def_bool COMMON_CLK && MACH_STM32MP157
289 help
Gabriel Fernandez9bee94e2018-03-08 17:53:55 +0100290 Support for stm32mp157 SoC family clocks
291
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100292config COMMON_CLK_STM32F
Gabriel Fernandez9a160602018-05-03 08:40:09 +0200293 def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100294 help
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100295 Support for stm32f4 and stm32f7 SoC families clocks
296
297config COMMON_CLK_STM32H7
Gabriel Fernandez9a160602018-05-03 08:40:09 +0200298 def_bool COMMON_CLK && MACH_STM32H743
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100299 help
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100300 Support for stm32h7 SoC family clocks
301
Matti Vaittinen2e622462018-12-07 12:01:44 +0200302config COMMON_CLK_BD718XX
303 tristate "Clock driver for ROHM BD718x7 PMIC"
Matti Vaittinen0dae7f52019-06-03 10:25:39 +0300304 depends on MFD_ROHM_BD718XX || MFD_ROHM_BD70528
Matti Vaittinen2e622462018-12-07 12:01:44 +0200305 help
Matti Vaittinen0dae7f52019-06-03 10:25:39 +0300306 This driver supports ROHM BD71837, ROHM BD71847 and
307 ROHM BD70528 PMICs clock gates.
Matti Vaittinen2e622462018-12-07 12:01:44 +0200308
Jan Kotas50cc4ca2018-12-13 12:49:29 +0000309config COMMON_CLK_FIXED_MMIO
310 bool "Clock driver for Memory Mapped Fixed values"
311 depends on COMMON_CLK && OF
312 help
313 Support for Memory Mapped IO Fixed clocks
314
Manivannan Sadhasivam3495e292018-03-26 23:08:57 +0530315source "drivers/clk/actions/Kconfig"
Paul Walmsley7b9487a2019-04-30 13:50:58 -0700316source "drivers/clk/analogbits/Kconfig"
Stephen Boyd64a12c52015-05-14 17:38:21 -0700317source "drivers/clk/bcm/Kconfig"
Bintian Wang72ea4862015-05-29 10:08:38 +0800318source "drivers/clk/hisilicon/Kconfig"
Paul Burton6b0fd6c2017-06-17 13:52:47 -0700319source "drivers/clk/imgtec/Kconfig"
Aisheng Dong3a48d912018-12-13 15:42:50 +0000320source "drivers/clk/imx/Kconfig"
Paul Cercueil0880fb82018-08-23 15:17:41 +0200321source "drivers/clk/ingenic/Kconfig"
Tero Kristob745c072017-06-13 10:09:27 +0300322source "drivers/clk/keystone/Kconfig"
James Liao2886c842016-08-19 13:34:49 +0800323source "drivers/clk/mediatek/Kconfig"
Michael Turquettecb7c47d2016-05-23 14:29:13 -0700324source "drivers/clk/meson/Kconfig"
Sebastian Hesselbarth97fa4cf2012-11-17 15:22:22 +0100325source "drivers/clk/mvebu/Kconfig"
James Liaob9e65eb2016-01-28 16:58:57 +0800326source "drivers/clk/qcom/Kconfig"
Geert Uytterhoevena5bd7f72016-04-13 11:08:42 +0200327source "drivers/clk/renesas/Kconfig"
Pankaj Dubey4ce9b85e2014-05-08 13:07:08 +0900328source "drivers/clk/samsung/Kconfig"
Paul Walmsley30b8e272019-04-30 13:51:00 -0700329source "drivers/clk/sifive/Kconfig"
Chunyan Zhangd41f59f2017-12-07 20:57:05 +0800330source "drivers/clk/sprd/Kconfig"
Maxime Ripard49c726d2019-03-19 15:37:59 +0100331source "drivers/clk/sunxi/Kconfig"
Maxime Ripard1d80c142016-06-29 21:05:23 +0200332source "drivers/clk/sunxi-ng/Kconfig"
Thierry Reding31b52ba2015-04-01 09:10:58 +0200333source "drivers/clk/tegra/Kconfig"
Tony Lindgren21330492016-02-26 09:35:05 -0800334source "drivers/clk/ti/Kconfig"
Masahiro Yamada734d82f2016-09-16 16:40:03 +0900335source "drivers/clk/uniphier/Kconfig"
Jolly Shah3fde0e12018-10-08 11:21:46 -0700336source "drivers/clk/zynqmp/Kconfig"
James Liaob9e65eb2016-01-28 16:58:57 +0800337
338endmenu