stmmac: add mixed burst for DMA
In mixed burst (MB) mode, the AHB master always initiates the bursts with fixed-size when the DMA requests transfers of size less than or equal to 16 beats. This patch adds the MB support and the flag that can be passed from the platform to select it. MB mode can also give some benefits in terms of performances on some platforms. v2: fixed Coding Style Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
cffb13f4d6
commit
b9cde0a8be
@@ -247,8 +247,8 @@ struct stmmac_desc_ops {
|
||||
|
||||
struct stmmac_dma_ops {
|
||||
/* DMA core initialization */
|
||||
int (*init) (void __iomem *ioaddr, int pbl, int fb, int burst_len,
|
||||
u32 dma_tx, u32 dma_rx);
|
||||
int (*init) (void __iomem *ioaddr, int pbl, int fb, int mb,
|
||||
int burst_len, u32 dma_tx, u32 dma_rx);
|
||||
/* Dump DMA registers */
|
||||
void (*dump_regs) (void __iomem *ioaddr);
|
||||
/* Set tx/rx threshold in the csr6 register
|
||||
|
Reference in New Issue
Block a user