[U-Boot] [PATCH 08/10] board/T104xrdb: T1040 FMAN ports FM1 at DTSEC1 and FM1 at DTSEC2 have no PHYs

Codrin Ciubotariu codrin.ciubotariu at freescale.com
Mon Dec 15 16:37:32 CET 2014


Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu at freescale.com>
Change-Id: I379544addc0842a6c6fb515fe398a61012cb4b16
---
 board/freescale/t104xrdb/eth.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/board/freescale/t104xrdb/eth.c b/board/freescale/t104xrdb/eth.c
index c8b6c67..f5c0ec8 100644
--- a/board/freescale/t104xrdb/eth.c
+++ b/board/freescale/t104xrdb/eth.c
@@ -72,8 +72,13 @@ int board_eth_init(bd_t *bis)
 			fm_info_set_phy_address(i, 0);
 			break;
 		}
-		fm_info_set_mdio(i,
-				 miiphy_get_dev_by_name(DEFAULT_FM_MDIO_NAME));
+		if (fm_info_get_enet_if(i) == PHY_INTERFACE_MODE_QSGMII ||
+		    fm_info_get_enet_if(i) == PHY_INTERFACE_MODE_NONE)
+			fm_info_set_mdio(i, NULL);
+		else
+			fm_info_set_mdio(i,
+					 miiphy_get_dev_by_name(
+							DEFAULT_FM_MDIO_NAME));
 	}
 
 	cpu_eth_init(bis);
-- 
1.7.11.7



More information about the U-Boot mailing list