[rtems commit] bsp/genmcf548x: Increase network TX FIFO watermark

Sebastian Huber sebh at rtems.org
Mon Dec 16 14:13:16 UTC 2013


Module:    rtems
Branch:    master
Commit:    14e1c677fd339f3992685ff278e9c215a184b842
Changeset: http://git.rtems.org/rtems/commit/?id=14e1c677fd339f3992685ff278e9c215a184b842

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Dec 11 11:42:41 2013 +0100

bsp/genmcf548x: Increase network TX FIFO watermark

This prevents frequent transmit FIFO errors.

---

 c/src/lib/libbsp/m68k/genmcf548x/network/network.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/genmcf548x/network/network.c b/c/src/lib/libbsp/m68k/genmcf548x/network/network.c
index fd6098c..cbae742 100644
--- a/c/src/lib/libbsp/m68k/genmcf548x/network/network.c
+++ b/c/src/lib/libbsp/m68k/genmcf548x/network/network.c
@@ -730,8 +730,8 @@ static void mcf548x_fec_initialize_hardware(struct mcf548x_enet_struct *sc)
   /*
    * Set transmit fifo watermark register (X_WMRK), default = 64
    */
-  MCF548X_FEC_FECTFAR(chan) = MCF548X_FEC_FECTFAR_ALARM(128);
-  MCF548X_FEC_FECTFWR(chan) = MCF548X_FEC_FECTFWR_X_WMRK_64;   /* 64 bytes */
+  MCF548X_FEC_FECTFAR(chan) = MCF548X_FEC_FECTFAR_ALARM(512);
+  MCF548X_FEC_FECTFWR(chan) = MCF548X_FEC_FECTFWR_X_WMRK_256;
 
  /*
   * Set individual address filter for unicast address




More information about the vc mailing list