Author: emaste
Date: Mon May 28 20:06:40 2018
New Revision: 334294
URL: https://svnweb.freebsd.org/changeset/base/334294

Log:
  if_muge: Add GMII enable (vs RGMII) bit
  
  The GMII control bit ETH_MAC_CR_GMII_EN_ is not documented in
  LAN78xx datasheets, but from the permissively licensed header provided
  by Microchip it is:
  
   #define ETH_MAC_CR_GMII_EN (0x00080000UL ) // GMII/RGMII Selection

Modified:
  head/sys/dev/usb/net/if_mugereg.h

Modified: head/sys/dev/usb/net/if_mugereg.h
==============================================================================
--- head/sys/dev/usb/net/if_mugereg.h   Mon May 28 19:55:51 2018        
(r334293)
+++ head/sys/dev/usb/net/if_mugereg.h   Mon May 28 20:06:40 2018        
(r334294)
@@ -207,6 +207,7 @@
 
 /* MAC Control Register */
 #define ETH_MAC_CR                     0x100
+#define ETH_MAC_CR_GMII_EN_            (0x1U << 19)    /* GMII Enable */
 #define ETH_MAC_CR_AUTO_DUPLEX_                (0x1U << 12)
 #define ETH_MAC_CR_AUTO_SPEED_         (0x1U << 11)
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to