diff options
author | Codrin Ciubotariu <codrin.ciubotariu@freescale.com> | 2015-01-12 12:08:32 (GMT) |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-01-16 17:32:32 (GMT) |
commit | 27b57569549251f65d37fe95593997004f0f69b8 (patch) | |
tree | b65779b44a2a16a5bb405d615ca27c07c29f98ea /drivers/net | |
parent | c2a61cd232910cb5c53d67699394dcc29e96fab8 (diff) | |
download | u-boot-27b57569549251f65d37fe95593997004f0f69b8.tar.xz |
net/fm: Enable FMAN ports if l2switch ports are connected over SGMII
If SerDes is configured to connect L2 Switch ports from T1040
over SGMII or QSGMII, the two FMAN fixed ports (FM1@DTSEC1 and FM2@DTSEC2)
that are connected to two L2 swtch ports must be enabled. These
ports don't have PHYs and must be treated accordingly.
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fm/t1040.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fm/t1040.c b/drivers/net/fm/t1040.c index d2a097e..0458366 100644 --- a/drivers/net/fm/t1040.c +++ b/drivers/net/fm/t1040.c @@ -50,7 +50,8 @@ phy_interface_t fman_port_enet_if(enum fm_port port) switch (port) { case FM1_DTSEC1: case FM1_DTSEC2: - if (is_serdes_configured(QSGMII_SW1_A + port - FM1_DTSEC1)) + if (is_serdes_configured(QSGMII_SW1_A + port - FM1_DTSEC1) || + is_serdes_configured(SGMII_SW1_MAC1 + port - FM1_DTSEC1)) return PHY_INTERFACE_MODE_QSGMII; case FM1_DTSEC3: case FM1_DTSEC4: |