summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@nabladev.com>2026-01-29 12:54:39 +0300
committerAbel Vesa <abel.vesa@oss.qualcomm.com>2026-03-19 17:15:32 +0300
commitf5fd9ccf2d46ee7ef5b8ba645d3173116677cf7c (patch)
tree9193072f0c7233ed1616d68ed904a03af1a883e8
parentf2c2fc93b4a3efdfcf3805ab74741826d343ff2c (diff)
downloadlinux-f5fd9ccf2d46ee7ef5b8ba645d3173116677cf7c.tar.xz
clk: vf610: Move VF610_CLK_END define to clk-vf610 driver
The VF610_CLK_END was previously defined in vf610-clock.h to indicate the number of clocks. It is solely used in the clk driver to allocate proper size of the clk table. Moreover, when new clocks (like e.g. ones for MTIP L2 switch) are defined its value also changes, so it shall be locally adjusted. Signed-off-by: Lukasz Majewski <lukma@nabladev.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Link: https://patch.msgid.link/20260129095442.1646748-2-lukma@nabladev.com Signed-off-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
-rw-r--r--drivers/clk/imx/clk-vf610.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/clk/imx/clk-vf610.c b/drivers/clk/imx/clk-vf610.c
index 41eb38552a9c..fddd493caf09 100644
--- a/drivers/clk/imx/clk-vf610.c
+++ b/drivers/clk/imx/clk-vf610.c
@@ -11,6 +11,13 @@
#include "clk.h"
+/*
+ * The VF610_CLK_END corresponds to ones defined in
+ * include/dt-bindings/clock/vf610-clock.h
+ * It shall be the value of the last defined clock +1
+ */
+#define VF610_CLK_END 191
+
#define CCM_CCR (ccm_base + 0x00)
#define CCM_CSR (ccm_base + 0x04)
#define CCM_CCSR (ccm_base + 0x08)