diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-05-26 12:01:12 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-07-28 11:56:18 +0200 |
commit | e65d33cf0310916ba7b7a948c436fb0bbb4e3a7f (patch) | |
tree | ce8dbfbbba189119d2d4a102e0e4c1a3e47ed4fb /drivers/net | |
parent | eda9d3071b3a3d7b2720cf51dbe05648784160d3 (diff) | |
download | u-boot-imx-e65d33cf0310916ba7b7a948c436fb0bbb4e3a7f.zip u-boot-imx-e65d33cf0310916ba7b7a948c436fb0bbb4e3a7f.tar.gz u-boot-imx-e65d33cf0310916ba7b7a948c436fb0bbb4e3a7f.tar.bz2 |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/zynq_gem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index f4c2252..438e4a8 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -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); |