fix(versal2): move timer clk offset definition to platform header
For Versal2 platform TTC_CLK_SEL_OFFSET is defined in common timers source
which is creating build conflict for other platform.
Moving the definition for TTC_CLK_SEL_OFFSET to versal2 platform header.
Change-Id: I1e2db4c591520be12e568d84da290b17d72bf897
Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
diff --git a/plat/amd/versal2/include/platform_def.h b/plat/amd/versal2/include/platform_def.h
index 645a5eb..61392a7 100644
--- a/plat/amd/versal2/include/platform_def.h
+++ b/plat/amd/versal2/include/platform_def.h
@@ -122,5 +122,6 @@
#define IRQ_TWDOG_INTID U(0x51)
#define TTC_TIMER_IRQ U(75)
+#define TTC_CLK_SEL_OFFSET U(0x360)
#endif /* PLATFORM_DEF_H */
diff --git a/plat/xilinx/common/timer/timers.c b/plat/xilinx/common/timer/timers.c
index a6e1afa..f53cd84 100644
--- a/plat/xilinx/common/timer/timers.c
+++ b/plat/xilinx/common/timer/timers.c
@@ -27,7 +27,6 @@
#define TTC_CNT_CNTRL_DISABLE_MASK BIT(0)
-#define TTC_CLK_SEL_OFFSET U(0x360)
#define TTC_CLK_SEL_MASK GENMASK(1, 0)
#define TTC_CLK_SEL_PS_REF BIT(0)