mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
bcmgenet: Add support for rgmii-rxid
The commit 57805f2270
("net: bcmgenet: Don't set ID_MODE_DIS when
not using RGMII") needed to be extended for the case of using the
rgmii-rxid. The latest version of the Rasbperry Pi4 dtb files for the
5.4 now specify the rgmii-rxid.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Tested-by: Petr Tesarik <ptesarik@suse.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
This commit is contained in:
parent
ac458dc823
commit
34873f46ba
1 changed files with 2 additions and 1 deletions
|
@ -457,7 +457,8 @@ static int bcmgenet_adjust_link(struct bcmgenet_eth_priv *priv)
|
|||
clrsetbits_32(priv->mac_reg + EXT_RGMII_OOB_CTRL, OOB_DISABLE,
|
||||
RGMII_LINK | RGMII_MODE_EN);
|
||||
|
||||
if (phy_dev->interface == PHY_INTERFACE_MODE_RGMII)
|
||||
if (phy_dev->interface == PHY_INTERFACE_MODE_RGMII ||
|
||||
phy_dev->interface == PHY_INTERFACE_MODE_RGMII_RXID)
|
||||
setbits_32(priv->mac_reg + EXT_RGMII_OOB_CTRL, ID_MODE_DIS);
|
||||
|
||||
writel(speed << CMD_SPEED_SHIFT, (priv->mac_reg + UMAC_CMD));
|
||||
|
|
Loading…
Reference in a new issue