diff options
author | Marcin Wojtas <mw@semihalf.com> | 2021-05-03 08:08:47 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-05-20 13:03:30 +0200 |
commit | be45eb5064190c79e916cd702910318194f9c8a2 (patch) | |
tree | 1cb006dc40f81511c2138fc820e50b4d22e0125c /drivers | |
parent | 8299abc5ff0b5c2403a3f085376247d4cd8c37d1 (diff) | |
download | u-boot-be45eb5064190c79e916cd702910318194f9c8a2.zip u-boot-be45eb5064190c79e916cd702910318194f9c8a2.tar.gz u-boot-be45eb5064190c79e916cd702910318194f9c8a2.tar.bz2 |
net: mvpp2: remove redundant SMI address configuration
Because the mvpp2 driver now relies on the PHYLIB and
the external MDIO driver, configuring low level
SMI bus settings is redundant.
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Reviewed-by: Stefan Chulski <stefanc@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/mvpp2.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index 847007d..2043bdf 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -5292,14 +5292,6 @@ static int mvpp2_write_hwaddr(struct udevice *dev) return mvpp2_prs_update_mac_da(port, port->dev_addr); } -static int mvpp22_smi_phy_addr_cfg(struct mvpp2_port *port) -{ - writel(port->phyaddr, port->priv->iface_base + - MVPP22_SMI_PHY_ADDR_REG(port->gop_id)); - - return 0; -} - static int mvpp2_base_probe(struct udevice *dev) { struct mvpp2 *priv = dev_get_priv(dev); @@ -5422,10 +5414,6 @@ static int mvpp2_probe(struct udevice *dev) port->base = priv->iface_base + MVPP22_PORT_BASE + port->gop_id * MVPP22_PORT_OFFSET; - /* Set phy address of the port */ - if (port->phyaddr < PHY_MAX_ADDR) - mvpp22_smi_phy_addr_cfg(port); - /* GoP Init */ gop_port_init(port); } |