mbox series

[v3,0/2] clk: ingenic: Add MDMA and BDMA clocks

Message ID 20211220193319.114974-1-paul@crapouillou.net
Headers show
Series clk: ingenic: Add MDMA and BDMA clocks | expand

Message

Paul Cercueil Dec. 20, 2021, 7:33 p.m. UTC
Hi Michael & Stephen,

Only the first patch (a tree-wide patch to rename include files)
of my v2 was merged, so I thought I'd send the second patch again. Since
checkpatch complained that DT includes must be in their own patch,
I just did that and decided to send a V3 instead of a RESEND.

Changes from v2:
- Previous patch [1/2] was merged
- Split previous patch [2/2] into two patches

Cheers,
-Paul

Paul Cercueil (2):
  dt-bindings: clk/ingenic: Add MDMA and BDMA clocks
  clk: ingenic: Add MDMA and BDMA clocks

 drivers/clk/ingenic/jz4760-cgu.c               | 10 ++++++++++
 drivers/clk/ingenic/jz4770-cgu.c               |  5 +++++
 include/dt-bindings/clock/ingenic,jz4760-cgu.h |  2 ++
 include/dt-bindings/clock/ingenic,jz4770-cgu.h |  1 +
 4 files changed, 18 insertions(+)

Comments

Stephen Boyd Jan. 7, 2022, 1:52 a.m. UTC | #1
Quoting Paul Cercueil (2021-12-20 11:33:19)
> 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 the BDMA and MDMA clocks to the JZ4760 CGU code, and the BDMA clock
> to the JZ4770 code, so that the BDMA and MDMA controllers can be used.
> 
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---

Applied to clk-next