Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# SPDX-License-Identifier: GPL-2.0

config CONFIG_CLKDEV_LOOKUP
	bool
	select CONFIG_HAVE_CLK

config CONFIG_HAVE_CLK_PREPARE
	bool

config CONFIG_COMMON_CLK
	bool
	select CONFIG_HAVE_CLK_PREPARE
	select CONFIG_CLKDEV_LOOKUP
	select CONFIG_SRCU
	select CONFIG_RATIONAL
	---help---
	  The common clock framework is a single definition of struct
	  clk, useful across many platforms, as well as an
	  implementation of the clock API in include/linux/clk.h.
	  Architectures utilizing the common struct clk should select
	  this option.

menu "Common Clock Framework"
	depends on CONFIG_COMMON_CLK

config CONFIG_COMMON_CLK_WM831X
	tristate "Clock driver for WM831x/2x PMICs"
	depends on CONFIG_MFD_WM831X
	---help---
          Supports the clocking subsystem of the WM831x/2x series of
	  PMICs from Wolfson Microelectronics.

source "drivers/clk/versatile/Kconfig"

config CONFIG_CLK_HSDK
	bool "PLL Driver for HSDK platform"
	depends on CONFIG_OF || CONFIG_COMPILE_TEST
	---help---
	  This driver supports the HSDK core, system, ddr, tunnel and hdmi PLLs
	  control.

config CONFIG_COMMON_CLK_MAX77686
	tristate "Clock driver for Maxim 77620/77686/77802 MFD"
	depends on CONFIG_MFD_MAX77686 || CONFIG_MFD_MAX77620 || CONFIG_COMPILE_TEST
	---help---
	  This driver supports Maxim 77620/77686/77802 crystal oscillator
	  clock.

config CONFIG_COMMON_CLK_MAX9485
	tristate "Maxim 9485 Programmable Clock Generator"
	depends on CONFIG_I2C
	help
	  This driver supports Maxim 9485 Programmable Audio Clock Generator

config CONFIG_COMMON_CLK_RK808
	tristate "Clock driver for RK805/RK808/RK809/RK817/RK818"
	depends on CONFIG_MFD_RK808
	---help---
	  This driver supports RK805, RK809 and RK817, RK808 and RK818 crystal oscillator clock.
	  These multi-function devices have two fixed-rate oscillators, clocked at 32KHz each.
	  Clkout1 is always on, Clkout2 can off by control register.

config CONFIG_COMMON_CLK_HI655X
	tristate "Clock driver for Hi655x" if CONFIG_EXPERT
	depends on (CONFIG_MFD_HI655X_PMIC || CONFIG_COMPILE_TEST)
	depends on CONFIG_REGMAP
	default CONFIG_MFD_HI655X_PMIC
	---help---
	  This driver supports the hi655x PMIC clock. This
	  multi-function device has one fixed-rate oscillator, clocked
	  at 32KHz.

config CONFIG_COMMON_CLK_SCMI
	tristate "Clock driver controlled via SCMI interface"
	depends on CONFIG_ARM_SCMI_PROTOCOL || CONFIG_COMPILE_TEST
	  ---help---
	  This driver provides support for clocks that are controlled
	  by firmware that implements the SCMI interface.

	  This driver uses SCMI Message Protocol to interact with the
	  firmware providing all the clock controls.

config CONFIG_COMMON_CLK_SCPI
	tristate "Clock driver controlled via SCPI interface"
	depends on CONFIG_ARM_SCPI_PROTOCOL || CONFIG_COMPILE_TEST
	  ---help---
	  This driver provides support for clocks that are controlled
	  by firmware that implements the SCPI interface.

	  This driver uses SCPI Message Protocol to interact with the
	  firmware providing all the clock controls.

config CONFIG_COMMON_CLK_SI5341
	tristate "Clock driver for SiLabs 5341 and 5340 A/B/C/D devices"
	depends on CONFIG_I2C
	select CONFIG_REGMAP_I2C
	help
	  This driver supports Silicon Labs Si5341 and Si5340 programmable clock
	  generators. Not all features of these chips are currently supported
	  by the driver, in particular it only supports XTAL input. The chip can
	  be pre-programmed to support other configurations and features not yet
	  implemented in the driver.

config CONFIG_COMMON_CLK_SI5351
	tristate "Clock driver for SiLabs 5351A/B/C"
	depends on CONFIG_I2C
	select CONFIG_REGMAP_I2C
	select CONFIG_RATIONAL
	---help---
	  This driver supports Silicon Labs 5351A/CONFIG_B/CONFIG_C programmable clock
	  generators.

config CONFIG_COMMON_CLK_SI514
	tristate "Clock driver for SiLabs 514 devices"
	depends on CONFIG_I2C
	depends on CONFIG_OF
	select CONFIG_REGMAP_I2C
	help
	  This driver supports the Silicon Labs 514 programmable clock
	  generator.

