Skip to content

Commit 51d04bc

Browse files
pcercueibebarino
authored andcommitted
dt-bindings: clk/ingenic: Add MDMA and BDMA clocks
The Ingenic JZ4760 and JZ4770 both have an extra DMA core named BDMA dedicated to the NAND and BCH controller, but which can also do memory-to-memory transfers. The JZ4760 additionally has a DMA core named MDMA dedicated to memory-to-memory transfers. The programming manual for the JZ4770 does have a bit for a MDMA clock, but does not seem to have the hardware wired in. Add macros for the MDMA and BDMA clocks to the dt-bindings include files, so that they can be used within Device Tree files. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20211220193319.114974-2-paul@crapouillou.net Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent fa55b7d commit 51d04bc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/dt-bindings/clock/ingenic,jz4760-cgu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@
5050
#define JZ4760_CLK_LPCLK_DIV 41
5151
#define JZ4760_CLK_TVE 42
5252
#define JZ4760_CLK_LPCLK 43
53+
#define JZ4760_CLK_MDMA 44
54+
#define JZ4760_CLK_BDMA 45
5355

5456
#endif /* __DT_BINDINGS_CLOCK_JZ4760_CGU_H__ */

include/dt-bindings/clock/ingenic,jz4770-cgu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@
5454
#define JZ4770_CLK_OTG_PHY 45
5555
#define JZ4770_CLK_EXT512 46
5656
#define JZ4770_CLK_RTC 47
57+
#define JZ4770_CLK_BDMA 48
5758

5859
#endif /* __DT_BINDINGS_CLOCK_JZ4770_CGU_H__ */

0 commit comments

Comments
 (0)