blob: 1deafb4db60c296c4f4772d1b182cd2362feea37 [file] [log] [blame]
Jean-Christop PLAGNIOL-VILLARD6d803ba2010-11-17 10:04:33 +01001
2config CLKDEV_LOOKUP
3 bool
4 select HAVE_CLK
Kyungmin Parkaa3831c2011-07-18 16:34:54 +09005
Shawn Guo5c77f562011-12-20 14:46:38 +08006config HAVE_CLK_PREPARE
7 bool
8
Arnd Bergmann8fb61e32012-03-17 21:10:51 +00009config COMMON_CLK
10 bool
Mike Turquetteb24764902012-03-15 23:11:19 -070011 select HAVE_CLK_PREPARE
Rob Herring01033be2012-04-09 15:24:58 -050012 select CLKDEV_LOOKUP
Pranith Kumar83fe27e2014-12-05 11:24:45 -050013 select SRCU
Andy Shevchenko07775912015-09-22 18:54:11 +030014 select RATIONAL
Mike Turquetteb24764902012-03-15 23:11:19 -070015 ---help---
16 The common clock framework is a single definition of struct
17 clk, useful across many platforms, as well as an
18 implementation of the clock API in include/linux/clk.h.
19 Architectures utilizing the common struct clk should select
Arnd Bergmann8fb61e32012-03-17 21:10:51 +000020 this option.
Mike Turquetteb24764902012-03-15 23:11:19 -070021
Arnd Bergmann8fb61e32012-03-17 21:10:51 +000022menu "Common Clock Framework"
23 depends on COMMON_CLK
Mike Turquetteb24764902012-03-15 23:11:19 -070024
Mark Brownf05259a2012-05-17 10:04:57 +010025config COMMON_CLK_WM831X
26 tristate "Clock driver for WM831x/2x PMICs"
27 depends on MFD_WM831X
28 ---help---
29 Supports the clocking subsystem of the WM831x/2x series of
Masanari Iidafe4e4372014-10-17 00:09:24 +090030 PMICs from Wolfson Microelectronics.
Mark Brownf05259a2012-05-17 10:04:57 +010031
Pawel Moll5ee2b872013-09-17 17:16:15 +010032source "drivers/clk/versatile/Kconfig"
Linus Walleijf9a6aa42012-08-06 18:32:08 +020033
Eugeniy Paltsevdaeeb432017-08-25 20:39:14 +030034config CLK_HSDK
35 bool "PLL Driver for HSDK platform"
36 depends on OF || COMPILE_TEST
37 ---help---
38 This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
39 control.
40
Jonghwa Lee73118e62012-08-28 17:54:28 +090041config COMMON_CLK_MAX77686
Laxman Dewangan5a227cd2016-06-17 16:21:07 +053042 tristate "Clock driver for Maxim 77620/77686/77802 MFD"
Krzysztof Kozlowski9c1b3052016-10-02 22:58:14 +020043 depends on MFD_MAX77686 || MFD_MAX77620 || COMPILE_TEST
Jonghwa Lee73118e62012-08-28 17:54:28 +090044 ---help---
Laxman Dewangan5a227cd2016-06-17 16:21:07 +053045 This driver supports Maxim 77620/77686/77802 crystal oscillator
46 clock.
Javier Martinez Canillas83ccf162014-08-18 10:33:03 +020047
Daniel Mack33f51042018-07-06 20:53:03 +020048config COMMON_CLK_MAX9485
49 tristate "Maxim 9485 Programmable Clock Generator"
50 depends on I2C
51 help
52 This driver supports Maxim 9485 Programmable Audio Clock Generator
53
Chris Zhong038b8922014-10-13 15:52:44 -070054config COMMON_CLK_RK808
Elaine Zhang65bc9d72017-08-16 10:00:03 +080055 tristate "Clock driver for RK805/RK808/RK818"
Chris Zhong038b8922014-10-13 15:52:44 -070056 depends on MFD_RK808
57 ---help---
Elaine Zhang65bc9d72017-08-16 10:00:03 +080058 This driver supports RK805, RK808 and RK818 crystal oscillator clock. These
Chris Zhong038b8922014-10-13 15:52:44 -070059 multi-function devices have two fixed-rate oscillators,
60 clocked at 32KHz each. Clkout1 is always on, Clkout2 can off
61 by control register.
62
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
Sebastian Hesselbarth9abd5f02013-04-11 21:42:29 +020093config COMMON_CLK_SI5351
94 tristate "Clock driver for SiLabs 5351A/B/C"
95 depends on I2C
96 select REGMAP_I2C
97 select RATIONAL
98 ---help---
99 This driver supports Silicon Labs 5351A/B/C programmable clock
100 generators.
101
Mike Looijmans8ce20e62015-10-02 09:15:29 +0200102config COMMON_CLK_SI514
103 tristate "Clock driver for SiLabs 514 devices"
104 depends on I2C
105 depends on OF
106 select REGMAP_I2C
107 help
108 ---help---
109 This driver supports the Silicon Labs 514 programmable clock
110 generator.
111
Mike Looijmans953cc3e2018-03-20 09:15:41 +0100112config COMMON_CLK_SI544
113 tristate "Clock driver for SiLabs 544 devices"
114 depends on I2C
115 select REGMAP_I2C
116 help
117 ---help---
118 This driver supports the Silicon Labs 544 programmable clock
119 generator.
120
Soren Brinkmann1459c832013-09-21 16:40:39 -0700121config COMMON_CLK_SI570
122 tristate "Clock driver for SiLabs 570 and compatible devices"
123 depends on I2C
124 depends on OF
125 select REGMAP_I2C
126 help
127 ---help---
128 This driver supports Silicon Labs 570/571/598/599 programmable
129 clock generators.
130
Mike Looijmansc7d5a46b2015-11-03 12:55:54 +0100131config COMMON_CLK_CDCE706
132 tristate "Clock driver for TI CDCE706 clock synthesizer"
133 depends on I2C
134 select REGMAP_I2C
135 select RATIONAL
136 ---help---
137 This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.
138
Mike Looijmans19fbbbb2015-06-03 07:25:19 +0200139config COMMON_CLK_CDCE925
Akinobu Mita55081242017-01-01 03:04:36 +0900140 tristate "Clock driver for TI CDCE913/925/937/949 devices"
Mike Looijmans19fbbbb2015-06-03 07:25:19 +0200141 depends on I2C
142 depends on OF
143 select REGMAP_I2C
144 help
145 ---help---
Akinobu Mita55081242017-01-01 03:04:36 +0900146 This driver supports the TI CDCE913/925/937/949 programmable clock
147 synthesizer. Each chip has different number of PLLs and outputs.
148 For example, the CDCE925 contains two PLLs with spread-spectrum
149 clocking support and five output dividers. The driver only supports
150 the following setup, and uses a fixed setting for the output muxes.
Mike Looijmans19fbbbb2015-06-03 07:25:19 +0200151 Y1 is derived from the input clock
152 Y2 and Y3 derive from PLL1
153 Y4 and Y5 derive from PLL2
154 Given a target output frequency, the driver will set the PLL and
155 divider to best approximate the desired output.
156
Kuninori Morimoto64dfbe22015-11-10 01:15:09 +0000157config COMMON_CLK_CS2000_CP
158 tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
159 depends on I2C
160 help
161 If you say yes here you get support for the CS2000 clock multiplier.
162
Linus Walleij846423f2017-06-21 09:59:52 +0200163config COMMON_CLK_GEMINI
164 bool "Clock driver for Cortina Systems Gemini SoC"
165 depends on ARCH_GEMINI || COMPILE_TEST
166 select MFD_SYSCON
167 select RESET_CONTROLLER
168 ---help---
169 This driver supports the SoC clocks on the Cortina Systems Gemini
170 platform, also known as SL3516 or CS3516.
171
Joel Stanley5eda5d72017-12-22 13:15:18 +1030172config COMMON_CLK_ASPEED
173 bool "Clock driver for Aspeed BMC SoCs"
174 depends on ARCH_ASPEED || COMPILE_TEST
175 default ARCH_ASPEED
176 select MFD_SYSCON
177 select RESET_CONTROLLER
178 ---help---
179 This driver supports the SoC clocks on the Aspeed BMC platforms.
180
181 The G4 and G5 series, including the ast2400 and ast2500, are supported
182 by this driver.
183
Yadwinder Singh Brar7cc560d2013-07-07 17:14:20 +0530184config COMMON_CLK_S2MPS11
Krzysztof Kozlowskie8b60a42014-05-21 13:23:01 +0200185 tristate "Clock driver for S2MPS1X/S5M8767 MFD"
Krzysztof Kozlowski9c1b3052016-10-02 22:58:14 +0200186 depends on MFD_SEC_CORE || COMPILE_TEST
Yadwinder Singh Brar7cc560d2013-07-07 17:14:20 +0530187 ---help---
Krzysztof Kozlowskie8b60a42014-05-21 13:23:01 +0200188 This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
189 clock. These multi-function devices have two (S2MPS14) or three
190 (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.
Yadwinder Singh Brar7cc560d2013-07-07 17:14:20 +0530191
Peter Ujfalusif9f8c042012-09-14 17:30:27 +0300192config CLK_TWL6040
193 tristate "External McPDM functional clock from twl6040"
194 depends on TWL6040_CORE
195 ---help---
196 Enable the external functional clock support on OMAP4+ platforms for
197 McPDM. McPDM module is using the external bit clock on the McPDM bus
198 as functional clock.
199
Lars-Peter Clausen0e646c52013-03-11 16:22:29 +0100200config COMMON_CLK_AXI_CLKGEN
201 tristate "AXI clkgen driver"
Javier Martinez Canillas4a7748c2015-10-13 16:18:18 +0200202 depends on ARCH_ZYNQ || MICROBLAZE || COMPILE_TEST
Lars-Peter Clausen0e646c52013-03-11 16:22:29 +0100203 help
204 ---help---
205 Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
206 FPGAs. It is commonly used in Analog Devices' reference designs.
207
Tang Yuantian93a17c02015-01-15 14:03:41 +0800208config CLK_QORIQ
209 bool "Clock driver for Freescale QorIQ platforms"
Linus Torvalds2f4bf522015-11-05 23:38:43 -0800210 depends on (PPC_E500MC || ARM || ARM64 || COMPILE_TEST) && OF
Tang Yuantian555eae92013-04-09 16:46:26 +0800211 ---help---
Tang Yuantian93a17c02015-01-15 14:03:41 +0800212 This adds the clock driver support for Freescale QorIQ platforms
213 using common clock framework.
Tang Yuantian555eae92013-04-09 16:46:26 +0800214
Loc Ho308964c2013-06-26 11:56:09 -0600215config COMMON_CLK_XGENE
216 bool "Clock driver for APM XGene SoC"
217 default y
Javier Martinez Canillas4a7748c2015-10-13 16:18:18 +0200218 depends on ARM64 || COMPILE_TEST
Loc Ho308964c2013-06-26 11:56:09 -0600219 ---help---
220 Sypport for the APM X-Gene SoC reference, PLL, and device clocks.
221
Vladimir Zapolskiyf7c82a62015-12-06 12:45:57 +0200222config COMMON_CLK_NXP
223 def_bool COMMON_CLK && (ARCH_LPC18XX || ARCH_LPC32XX)
224 select REGMAP_MMIO if ARCH_LPC32XX
Ezequiel Garcia72ad6792016-05-16 12:45:36 -0300225 select MFD_SYSCON if ARCH_LPC18XX
Vladimir Zapolskiyf7c82a62015-12-06 12:45:57 +0200226 ---help---
227 Support for clock providers on NXP platforms.
228
Peter Ujfalusi942d1d62014-06-27 09:01:11 +0300229config COMMON_CLK_PALMAS
230 tristate "Clock driver for TI Palmas devices"
231 depends on MFD_PALMAS
232 ---help---
233 This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
234 using common clock framework.
235
Philipp Zabel9a74ccd2015-02-13 20:18:52 +0100236config COMMON_CLK_PWM
237 tristate "Clock driver for PWMs used as clock outputs"
238 depends on PWM
239 ---help---
240 Adapter driver so that any PWM output can be (mis)used as clock signal
241 at 50% duty cycle.
242
Robert Jarzmik98d147f2014-10-01 23:39:29 +0200243config COMMON_CLK_PXA
244 def_bool COMMON_CLK && ARCH_PXA
245 ---help---
Mike Looijmans048c58b2015-11-03 12:55:53 +0100246 Support for the Marvell PXA SoC.
Robert Jarzmik98d147f2014-10-01 23:39:29 +0200247
Purna Chandra Mandalce6e1182016-05-13 13:22:40 +0530248config COMMON_CLK_PIC32
249 def_bool COMMON_CLK && MACH_PIC32
250
Neil Armstrong0bbd72b2016-04-18 12:01:35 +0200251config COMMON_CLK_OXNAS
252 bool "Clock driver for the OXNAS SoC Family"
Jean Delvare821f9942016-07-07 09:18:44 +0200253 depends on ARCH_OXNAS || COMPILE_TEST
Neil Armstrong0bbd72b2016-04-18 12:01:35 +0200254 select MFD_SYSCON
255 ---help---
256 Support for the OXNAS SoC Family clocks.
257
Marek Vasut3e1aec4e2017-01-12 02:03:24 +0100258config COMMON_CLK_VC5
Marek Vasutdbf6b162017-07-09 15:28:14 +0200259 tristate "Clock driver for IDT VersaClock 5,6 devices"
Marek Vasut3e1aec4e2017-01-12 02:03:24 +0100260 depends on I2C
261 depends on OF
262 select REGMAP_I2C
263 help
264 ---help---
Marek Vasutdbf6b162017-07-09 15:28:14 +0200265 This driver supports the IDT VersaClock 5 and VersaClock 6
266 programmable clock generators.
Marek Vasut3e1aec4e2017-01-12 02:03:24 +0100267
Gabriel Fernandez9bee94e2018-03-08 17:53:55 +0100268config COMMON_CLK_STM32MP157
269 def_bool COMMON_CLK && MACH_STM32MP157
270 help
271 ---help---
272 Support for stm32mp157 SoC family clocks
273
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100274config COMMON_CLK_STM32F
Gabriel Fernandez9a160602018-05-03 08:40:09 +0200275 def_bool COMMON_CLK && (MACH_STM32F429 || MACH_STM32F469 || MACH_STM32F746)
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100276 help
277 ---help---
278 Support for stm32f4 and stm32f7 SoC families clocks
279
280config COMMON_CLK_STM32H7
Gabriel Fernandez9a160602018-05-03 08:40:09 +0200281 def_bool COMMON_CLK && MACH_STM32H743
Benjamin Gaignardda32d352018-03-12 10:32:48 +0100282 help
283 ---help---
284 Support for stm32h7 SoC family clocks
285
Manivannan Sadhasivam3495e292018-03-26 23:08:57 +0530286source "drivers/clk/actions/Kconfig"
Stephen Boyd64a12c52015-05-14 17:38:21 -0700287source "drivers/clk/bcm/Kconfig"
Bintian Wang72ea4862015-05-29 10:08:38 +0800288source "drivers/clk/hisilicon/Kconfig"
Paul Burton6b0fd6c2017-06-17 13:52:47 -0700289source "drivers/clk/imgtec/Kconfig"
Tero Kristob745c072017-06-13 10:09:27 +0300290source "drivers/clk/keystone/Kconfig"
James Liao2886c842016-08-19 13:34:49 +0800291source "drivers/clk/mediatek/Kconfig"
Michael Turquettecb7c47d2016-05-23 14:29:13 -0700292source "drivers/clk/meson/Kconfig"
Sebastian Hesselbarth97fa4cf2012-11-17 15:22:22 +0100293source "drivers/clk/mvebu/Kconfig"
James Liaob9e65eb2016-01-28 16:58:57 +0800294source "drivers/clk/qcom/Kconfig"
Geert Uytterhoevena5bd7f72016-04-13 11:08:42 +0200295source "drivers/clk/renesas/Kconfig"
Pankaj Dubey4ce9b85e2014-05-08 13:07:08 +0900296source "drivers/clk/samsung/Kconfig"
Chunyan Zhangd41f59f2017-12-07 20:57:05 +0800297source "drivers/clk/sprd/Kconfig"
Maxime Ripard1d80c142016-06-29 21:05:23 +0200298source "drivers/clk/sunxi-ng/Kconfig"
Thierry Reding31b52ba2015-04-01 09:10:58 +0200299source "drivers/clk/tegra/Kconfig"
Tony Lindgren21330492016-02-26 09:35:05 -0800300source "drivers/clk/ti/Kconfig"
Masahiro Yamada734d82f2016-09-16 16:40:03 +0900301source "drivers/clk/uniphier/Kconfig"
Jolly Shah3fde0e12018-10-08 11:21:46 -0700302source "drivers/clk/zynqmp/Kconfig"
James Liaob9e65eb2016-01-28 16:58:57 +0800303
304endmenu