]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: stmmac: add support for independent DMA pbl for tx/rx
authorNiklas Cassel <niklas.cassel@axis.com>
Wed, 7 Dec 2016 14:20:07 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 18:07:10 +0000 (13:07 -0500)
commit89caaa2d80b7bf9bd8632cd3137254f8c685e5db
tree214c26ccdb8a9a5bb8f289ea6747e41944594d44
parent825658a27361c67c14c10bfa0359fc23d76a42b8
net: stmmac: add support for independent DMA pbl for tx/rx

GMAC and newer supports independent programmable burst lengths for
DMA tx/rx. Add new optional devicetree properties representing this.

To be backwards compatible, snps,pbl will still be valid, but
snps,txpbl/snps,rxpbl will override the value in snps,pbl if set.

If the IP is synthesized to use the AXI interface, there is a register
and a matching DT property inside the optional stmmac-axi-config DT node
for controlling burst lengths, named snps,blen.
However, using this register, it is not possible to control tx and rx
independently. Also, this register is not available if the IP was
synthesized with, e.g., the AHB interface.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Acked-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/devicetree/bindings/net/stmmac.txt
Documentation/networking/stmmac.txt
drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
include/linux/stmmac.h