Skip to content

Commit 87f0624

Browse files
LegoLivesMatterbebarino
authored andcommitted
clk: pxa1928: Move number of clocks to driver source
The number of clocks should not be in the dt binding as it is not used by the respective device tree and thus needlessly bloats the ABI. Move this number of clocks into the driver source. Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr> Link: https://lore.kernel.org/r/20230812-mmp-nr-clks-v2-3-f9271bd7eaa5@skole.hr Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 51fa6aa commit 87f0624

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/clk/mmp/clk-of-pxa1928.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
#define MPMU_UART_PLL 0x14
2424

25+
#define APBC_NR_CLKS 48
26+
#define APMU_NR_CLKS 96
27+
2528
struct pxa1928_clk_unit {
2629
struct mmp_clk_unit unit;
2730
void __iomem *mpmu_base;
@@ -235,7 +238,7 @@ static void __init pxa1928_apmu_clk_init(struct device_node *np)
235238
return;
236239
}
237240

238-
mmp_clk_init(np, &pxa_unit->unit, PXA1928_APMU_NR_CLKS);
241+
mmp_clk_init(np, &pxa_unit->unit, APMU_NR_CLKS);
239242

240243
pxa1928_axi_periph_clk_init(pxa_unit);
241244
}
@@ -256,7 +259,7 @@ static void __init pxa1928_apbc_clk_init(struct device_node *np)
256259
return;
257260
}
258261

259-
mmp_clk_init(np, &pxa_unit->unit, PXA1928_APBC_NR_CLKS);
262+
mmp_clk_init(np, &pxa_unit->unit, APBC_NR_CLKS);
260263

261264
pxa1928_apb_periph_clk_init(pxa_unit);
262265
pxa1928_clk_reset_init(np, pxa_unit);

include/dt-bindings/clock/marvell,pxa1928.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
#define PXA1928_CLK_THSENS_CPU 0x26
3737
#define PXA1928_CLK_THSENS_VPU 0x27
3838
#define PXA1928_CLK_THSENS_GC 0x28
39-
#define PXA1928_APBC_NR_CLKS 0x30
4039

4140

4241
/* axi peripherals */
@@ -53,6 +52,4 @@
5352
#define PXA1928_CLK_GC3D 0x5d
5453
#define PXA1928_CLK_GC2D 0x5f
5554

56-
#define PXA1928_APMU_NR_CLKS 0x60
57-
5855
#endif

0 commit comments

Comments
 (0)