Skip to content

Commit fb23451

Browse files
Johan Jonkermmind
authored andcommitted
dt-bindings: clock: rockchip: remove CLK_NR_CLKS and CLKPMU_NR_CLKS
CLK_NR_CLKS and CLKPMU_NR_CLKS should not be part of the binding. Remove since the kernel code no longer uses it. Signed-off-by: Johan Jonker <[email protected]> Acked-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 1a22986 commit fb23451

File tree

8 files changed

+0
-20
lines changed

8 files changed

+0
-20
lines changed

include/dt-bindings/clock/px30-cru.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@
175175
#define PCLK_CIF 352
176176
#define PCLK_OTP_PHY 353
177177

178-
#define CLK_NR_CLKS (PCLK_OTP_PHY + 1)
179-
180178
/* pmu-clocks indices */
181179

182180
#define PLL_GPLL 1
@@ -195,8 +193,6 @@
195193
#define PCLK_GPIO0_PMU 20
196194
#define PCLK_UART0_PMU 21
197195

198-
#define CLKPMU_NR_CLKS (PCLK_UART0_PMU + 1)
199-
200196
/* soft-reset indices */
201197
#define SRST_CORE0_PO 0
202198
#define SRST_CORE1_PO 1

include/dt-bindings/clock/rk3036-cru.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
#define HCLK_CPU 477
9595
#define HCLK_PERI 478
9696

97-
#define CLK_NR_CLKS (HCLK_PERI + 1)
98-
9997
/* soft-reset indices */
10098
#define SRST_CORE0 0
10199
#define SRST_CORE1 1

include/dt-bindings/clock/rk3228-cru.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@
146146
#define HCLK_S_CRYPTO 477
147147
#define HCLK_PERI 478
148148

149-
#define CLK_NR_CLKS (HCLK_PERI + 1)
150-
151149
/* soft-reset indices */
152150
#define SRST_CORE0_PO 0
153151
#define SRST_CORE1_PO 1

include/dt-bindings/clock/rk3288-cru.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,6 @@
195195
#define HCLK_CPU 477
196196
#define HCLK_PERI 478
197197

198-
#define CLK_NR_CLKS (HCLK_PERI + 1)
199-
200198
/* soft-reset indices */
201199
#define SRST_CORE0 0
202200
#define SRST_CORE1 1

include/dt-bindings/clock/rk3308-cru.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@
212212
#define PCLK_CAN 233
213213
#define PCLK_OWIRE 234
214214

215-
#define CLK_NR_CLKS (PCLK_OWIRE + 1)
216-
217215
/* soft-reset indices */
218216

219217
/* cru_softrst_con0 */

include/dt-bindings/clock/rk3328-cru.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@
201201
#define HCLK_RGA 340
202202
#define HCLK_HDCP 341
203203

204-
#define CLK_NR_CLKS (HCLK_HDCP + 1)
205-
206204
/* soft-reset indices */
207205
#define SRST_CORE0_PO 0
208206
#define SRST_CORE1_PO 1

include/dt-bindings/clock/rk3368-cru.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@
182182
#define HCLK_BUS 477
183183
#define HCLK_PERI 478
184184

185-
#define CLK_NR_CLKS (HCLK_PERI + 1)
186-
187185
/* soft-reset indices */
188186
#define SRST_CORE_B0 0
189187
#define SRST_CORE_B1 1

include/dt-bindings/clock/rk3399-cru.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,6 @@
335335
#define HCLK_SDIO_NOC 495
336336
#define HCLK_SDIOAUDIO_NOC 496
337337

338-
#define CLK_NR_CLKS (HCLK_SDIOAUDIO_NOC + 1)
339-
340338
/* pmu-clocks indices */
341339

342340
#define PLL_PPLL 1
@@ -378,8 +376,6 @@
378376
#define PCLK_INTR_ARB_PMU 49
379377
#define HCLK_NOC_PMU 50
380378

381-
#define CLKPMU_NR_CLKS (HCLK_NOC_PMU + 1)
382-
383379
/* soft-reset indices */
384380

385381
/* cru_softrst_con0 */

0 commit comments

Comments
 (0)