Skip to content

Commit f5fd9cc

Browse files
Lukasz MajewskiAbel Vesa
authored andcommitted
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>
1 parent f2c2fc9 commit f5fd9cc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/clk/imx/clk-vf610.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111

1212
#include "clk.h"
1313

14+
/*
15+
* The VF610_CLK_END corresponds to ones defined in
16+
* include/dt-bindings/clock/vf610-clock.h
17+
* It shall be the value of the last defined clock +1
18+
*/
19+
#define VF610_CLK_END 191
20+
1421
#define CCM_CCR (ccm_base + 0x00)
1522
#define CCM_CSR (ccm_base + 0x04)
1623
#define CCM_CCSR (ccm_base + 0x08)

0 commit comments

Comments
 (0)