Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cef309cf authored by Heiko Schocher's avatar Heiko Schocher Committed by David S. Miller
Browse files

ucc_geth.c: Fix upsmr setting in RMII mode



If using the UCC on a MPC8360 in RMII mode, don;t set
UCC_GETH_UPSMR_RPM bit in the upsmr register.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Acked-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3f9738f7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1394,6 +1394,7 @@ static int adjust_enet_interface(struct ucc_geth_private *ugeth)
	    (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID) ||
	    (ugeth->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID) ||
	    (ugeth->phy_interface == PHY_INTERFACE_MODE_RTBI)) {
		if (ugeth->phy_interface != PHY_INTERFACE_MODE_RMII)
			upsmr |= UCC_GETH_UPSMR_RPM;
		switch (ugeth->max_speed) {
		case SPEED_10: