diff options
author | Jose Abreu <Jose.Abreu@synopsys.com> | 2019-06-28 09:29:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-28 09:23:38 -0700 |
commit | 8fe82bd460312728165f6472bd58be2e5d5ea527 (patch) | |
tree | c892ad5be4544bb17bfc13ad3b327f4b4ce4c031 /drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | |
parent | 42e87024f72708291e2b79d3365ba6a50827d0a4 (diff) | |
download | blackbird-op-linux-8fe82bd460312728165f6472bd58be2e5d5ea527.tar.gz blackbird-op-linux-8fe82bd460312728165f6472bd58be2e5d5ea527.zip |
net: stmmac: dwxgmac: Enable EDMA by default
Enable the EDMA feature by default which gives higher performance.
Changes from v1:
- Do not use magic values (David)
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c index 7861a938420a..42448973c36e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c @@ -122,6 +122,8 @@ static void dwxgmac2_dma_axi(void __iomem *ioaddr, struct stmmac_axi *axi) } writel(value, ioaddr + XGMAC_DMA_SYSBUS_MODE); + writel(XGMAC_TDPS, ioaddr + XGMAC_TX_EDMA_CTRL); + writel(XGMAC_RDPS, ioaddr + XGMAC_RX_EDMA_CTRL); } static void dwxgmac2_dma_rx_mode(void __iomem *ioaddr, int mode, |