提交 6c636514 编写于 作者: R Ramon Fried 提交者: Joe Hershberger

net: macb: sync header definitions as taken from Linux

Few registers and bits were added by Cadence and
they were not updated in the headers.
Take the latest definitions as defined in Linux
header (5.1) that also includes some comments
about existing registers.

One register was improperly named (UR), fix that.
Signed-off-by: NRamon Fried <rfried.dev@gmail.com>
Reviewed-by: NAnup Patel <anup.patel@wdc.com>
Tested-by: NAnup Patel <anup.patel@wdc.com>
Acked-by: NJoe Hershberger <joe.hershberger@ni.com>
上级 88d2b1ab
......@@ -774,14 +774,14 @@ static int _macb_init(struct macb_device *macb, const char *name)
#ifdef CONFIG_DM_ETH
if ((macb->phy_interface == PHY_INTERFACE_MODE_RMII) ||
(macb->phy_interface == PHY_INTERFACE_MODE_RGMII))
gem_writel(macb, UR, GEM_BIT(RGMII));
gem_writel(macb, USRIO, GEM_BIT(RGMII));
else
gem_writel(macb, UR, 0);
gem_writel(macb, USRIO, 0);
#else
#if defined(CONFIG_RGMII) || defined(CONFIG_RMII)
gem_writel(macb, UR, GEM_BIT(RGMII));
gem_writel(macb, USRIO, GEM_BIT(RGMII));
#else
gem_writel(macb, UR, 0);
gem_writel(macb, USRIO, 0);
#endif
#endif
} else {
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册