mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 08:30:50 +09:00
net: macb: take into account all RGMII interface types
Take into account all RGMII interface types. Depending on it the RGMII PHY's timings are setup. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
This commit is contained in:
parent
3d3475c8b7
commit
1ae8f0a3b2
@ -947,7 +947,10 @@ static int _macb_init(struct macb_device *macb, const char *name)
|
|||||||
* to select interface between RMII and MII.
|
* to select interface between RMII and MII.
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_DM_ETH
|
#ifdef CONFIG_DM_ETH
|
||||||
if (macb->phy_interface == PHY_INTERFACE_MODE_RGMII)
|
if (macb->phy_interface == PHY_INTERFACE_MODE_RGMII ||
|
||||||
|
macb->phy_interface == PHY_INTERFACE_MODE_RGMII_ID ||
|
||||||
|
macb->phy_interface == PHY_INTERFACE_MODE_RGMII_RXID ||
|
||||||
|
macb->phy_interface == PHY_INTERFACE_MODE_RGMII_TXID)
|
||||||
val = macb->config->usrio->rgmii;
|
val = macb->config->usrio->rgmii;
|
||||||
else if (macb->phy_interface == PHY_INTERFACE_MODE_RMII)
|
else if (macb->phy_interface == PHY_INTERFACE_MODE_RMII)
|
||||||
val = macb->config->usrio->rmii;
|
val = macb->config->usrio->rmii;
|
||||||
|
Loading…
Reference in New Issue
Block a user