diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-11-30 13:00:20 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-12-07 08:59:05 (GMT) |
commit | 687d73126361b45f77f977301d141771babd02c0 (patch) | |
tree | 9c5f30dfc1cb775851d11890d6bc51f568fa1953 /drivers | |
parent | c8e29271b1a45ec87386857b506cfd918d9a4ad2 (diff) | |
download | u-boot-687d73126361b45f77f977301d141771babd02c0.tar.xz |
net: gem: Remove zynq_gem_of_init()
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/zynq_gem.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 9ce1221..a569c77 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -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 |