mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
zynq: gem: Setting up WRAP bit for one TX bd
Setting up WRAP bit to indicate that this is the last TX BD in the chain. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
eda9d3071b
commit
e65d33cf03
1 changed files with 2 additions and 1 deletions
|
@ -403,7 +403,8 @@ static int zynq_gem_send(struct eth_device *dev, void *ptr, int len)
|
|||
|
||||
priv->tx_bd->addr = (u32)ptr;
|
||||
priv->tx_bd->status = (len & ZYNQ_GEM_TXBUF_FRMLEN_MASK) |
|
||||
ZYNQ_GEM_TXBUF_LAST_MASK;
|
||||
ZYNQ_GEM_TXBUF_LAST_MASK |
|
||||
ZYNQ_GEM_TXBUF_WRAP_MASK;
|
||||
|
||||
addr = (u32) ptr;
|
||||
addr &= ~(ARCH_DMA_MINALIGN - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue