Skip to contentSkip to conversation

timer: Tighten CADENCE_TTC_TIMER dependencies

PATCH Applied Tom Rini 2 participants 3 messages Sep 26, 2025 – Oct 9, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 timer: Tighten CADENCE_TTC_TIMER dependencies

This driver implements timer_get_boot_us() which is global namespace and can conflict with other implementations of the function for example in "allyesconfig". Start by limiting this driver to platforms which use it.

---
I know that the help says Zynq or ZynqMP but only the ZYNQMP_R5 architecture enables this today. I'm happy to expand this dependency more however or let someone from AMD v2 this.

Cc Michal Simek <[email protected]>
---
 drivers/timer/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/timer/Kconfig +1 -1
index 81c154b378a6..5cac1dcf2be9 100644
@@ -147,7 +147,7 @@ config SPL_ATMEL_TCB_TIMER
 
 config CADENCE_TTC_TIMER
 	bool "Cadence TTC (Triple Timer Counter)"
-	depends on TIMER
+	depends on TIMER && ARCH_ZYNQMP_R5
 	help
 	  Enables support for the cadence ttc driver. This driver is present
 	  on Xilinx Zynq and ZynqMP SoCs.
Signature · 1 line
2.43.0
Applied
#1 lore raw
Quoted 9 lines · Tom Rini

This driver implements timer_get_boot_us() which is global namespace and can conflict with other implementations of the function for example in "allyesconfig". Start by limiting this driver to platforms which use it.

---
I know that the help says Zynq or ZynqMP but only the ZYNQMP_R5 architecture enables this today. I'm happy to expand this dependency more however or let someone from AMD v2 this.

I don't have a problem with this because arm64 is using arm timers instead of TTC. If there is a need to use TTC we an fix that dependency.

Applied.
Michal

author
#2 lore raw
In reply to Tom Rini
Quoted 5 lines · Tom Rini

This driver implements timer_get_boot_us() which is global namespace and can conflict with other implementations of the function for example in "allyesconfig". Start by limiting this driver to platforms which use it.

Applied to u-boot/master, thanks!

[1/1] timer: Tighten CADENCE_TTC_TIMER dependencies

      commit: 7c2e4487e449b4396531789f1df49ccb8c911952
Signature · 1 line
Tom