]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
gem: zynqmp: Work with PHY on ep108
authorMichal Simek <michal.simek@xilinx.com>
Thu, 30 Jul 2015 12:37:22 +0000 (14:37 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 31 Jul 2015 06:25:37 +0000 (08:25 +0200)
There is not a problem to work with phy on RTL5.6 that's why remove this
code which fixed problems on previous RTLs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c

index f56ea4c5a445376b3f64f85e4145bf3d9f002584..37a7aeca69c577be82f550a2f173c0df50740e3b 100644 (file)
@@ -348,9 +348,6 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis)
                priv->init++;
        }
 
-#ifdef CONFIG_ARM64
-       if (!priv->init) {
-#endif
        phy_detection(dev);
 
        /* interface - look at tsec */
@@ -384,16 +381,11 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis)
                clk_rate = ZYNQ_GEM_FREQUENCY_10;
                break;
        }
-#ifdef CONFIG_ARM64
-       }
-#endif
 
-#ifndef CONFIG_ARM64
        /* Change the rclk and clk only not using EMIO interface */
        if (!priv->emio)
                zynq_slcr_gem_clk_setup(dev->iobase !=
                                        ZYNQ_GEM_BASEADDR0, clk_rate);
-#endif
 
        /* set hardware address because of ... */
        if (!is_valid_ether_addr(dev->enetaddr)) {