u-boot/drivers/clk
Caleb Connolly d5db46cf93
clk/qcom: fix rcg divider value
The RCG divider field takes a value of (2*h - 1) where h is the divisor.
This allows fractional dividers to be supported by calculating them at
compile time using a macro.

However, the clk_rcg_set_rate_mnd() function was also performing the
calculation. Clean this all up and consistently use the F() macro to
calculate these at compile time and properly support fractional divisors.

Additionally, improve clk_bcr_update() to timeout with a warning rather
than hanging the board, and make the freq_tbl struct and helpers common
so that they can be reused by future platforms.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2024-01-16 12:26:24 +00:00
..
altera drivers: clk: Update license for Intel N5X device 2022-07-01 15:00:39 +08:00
analogbits common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
aspeed clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
at91 treewide: use linux/time.h for time conversion defines 2023-11-16 18:59:58 -05:00
exynos clk: exynos: Add header guard for clk-pll.h 2023-11-13 16:39:05 +09:00
imx clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
intel clk: x86: Correct the driver name 2021-01-30 14:25:41 -07:00
mediatek clk: mediatek: add clock driver support for MediaTek MT8365 SoC 2023-12-19 10:09:06 -05:00
meson clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
microchip clk: microchip: mpfs: fix criticality of peripheral clocks 2022-11-15 15:37:17 +08:00
mtmips clk: mtmips: add clock driver for MediaTek MT7621 SoC 2022-07-13 23:03:37 +02:00
mvebu clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
nuvoton clk: nuvoton: add read only feature for clk driver 2023-12-15 13:05:55 -05:00
owl clk: actions: Add SD/MMC clocks 2022-01-18 12:48:17 -05:00
qcom clk/qcom: fix rcg divider value 2024-01-16 12:26:24 +00:00
renesas clk: renesas: Synchronize RZ R8A774E1 RZ/G2H clock tables with Linux 6.6.3 2024-01-14 20:35:21 +01:00
rockchip clk: rockchip: rk3588: fix up the frac pll calculation 2023-10-23 18:21:55 +08:00
sifive clk: sifive: only build sifive-prci.o for CONFIG_CLK_SIFIVE_PRCI 2023-07-06 17:28:08 +08:00
starfive clk: starfive: jh7110: Add watchdog clocks 2023-12-05 16:40:16 +08:00
stm32 clock patches for u-boot/next 2023-12-15 17:49:13 -05:00
sunxi sunxi: add Allwinner R528/T113 SoC support 2023-10-22 23:41:52 +01:00
tegra clk: Remove no-op request and rfree callbacks 2022-02-24 23:58:13 -05:00
ti tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
uniphier clk: uniphier: Add missing USB SS-PHY clocks 2023-02-22 19:40:11 +01:00
clk_bcm6345.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
clk_boston.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
clk_fixed_factor.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk_fixed_rate.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk_k210.c clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
clk_octeon.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clk_pic32.c clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
clk_sandbox_ccf.c test: dm: clk_ccf: test ccf_clk_ops 2023-12-15 13:50:44 -05:00
clk_sandbox_test.c test: dm: clk_ccf: test ccf_clk_ops 2023-12-15 13:50:44 -05:00
clk_sandbox.c clk: Make rfree return void 2022-03-30 13:02:55 -04:00
clk_scmi.c scmi: refactor the code to hide a channel from devices 2023-10-13 16:59:23 -04:00
clk_versaclock.c ARM: dts: rmobile: Synchronize DTs with Linux 6.1.7 2023-02-02 01:49:19 +01:00
clk_versal.c clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
clk_vexpress_osc.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
clk_zynq.c clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
clk_zynqmp.c clk: treewide: switch to clock dump from clk_ops 2023-12-15 13:05:54 -05:00
clk-cdce9xx.c tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
clk-composite.c clk: Check that composite clock's div has set_rate() 2023-12-15 12:32:00 -05:00
clk-divider.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
clk-fixed-factor.c clk: define LOG_CATEGORY for generic and ccf clocks 2021-12-15 12:16:16 -05:00
clk-gate.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
clk-gpio.c clk: Add GPIO-controlled clock gate driver 2023-09-09 04:53:31 +02:00
clk-hsdk-cgu.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
clk-mux.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
clk-uclass.c clk: get correct ops for clk_enable() and clk_disable() 2023-12-15 12:31:47 -05:00
clk-xlnx-clock-wizard.c clk: zynq: Add clock wizard driver 2021-06-23 09:48:35 +02:00
clk.c clk: check parent_name in clk_register to avoid confusing log_error() output 2023-12-15 12:31:15 -05:00
ics8n3qv01.c clk: Remove no-op request and rfree callbacks 2022-02-24 23:58:13 -05:00
Kconfig clk/qcom: move from mach-snapdragon 2024-01-16 12:26:23 +00:00
Makefile clk/qcom: move from mach-snapdragon 2024-01-16 12:26:23 +00:00
mpc83xx_clk.c clk: mpc83xx: Fix clocks for mpc832x 2023-04-06 14:50:03 +02:00
mpc83xx_clk.h Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig 2021-12-27 16:20:18 -05:00