Kinetis enet: set the MII_MODE bit. The RM states that this bit should always be 1.

This commit is contained in:
Andrew Webster 2016-01-21 18:50:53 -06:00 committed by Gregory Nutt
parent 36408697ca
commit a118233a59

View File

@ -1343,10 +1343,12 @@ static inline void kinetis_initphy(struct kinetis_driver_s *priv)
#ifdef CONFIG_ENET_USEMII
rcr = ENET_RCR_MII_MODE | ENET_RCR_CRCFWD |
CONFIG_NET_ETH_MTU << ENET_RCR_MAX_FL_SHIFT;
CONFIG_NET_ETH_MTU << ENET_RCR_MAX_FL_SHIFT |
ENET_RCR_MII_MODE;
#else
rcr = ENET_RCR_RMII_MODE | ENET_RCR_CRCFWD |
CONFIG_NET_ETH_MTU << ENET_RCR_MAX_FL_SHIFT;
CONFIG_NET_ETH_MTU << ENET_RCR_MAX_FL_SHIFT |
ENET_RCR_MII_MODE;
#endif
tcr = 0;