config CONFIG_COMMON_CLK_SI544
	tristate "Clock driver for SiLabs 544 devices"
	depends on CONFIG_I2C
	select CONFIG_REGMAP_I2C
	help
	  This driver supports the Silicon Labs 544 programmable clock
	  generator.

config CONFIG_COMMON_CLK_SI570
	tristate "Clock driver for SiLabs 570 and compatible devices"
	depends on CONFIG_I2C
	depends on CONFIG_OF
	select CONFIG_REGMAP_I2C
	help
	  This driver supports Silicon Labs 570/571/598/599 programmable
	  clock generators.

config CONFIG_COMMON_CLK_CDCE706
	tristate "Clock driver for TI CDCE706 clock synthesizer"
	depends on CONFIG_I2C
	select CONFIG_REGMAP_I2C
	select CONFIG_RATIONAL
	---help---
	  This driver supports TI CDCE706 programmable 3-PLL clock synthesizer.

config CONFIG_COMMON_CLK_CDCE925
	tristate "Clock driver for TI CDCE913/925/937/949 devices"
	depends on CONFIG_I2C
	depends on CONFIG_OF
	select CONFIG_REGMAP_I2C
	help
	  This driver supports the TI CDCE913/925/937/949 programmable clock
	  synthesizer. Each chip has different number of PLLs and outputs.
	  For example, the CDCE925 contains two PLLs with spread-spectrum
	  clocking support and five output dividers. The driver only supports
	  the following setup, and uses a fixed setting for the output muxes.
	  Y1 is derived from the input clock
	  Y2 and Y3 derive from PLL1
	  Y4 and Y5 derive from PLL2
	  Given a target output frequency, the driver will set the PLL and
	  divider to best approximate the desired output.

config CONFIG_COMMON_CLK_CS2000_CP
	tristate "Clock driver for CS2000 Fractional-N Clock Synthesizer & Clock Multiplier"
	depends on CONFIG_I2C
	help
	  If you say yes here you get support for the CS2000 clock multiplier.

config CONFIG_COMMON_CLK_GEMINI
	bool "Clock driver for Cortina Systems Gemini SoC"
	depends on CONFIG_ARCH_GEMINI || CONFIG_COMPILE_TEST
	select CONFIG_MFD_SYSCON
	select CONFIG_RESET_CONTROLLER
	---help---
	  This driver supports the SoC clocks on the Cortina Systems Gemini
	  platform, also known as SL3516 or CS3516.

config CONFIG_COMMON_CLK_ASPEED
	bool "Clock driver for Aspeed BMC SoCs"
	depends on CONFIG_ARCH_ASPEED || CONFIG_COMPILE_TEST
	default CONFIG_ARCH_ASPEED
	select CONFIG_MFD_SYSCON
	select CONFIG_RESET_CONTROLLER
	---help---
	  This driver supports the SoC clocks on the Aspeed BMC platforms.

	  The G4 and G5 series, including the ast2400 and ast2500, are supported
	  by this driver.

config CONFIG_COMMON_CLK_S2MPS11
	tristate "Clock driver for S2MPS1X/S5M8767 MFD"
	depends on CONFIG_MFD_SEC_CORE || CONFIG_COMPILE_TEST
	---help---
	  This driver supports S2MPS11/S2MPS14/S5M8767 crystal oscillator
	  clock. These multi-function devices have two (S2MPS14) or three
	  (S2MPS11, S5M8767) fixed-rate oscillators, clocked at 32KHz each.

config CONFIG_CLK_TWL6040
	tristate "External McPDM functional clock from twl6040"
	depends on CONFIG_TWL6040_CORE
	---help---
	  Enable the external functional clock support on OMAP4+ platforms for
	  McPDM. McPDM module is using the external bit clock on the McPDM bus
	  as functional clock.

config CONFIG_COMMON_CLK_AXI_CLKGEN
	tristate "AXI clkgen driver"
	depends on CONFIG_ARCH_ZYNQ || CONFIG_MICROBLAZE || CONFIG_COMPILE_TEST
	help
	  Support for the Analog Devices axi-clkgen pcore clock generator for Xilinx
	  FPGAs. It is commonly used in Analog Devices' reference designs.

config CONFIG_CLK_QORIQ
	bool "Clock driver for Freescale QorIQ platforms"
	depends on (CONFIG_PPC_E500MC || CONFIG_ARM || CONFIG_ARM64 || CONFIG_COMPILE_TEST) && CONFIG_OF
	---help---
	  This adds the clock driver support for Freescale QorIQ platforms
	  using common clock framework.

config CONFIG_COMMON_CLK_XGENE
	bool "Clock driver for APM XGene SoC"
	default CONFIG_ARCH_XGENE
	depends on CONFIG_ARM64 || CONFIG_COMPILE_TEST
	---help---
	  Sypport for the CONFIG_APM X-Gene SoC reference, PLL, and device clocks.

