Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Duje Mihanović and committed by
Stephen Boyd
87f06247 51fa6aa5

+5 -5
+5 -2
drivers/clk/mmp/clk-of-pxa1928.c
··· 22 22 23 23 #define MPMU_UART_PLL 0x14 24 24 25 + #define APBC_NR_CLKS 48 26 + #define APMU_NR_CLKS 96 27 + 25 28 struct pxa1928_clk_unit { 26 29 struct mmp_clk_unit unit; 27 30 void __iomem *mpmu_base; ··· 238 235 return; 239 236 } 240 237 241 - mmp_clk_init(np, &pxa_unit->unit, PXA1928_APMU_NR_CLKS); 238 + mmp_clk_init(np, &pxa_unit->unit, APMU_NR_CLKS); 242 239 243 240 pxa1928_axi_periph_clk_init(pxa_unit); 244 241 } ··· 259 256 return; 260 257 } 261 258 262 - mmp_clk_init(np, &pxa_unit->unit, PXA1928_APBC_NR_CLKS); 259 + mmp_clk_init(np, &pxa_unit->unit, APBC_NR_CLKS); 263 260 264 261 pxa1928_apb_periph_clk_init(pxa_unit); 265 262 pxa1928_clk_reset_init(np, pxa_unit);
-3
include/dt-bindings/clock/marvell,pxa1928.h
··· 36 36 #define PXA1928_CLK_THSENS_CPU 0x26 37 37 #define PXA1928_CLK_THSENS_VPU 0x27 38 38 #define PXA1928_CLK_THSENS_GC 0x28 39 - #define PXA1928_APBC_NR_CLKS 0x30 40 39 41 40 42 41 /* axi peripherals */ ··· 51 52 #define PXA1928_CLK_SDH4 0x57 52 53 #define PXA1928_CLK_GC3D 0x5d 53 54 #define PXA1928_CLK_GC2D 0x5f 54 - 55 - #define PXA1928_APMU_NR_CLKS 0x60 56 55 57 56 #endif