mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 22:51:49 +01:00
Freescale t104x: Do not exclude SGMII
fman_port_enet_if() tests if FM1_DTSEC2 or FM1_DTSEC4 uses RGMII or MII and if not returns PHY_INTERFACE_MODE_NONE. This excludes testing for SGMII further down. Remove the unconditional "else return PHY_INTERFACE_MODE_NONE" so SGMII can be tested too. Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se> Reviewed-by: York Sun <yorksun@freescale.com>
This commit is contained in:
parent
ed39218238
commit
bcb60cb9c4
@ -25,8 +25,6 @@ phy_interface_t fman_port_enet_if(enum fm_port port)
|
|||||||
else if ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) ==
|
else if ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) ==
|
||||||
FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_MII)
|
FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_MII)
|
||||||
return PHY_INTERFACE_MODE_MII;
|
return PHY_INTERFACE_MODE_MII;
|
||||||
else
|
|
||||||
return PHY_INTERFACE_MODE_NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((port == FM1_DTSEC4) &&
|
if ((port == FM1_DTSEC4) &&
|
||||||
@ -38,8 +36,6 @@ phy_interface_t fman_port_enet_if(enum fm_port port)
|
|||||||
else if ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) ==
|
else if ((rcwsr13 & FSL_CORENET_RCWSR13_EC1) ==
|
||||||
FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_MII)
|
FSL_CORENET_RCWSR13_EC1_FM1_DTSEC4_MII)
|
||||||
return PHY_INTERFACE_MODE_MII;
|
return PHY_INTERFACE_MODE_MII;
|
||||||
else
|
|
||||||
return PHY_INTERFACE_MODE_NONE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (port == FM1_DTSEC5) {
|
if (port == FM1_DTSEC5) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user