diff options
author | Tom Rini <trini@ti.com> | 2012-12-17 18:39:50 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-17 18:39:50 -0700 |
commit | 095728803eedfce850a2f85828f79500cb09979e (patch) | |
tree | c226054297c0d3c82b112f1e45af121214b30a87 /drivers/net/e1000.c | |
parent | e80e588bb8db254fd939f83116ccf901bd233066 (diff) | |
parent | e3bb3254f8c055767edd1f02e642bec386540f4c (diff) | |
download | u-boot-imx-095728803eedfce850a2f85828f79500cb09979e.zip u-boot-imx-095728803eedfce850a2f85828f79500cb09979e.tar.gz u-boot-imx-095728803eedfce850a2f85828f79500cb09979e.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/net/e1000.c')
-rw-r--r-- | drivers/net/e1000.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 2d4da4b..8ba98b2 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -1688,6 +1688,16 @@ e1000_init_hw(struct eth_device *nic) E1000_WRITE_REG(hw, TXDCTL, ctrl); } + /* Set the receive descriptor write back policy */ + + if (hw->mac_type >= e1000_82571) { + ctrl = E1000_READ_REG(hw, RXDCTL); + ctrl = + (ctrl & ~E1000_RXDCTL_WTHRESH) | + E1000_RXDCTL_FULL_RX_DESC_WB; + E1000_WRITE_REG(hw, RXDCTL, ctrl); + } + switch (hw->mac_type) { default: break; |