Skip to content

Commit

Permalink
packge/hw-c910: Support dmac
Browse files Browse the repository at this point in the history
Signed-off-by: Liu Yibin <[email protected]>
  • Loading branch information
Liu Yibin committed Jul 4, 2020
1 parent 3eb4dcd commit 3aa2e4e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 19 additions & 1 deletion package/hw-c910/hw/ice.dts.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
reg = <0x3 0xf0000000 0x0 0x04000000>;
reg-names = "control";
riscv,max-priority = <7>;
riscv,ndev = <64>;
riscv,ndev = <128>;
};

dummy_apb: apb-clock {
Expand Down Expand Up @@ -291,6 +291,24 @@
max-frequency = <25000000>;
};

dmac0: dmac@3fffd0000 {
compatible = "snps,axi-dma-1.01a";
reg = <0x3 0xfffd0000 0x0 0x1000>;
interrupt-parent = <&intc>;
interrupts = <65>;
clocks = <&dummy_apb>, <&dummy_apb>;
clock-names = "core-clk", "cfgr-clk";

dma-channels = <8>;
snps,block-size = <65536 65536 65536 65536 65536 65536 65536 65536>;
snps,priority = <0 1 2 3 4 5 6 7>;
snps,dma-masters = <1>;
snps,data-width = <4>;
snps,axi-max-burst-len = <16>;

status = "ok";
};

gmac: ethernet@3fffc0000 {
compatible = "snps,dwmac";
reg = <0x3 0xfffc0000 0x0 0x2000>;
Expand Down
4 changes: 4 additions & 0 deletions package/linux-patch-c910/linux-5.1.config.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_FUSE_FS=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_DEBUG_ATOMIC_SLEEP=y

CONFIG_DMADEVICES=y
CONFIG_DW_DMAC=y
CONFIG_DWTEST=y

0 comments on commit 3aa2e4e

Please sign in to comment.