summaryrefslogtreecommitdiffstats
path: root/drivers/clk/Kconfig
Commit message (Collapse)AuthorAgeFilesLines
* clk: select CLKDEV_LOOKUP from COMMON_CLKAhmad Fatoum2024-01-191-0/+1
| | | | | | | | | | All platforms that select COMMON_CLK also select CLKDEV_LOOKUP, therefore just select it in drivers/clk/Kconfig and drop the CLKDEV_LOOKUP all over the place. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240118090718.1314156-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: make COMMON_CLK a visible symbolAhmad Fatoum2024-01-191-1/+20
| | | | | | | | | | | | | | | | | | | So far, we expected platforms to select COMMON_CLK if they have a clock controller that's covered by the common clk framework and HAVE_CLK if they have a legacy clock driver. With the addition of SCMI clocks, platforms, especially virtualized ones, that previously didn't need clock support may now want access to them. Instead of having to select COMMON_CLK from such platforms on the off-chance that SCMI clocks may need to be used, just make COMMON_CLK user visible, so it can be selected as needed. As COMMON_CLK needs to conflict with legacy clock support, we also add a symbol for that and start selecting it where appropriate, Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240118090718.1314156-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/op-tee'Sascha Hauer2023-12-181-0/+10
|\
| * clk: add STM32MP13 clock and reset driversAhmad Fatoum2023-12-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | The reset and clock control peripheral of the STM32MP13 is with publicly available firmware exclusively handled by the secure world and normal world needs to employ SCMI to interact with OP-TEE to toggle clocks for it. Import the Linux driver to facilitate this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231127064947.2207726-10-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * clk: stm32mp1: build only when STM32MP15 support is enabledAhmad Fatoum2023-12-051-0/+5
| | | | | | | | | | | | | | | | | | | | The stm32mp1 clock driver is only used on the STM32MP15 and won't be reused for the STM32MP13, so let's make it dependent on ARCH_STM32MP157 instead of CONFIG_ARCH_STM32MP. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231127064947.2207726-2-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: ti-sci: fix build failure without TI_SCI_PROTOCOLAhmad Fatoum2023-12-051-0/+9
|/ | | | | | | | | | The SCI clk driver has an unconditional reference to ti_sci_get_handle(), but no dependency is specific in the Kconfig. Add a dependency and change defaults, so it's enabled by default. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20231204165238.1131311-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: clk-gpio: Add Kconfig symbolSascha Hauer2023-03-231-0/+5
| | | | | | | | | | | | | clk-gpio is always compiled in with CONFIG_COMMON_CLK=y. It really depends on CONFIG_COMMON_CLK_OF_PROVIDER though, without this of_clk_init() just compiles to a static inline stub and the clk-gpio driver becomes a no-op. With the conversion to a driver in the next patch this no longer works and compilation of the driver results in a undefined reference to of_clk_get_parent_name. To avoid that create a Kconfig symbol for the driver which defaults to yes when CONFIG_COMMON_CLK_OF_PROVIDER is set. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: have SCMI and SiFive clock controllers depend on COMMON_CLKAhmad Fatoum2022-09-121-1/+4
| | | | | | | | | | Both drivers require CCF support, so move these into a new if COMMON_CLK. As we already have COMMON_CLK_STM32 with the same requirement, move it in there as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220905095557.596891-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: add SCMI clock driverAhmad Fatoum2022-02-231-0/+11
| | | | | | | | Import the Linux v5.13 state of the SCMI clock protocol driver. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220220124736.3052502-15-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: add clock driver for stm32f4 and stm32f7Ahmad Fatoum2022-02-011-0/+6
| | | | | | | | | Port over the Linux v5.16 state of the clock driver. Tested on a STM32F429. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220131075725.1873026-13-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: add SiFive PRCI clock controller supportAhmad Fatoum2021-05-031-0/+2
| | | | | | | | | | | Import U74 and U54 clock controller support from Linux v5.12. Unlike Linux, dependency wrpll-cln28hpc.c is compiled in unconditionally. Linker garbage collection will take care to omit it if unreferenced. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210427202309.32077-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: migrate to SPDX-License-Identifier useAhmad Fatoum2020-04-151-0/+1
| | | | | | | | | | | | Some of these are a product of source sync with Linux, the other were done with macro assistance by searching for /later/, deleting license text, adding appropriate SPDX-License-Identifier and manual post-review. Devices without a license indicated where assumed GPL-2.0-only according with the project's license. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: Make COMMON_CLK_OF_PROVIDER depend on OFTREEAndrey Smirnov2017-03-091-0/+1
| | | | | | | | | | | | | Make COMMON_CLK_OF_PROVIDER depend on OFTREE, this way checking for: defined(CONFIG_OFTREE) && defined(CONFIG_COMMON_CLK_OF_PROVIDER) can be simplified to just: defined(CONFIG_COMMON_CLK_OF_PROVIDER) Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: Add Altera SoCFPGA clk supportSascha Hauer2013-09-231-0/+5
| | | | | | | The SoCFPGA currently has all clocks described in the devicetree which makes common clock support a straight forward task. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup Kconfig filesAlexander Shiyan2013-08-121-1/+1
| | | | | | | | | This patch provides a global cleanup barebox Kconfig files. This includes replacing spaces to tabs, formatting in accordance format. No functional changes. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: provide static inline wrappersSascha Hauer2013-07-231-0/+3
| | | | | | | So that drivers can use clk_* functions without having to ifdef them away. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: add clock lookup from devicetreeLucas Stach2013-07-021-0/+5
| | | | | | | Taken from the Linuxkernel with some small adjustments for barebox. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove bad Kconfig reference to HAVE_CLKAlexander Shiyan2012-12-081-1/+0
| | | | | | | Barebox not contain symbol HAVE_CLK, so remove all references to it. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: initial common clk supportSascha Hauer2012-10-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | This adds barebox common clk support loosely based on the Kernel common clk support. differences are: - barebox does not need prepare/unprepare - no parent rate propagation for set_rate - struct clk is not really encapsulated from the drivers Along with the clk support we have support for some basic clk building blocks: - clk-fixed - clk-fixed-factor - clk-mux - clk-divider clk-fixed and clk-fixed-factor are completely generic, clk-mux and clk-divider are currently the way i.MX muxes/dividers are implemented. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: move clkdev to drivers/clkJean-Christophe PLAGNIOL-VILLARD2010-09-201-0/+4
as refer in this patch "arm & sh: factorised duplicated clkdev.c" factorise some generic infrastructure to assist looking up struct clks for the ARM & SH architecture. as the code is identical at 99% in linux move it also as preparing for the SH adding Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>