svn commit: r334294 - head/sys/dev/usb/net

Ed Maste emaste at FreeBSD.org
Mon May 28 20:06:41 UTC 2018


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)
 


More information about the svn-src-head mailing list