summaryrefslogtreecommitdiff
path: root/drivers/net/macb.c
diff options
context:
space:
mode:
authorRamon Fried <rfried.dev@gmail.com>2019-07-16 22:03:00 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2019-07-25 13:13:30 -0500
commit6c636514d4997eaf6aef806c68570b3a41e4df74 (patch)
tree00d77e81fe0c3e727258b8cedd0c0f63665c5f41 /drivers/net/macb.c
parent88d2b1abea95db33d4238dbaed0694b1a36565bb (diff)
downloadu-boot-6c636514d4997eaf6aef806c68570b3a41e4df74.tar.gz
u-boot-6c636514d4997eaf6aef806c68570b3a41e4df74.tar.bz2
u-boot-6c636514d4997eaf6aef806c68570b3a41e4df74.zip
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: Ramon Fried <rfried.dev@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com> Tested-by: Anup Patel <anup.patel@wdc.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r--drivers/net/macb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index a7eddd647d..0032d4e000 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -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 {