diff options
-rwxr-xr-x | drivers/net/fec.c | 3 | ||||
-rw-r--r-- | drivers/net/fec.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c index fc65bdc96241..e47a4d658f4c 100755 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -1668,6 +1668,9 @@ fec_restart(struct net_device *dev, int duplex) writel(OPT_FRAME_SIZE | 0x06, fep->hwp + FEC_R_CNTRL); writel(0x0, fep->hwp + FEC_X_CNTRL); } +#ifdef FEC_FTRL + writel(PKT_MAXBUF_SIZE, fep->hwp + FEC_FTRL); +#endif fep->full_duplex = duplex; /* Set MII speed */ diff --git a/drivers/net/fec.h b/drivers/net/fec.h index 0c26c6c2db95..49eb060337b8 100644 --- a/drivers/net/fec.h +++ b/drivers/net/fec.h @@ -49,6 +49,7 @@ #define FEC_R_FIFO_RSEM 0x194 /* Receive FIFO section empty threshold */ #define FEC_R_FIFO_RAEM 0x198 /* Receive FIFO almost empty threshold */ #define FEC_R_FIFO_RAFL 0x19c /* Receive FIFO almost full threshold */ +#define FEC_FTRL 0x1b0 /* Frame truncation receive length*/ #define FEC_MIIGSK_CFGR 0x300 /* MIIGSK Configuration reg */ #define FEC_MIIGSK_ENR 0x308 /* MIIGSK Enable reg */ |