aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2020-10-12 14:18:15 -0400
committerAndes <uboot@andestech.com>2020-10-26 09:27:24 +0800
commit963911e9e1c17b2f973ff49ddd51060d6c340c5f (patch)
treea5a9179dd96e49408f27cc779f981bf9ae1089d8
parent32cef69da0cbd8d07dcd5b5bec66d2dc94e22be9 (diff)
downloadu-boot-963911e9e1c17b2f973ff49ddd51060d6c340c5f.zip
u-boot-963911e9e1c17b2f973ff49ddd51060d6c340c5f.tar.gz
u-boot-963911e9e1c17b2f973ff49ddd51060d6c340c5f.tar.bz2
riscv: k210: Reduce DMA block size
Although the max DMA size supported by the hardware register is 22 bits (or 4M), the Linux driver for this device only supports transfers of up to 2M. On a device with 8M total memory, I don't think it will make too much of a difference. Reported-by: Damien Le Moal <Damien.LeMoal@wdc.com> Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Rick Chen <rick@andestech.com>
-rw-r--r--arch/riscv/dts/k210.dtsi4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/dts/k210.dtsi b/arch/riscv/dts/k210.dtsi
index 7605c01..81ef8ca 100644
--- a/arch/riscv/dts/k210.dtsi
+++ b/arch/riscv/dts/k210.dtsi
@@ -200,8 +200,8 @@
dma-channels = <6>;
snps,dma-masters = <2>;
snps,data-width = <5>;
- snps,block-size = <0x400000 0x400000 0x400000
- 0x400000 0x400000 0x400000>;
+ snps,block-size = <0x200000 0x200000 0x200000
+ 0x200000 0x200000 0x200000>;
snps,axi-max-burst-len = <256>;
status = "disabled";
};