summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorCodrin Ciubotariu <codrin.ciubotariu@freescale.com>2015-01-12 14:08:37 +0200
committerYork Sun <yorksun@freescale.com>2015-01-21 09:23:35 -0600
commit9b478bef27797e0fd2a7673b4b40e7fe14725b26 (patch)
treecd8c679bc4fe06ca8dd12ac317af02e0153976eb /board/freescale
parentd9fb29c7e35caea04de69fab6d5aa3725f8ee82d (diff)
downloadu-boot-imx-9b478bef27797e0fd2a7673b4b40e7fe14725b26.zip
u-boot-imx-9b478bef27797e0fd2a7673b4b40e7fe14725b26.tar.gz
u-boot-imx-9b478bef27797e0fd2a7673b4b40e7fe14725b26.tar.bz2
board/T104xrdb: T1040 FMAN ports FM1@DTSEC1 and FM1@DTSEC2 have no PHYs
Freescale's T1040qds board may be configured to have up to 5 FMAN ports (FM1@DTSEC1 to FM1@DTSEC5). From these 5 ports, 2 of them may be fixed-links (FM1@DTSEC1 annd FM1@DTSEC2), connected to other two ports from an intergrated VSC9953 L2 Switch (switch ports 8 and 9). These fixed-link ports have no PHYs attatched, so they don't have a corresponding MDIO. Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/t104xrdb/eth.c9
1 files 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);