config CONFIG_COMMON_CLK_LOCHNAGAR
	tristate "Cirrus Logic Lochnagar clock driver"
	depends on CONFIG_MFD_LOCHNAGAR
	help
	  This driver supports the clocking features of the Cirrus Logic
	  Lochnagar audio development board.

config CONFIG_COMMON_CLK_NXP
	def_bool CONFIG_COMMON_CLK && (CONFIG_ARCH_LPC18XX || CONFIG_ARCH_LPC32XX)
	select CONFIG_REGMAP_MMIO if CONFIG_ARCH_LPC32XX
	select CONFIG_MFD_SYSCON if CONFIG_ARCH_LPC18XX
	---help---
	  Support for clock providers on NXP platforms.

config CONFIG_COMMON_CLK_PALMAS
	tristate "Clock driver for TI Palmas devices"
	depends on CONFIG_MFD_PALMAS
	---help---
	  This driver supports TI Palmas devices 32KHz output KG and KG_AUDIO
	  using common clock framework.

config CONFIG_COMMON_CLK_PWM
	tristate "Clock driver for PWMs used as clock outputs"
	depends on CONFIG_PWM
	---help---
	  Adapter driver so that any CONFIG_PWM output can be (mis)used as clock signal
	  at 50% duty cycle.

config CONFIG_COMMON_CLK_PXA
	def_bool CONFIG_COMMON_CLK && CONFIG_ARCH_PXA
	---help---
	  Support for the Marvell PXA SoC.

config CONFIG_COMMON_CLK_PIC32
	def_bool CONFIG_COMMON_CLK && CONFIG_MACH_PIC32

config CONFIG_COMMON_CLK_OXNAS
	bool "Clock driver for the OXNAS SoC Family"
	depends on CONFIG_ARCH_OXNAS || CONFIG_COMPILE_TEST
	select CONFIG_MFD_SYSCON
	---help---
	  Support for the OXNAS SoC Family clocks.

config CONFIG_COMMON_CLK_VC5
	tristate "Clock driver for IDT VersaClock 5,6 devices"
	depends on CONFIG_I2C
	depends on CONFIG_OF
	select CONFIG_REGMAP_I2C
	help
	  This driver supports the IDT VersaClock 5 and VersaClock 6
	  programmable clock generators.

config CONFIG_COMMON_CLK_STM32MP157
	def_bool CONFIG_COMMON_CLK && CONFIG_MACH_STM32MP157
	help
	  Support for stm32mp157 SoC family clocks

config CONFIG_COMMON_CLK_STM32F
	def_bool CONFIG_COMMON_CLK && (CONFIG_MACH_STM32F429 || CONFIG_MACH_STM32F469 || CONFIG_MACH_STM32F746)
	help
	  Support for stm32f4 and stm32f7 SoC families clocks

config CONFIG_COMMON_CLK_STM32H7
	def_bool CONFIG_COMMON_CLK && CONFIG_MACH_STM32H743
	help
	  Support for stm32h7 SoC family clocks

config CONFIG_COMMON_CLK_BD718XX
	tristate "Clock driver for ROHM BD718x7 PMIC"
	depends on CONFIG_MFD_ROHM_BD718XX || CONFIG_MFD_ROHM_BD70528
	help
	  This driver supports ROHM BD71837, ROHM BD71847 and
	  ROHM BD70528 PMICs clock gates.

config CONFIG_COMMON_CLK_FIXED_MMIO
	bool "Clock driver for Memory Mapped Fixed values"
	depends on CONFIG_COMMON_CLK && CONFIG_OF
	help
	  Support for Memory Mapped IO Fixed clocks

source "drivers/clk/actions/Kconfig"
source "drivers/clk/analogbits/Kconfig"
source "drivers/clk/bcm/Kconfig"
source "drivers/clk/hisilicon/Kconfig"
source "drivers/clk/imgtec/Kconfig"
source "drivers/clk/imx/Kconfig"
source "drivers/clk/ingenic/Kconfig"
source "drivers/clk/keystone/Kconfig"
source "drivers/clk/mediatek/Kconfig"
source "drivers/clk/meson/Kconfig"
source "drivers/clk/mvebu/Kconfig"
source "drivers/clk/qcom/Kconfig"
source "drivers/clk/renesas/Kconfig"
source "drivers/clk/samsung/Kconfig"
source "drivers/clk/sifive/Kconfig"
source "drivers/clk/sprd/Kconfig"
source "drivers/clk/sunxi/Kconfig"
source "drivers/clk/sunxi-ng/Kconfig"
source "drivers/clk/tegra/Kconfig"
source "drivers/clk/ti/Kconfig"
source "drivers/clk/uniphier/Kconfig"
source "drivers/clk/zynqmp/Kconfig"

endmenu