summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVipin KUMAR <vipin.kumar@st.com>2012-03-26 00:09:53 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-04-04 10:46:51 -0500
commit97a6caa6e5429082d4daf689cfa355b6d8ddb2f3 (patch)
tree6c3c88ae396ecedfd8cd37df32454745c0124b53
parentc7f6dbe736f3f57436ba162f986691f7e862eb4d (diff)
downloadu-boot-imx-97a6caa6e5429082d4daf689cfa355b6d8ddb2f3.zip
u-boot-imx-97a6caa6e5429082d4daf689cfa355b6d8ddb2f3.tar.gz
u-boot-imx-97a6caa6e5429082d4daf689cfa355b6d8ddb2f3.tar.bz2
net/designware: Fix the max frame length size
The max frame length for normal descriptor can be 0x7FF i.e 2047. It was wrongly specified as 2048. Currently, the max descriptor length is around 1500, so redefining the mask to 1600 Signed-off-by: Vipin Kumar <vipin.kumar@st.com> Signed-off-by: Amit Virdi <amit.virdi@st.com>
-rw-r--r--drivers/net/designware.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/designware.h b/drivers/net/designware.h
index e5828a6..42133b3 100644
--- a/drivers/net/designware.h
+++ b/drivers/net/designware.h
@@ -121,7 +121,7 @@ struct eth_dma_regs {
#define RXSTART (1 << 1)
/* Descriptior related definitions */
-#define MAC_MAX_FRAME_SZ (2048)
+#define MAC_MAX_FRAME_SZ (1600)
struct dmamacdescr {
u32 txrx_status;