Skip to content

Commit

Permalink
dmaengine: dw-axi-dmac: Add support for Xuantie TH1520 DMA
Browse files Browse the repository at this point in the history
add th1520 dma compatible with match data AXI_DMA_FLAG_USE_CFG2

Signed-off-by: David Li <[email protected]>
  • Loading branch information
David Li committed Jul 12, 2024
1 parent 0c83a81 commit 141f005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/riscv/boot/dts/thead/th1520.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@
};

dmac0: dma-controller@ffefc00000 {
compatible = "snps,axi-dma-1.01a";
compatible = "xuantie,th1520-axi-dma";
reg = <0xff 0xefc00000 0x0 0x1000>;
interrupts = <27 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk CLKGEN_DMAC_CPUSYS_ACLK>, <&clk CLKGEN_DMAC_CPUSYS_HCLK>;
Expand Down Expand Up @@ -967,7 +967,7 @@
};

dmac2: dma-controller@ffc8000000 {
compatible = "snps,axi-dma-1.01a";
compatible = "xuantie,th1520-axi-dma";
reg = <0xff 0xc8000000 0x0 0x2000>;
interrupts = <167 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk CLKGEN_DMAC_CPUSYS_ACLK>, <&clk CLKGEN_DMAC_CPUSYS_HCLK>;
Expand Down
3 changes: 3 additions & 0 deletions drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -1649,6 +1649,9 @@ static const struct of_device_id dw_dma_of_id_table[] = {
}, {
.compatible = "starfive,jh7110-axi-dma",
.data = (void *)(AXI_DMA_FLAG_HAS_RESETS | AXI_DMA_FLAG_USE_CFG2),
}, {
.compatible = "xuantie,th1520-axi-dma",
.data = (void *)(AXI_DMA_FLAG_USE_CFG2),
},
{}
};
Expand Down

0 comments on commit 141f005

Please sign in to comment.