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
This commit is contained in:
Ed Maste 2018-05-28 20:06:40 +00:00
parent f0db235b7d
commit cfa989aa34

View File

@ -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)