timer: Tighten CADENCE_TTC_TIMER dependencies
authorTom Rini <trini@konsulko.com>
Fri, 26 Sep 2025 15:31:46 +0000 (09:31 -0600)
committerMichal Simek <michal.simek@amd.com>
Thu, 9 Oct 2025 07:07:04 +0000 (09:07 +0200)
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.

Signed-off-by: Tom Rini <trini@konsulko.com>
Link: https://lore.kernel.org/r/20250926153146.3680952-1-trini@konsulko.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/timer/Kconfig

index 81c154b..5cac1dc 100644 (file)
@@ -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.