• Niklas Cassel's avatar
    net: stmmac: add support for independent DMA pbl for tx/rx · 89caaa2d
    Niklas Cassel authored
    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: default avatarNiklas Cassel <niklas.cassel@axis.com>
    Acked-by: default avatarAlexandre Torgue <alexandre.torgue@st.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    89caaa2d
dwmac1000_dma.c 8.32 KB