diff options
author | Shengzhou Liu <Shengzhou.Liu@freescale.com> | 2014-01-03 14:48:44 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-01-21 13:37:41 -0800 |
commit | 1576b558b93ed2fb77dcd8bc138e77fe139974e3 (patch) | |
tree | a4d0daf7c2efc7e1eaa2e1ad0aeffa0975795f8c /drivers/net | |
parent | 3f283f4bdc6364de6fe3e2da2e365865da7710c8 (diff) | |
download | u-boot-imx-1576b558b93ed2fb77dcd8bc138e77fe139974e3.zip u-boot-imx-1576b558b93ed2fb77dcd8bc138e77fe139974e3.tar.gz u-boot-imx-1576b558b93ed2fb77dcd8bc138e77fe139974e3.tar.bz2 |
powerpc/t2080qds: some update for t2080qds
- add more serdes protocols support.
- fix some serdes lanes route.
- fix SGMII doesn't work and incorrect mdio display for XFI when serdes 0x6d.
- correct boot location info for SD/SPI boot.
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fm/t2080.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/fm/t2080.c b/drivers/net/fm/t2080.c index b5c1e9f..3b6212f 100644 --- a/drivers/net/fm/t2080.c +++ b/drivers/net/fm/t2080.c @@ -50,15 +50,17 @@ phy_interface_t fman_port_enet_if(enum fm_port port) if (is_device_disabled(port)) return PHY_INTERFACE_MODE_NONE; - if ((port == FM1_10GEC1 || port == FM1_10GEC2 || - port == FM1_10GEC3 || port == FM1_10GEC4) && + if ((port == FM1_10GEC1 || port == FM1_10GEC2) && ((is_serdes_configured(XAUI_FM1_MAC9)) || - (is_serdes_configured(XFI_FM1_MAC1)) || - (is_serdes_configured(XFI_FM1_MAC2)) || (is_serdes_configured(XFI_FM1_MAC9)) || (is_serdes_configured(XFI_FM1_MAC10)))) return PHY_INTERFACE_MODE_XGMII; + if ((port == FM1_10GEC3 || port == FM1_10GEC4) && + ((is_serdes_configured(XFI_FM1_MAC1)) || + (is_serdes_configured(XFI_FM1_MAC2)))) + return PHY_INTERFACE_MODE_XGMII; + if ((port == FM1_DTSEC3) && ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) == FSL_CORENET_RCWSR13_EC1_DTSEC3_RGMII)) return PHY_INTERFACE_MODE_RGMII; |