u-boot/drivers/clk/stm32
Patrick Delaunay 0846bad0d0 clk: add CONFIG_CLK_AUTO_ID
Add a new config CONFIG_CLK_AUTO_ID to support a unique clk id
for all the clock providers, managed by clk uclass, when the clock
reference arg[0] is the same.

When the CONFIG is activated, the clock id is limited to the lower
CLK_ID_SZ = 24 bits in default clock xlate function
and the sequence number + 1 of the clk provider device is
added for the 8 higher bits.

We use sequence number + 1 to avoid the "dummy" clock id = 0,
used for invalid clock when CCF is activated.

When this config is activated, the new function clk_get_id()
should be used to get back the internal reference to clock
for the each clock provider.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
2025-06-11 09:42:55 +02:00
..
clk-stm32-core.c clk: add CONFIG_CLK_AUTO_ID 2025-06-11 09:42:55 +02:00
clk-stm32-core.h clk: stm32mp25: implement clock check security function 2025-06-11 09:42:55 +02:00
clk-stm32f.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
clk-stm32h7.c stm32: remove dt-binding headers that are available upstream 2025-01-31 08:46:51 +01:00
clk-stm32mp1.c clk: stm32mp1: fix DSI clock setting 2025-04-25 16:00:22 +02:00
clk-stm32mp13.c clk: stm32mp25: implement clock check security function 2025-06-11 09:42:55 +02:00
clk-stm32mp25.c clk: stm32mp25: implement clock check security function 2025-06-11 09:42:55 +02:00
Kconfig clk: stm32mp25: Add clock driver support 2025-06-11 09:42:55 +02:00
Makefile clk: stm32mp25: Add clock driver support 2025-06-11 09:42:55 +02:00
stm32mp13_rcc.h clk: stm32mp13: introduce STM32MP13 RCC driver 2022-12-07 16:49:35 +01:00