]> git.sur5r.net Git - u-boot/commitdiff
net: gem: Remove zynq_gem_of_init()
authorMichal Simek <michal.simek@xilinx.com>
Mon, 30 Nov 2015 13:00:20 +0000 (14:00 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 7 Dec 2015 08:59:05 +0000 (09:59 +0100)
This function was used for OF init before DM.
Remove this function as the part of move to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/net/zynq_gem.c
include/netdev.h

index 9ce1221e8d0f2e92022a58ecae11fd8bac7e0e4e..a569c77aeb602161e74966d610ee7ea5300efc63 100644 (file)
@@ -13,8 +13,6 @@
 #include <net.h>
 #include <netdev.h>
 #include <config.h>
-#include <fdtdec.h>
-#include <libfdt.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <phy.h>
@@ -656,43 +654,3 @@ int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
 
        return 1;
 }
-
-#if CONFIG_IS_ENABLED(OF_CONTROL)
-int zynq_gem_of_init(const void *blob)
-{
-       int offset = 0;
-       u32 ret = 0;
-       u32 reg, phy_reg;
-
-       debug("ZYNQ GEM: Initialization\n");
-
-       do {
-               offset = fdt_node_offset_by_compatible(blob, offset,
-                                       "xlnx,ps7-ethernet-1.00.a");
-               if (offset != -1) {
-                       reg = fdtdec_get_addr(blob, offset, "reg");
-                       if (reg != FDT_ADDR_T_NONE) {
-                               offset = fdtdec_lookup_phandle(blob, offset,
-                                                              "phy-handle");
-                               if (offset != -1)
-                                       phy_reg = fdtdec_get_addr(blob, offset,
-                                                                 "reg");
-                               else
-                                       phy_reg = 0;
-
-                               debug("ZYNQ GEM: addr %x, phyaddr %x\n",
-                                     reg, phy_reg);
-
-                               ret |= zynq_gem_initialize(NULL, reg,
-                                                          phy_reg, 0);
-
-                       } else {
-                               debug("ZYNQ GEM: Can't get base address\n");
-                               return -1;
-                       }
-               }
-       } while (offset != -1);
-
-       return ret;
-}
-#endif
index 28eab4640760b1fff1d6664c96a5a5bcc10c420f..5c6ae5b5624e15897824ab69f2fae74fe6cc3af1 100644 (file)
@@ -87,7 +87,6 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
                                                        int txpp, int rxpp);
 int xilinx_ll_temac_eth_init(bd_t *bis, unsigned long base_addr, int flags,
                                                unsigned long ctrl_addr);
-int zynq_gem_of_init(const void *blob);
 int zynq_gem_initialize(bd_t *bis, phys_addr_t base_addr,
                        int phy_addr, u32 emio);
 /*