]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/xilinx_emaclite.c
net: emaclite: Remove ancient OF probe function
[u-boot] / drivers / net / xilinx_emaclite.c
index 0a5209d2f80592384c83858f2324adc469f32b11..d3d40b12adf2ce06017f13ea309692eaaf14ac30 100644 (file)
@@ -14,8 +14,6 @@
 #include <asm/io.h>
 #include <fdtdec.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 #undef DEBUG
 
 #define ENET_ADDR_LENGTH       6
@@ -324,7 +322,7 @@ static int emaclite_recv(struct eth_device *dev)
        out_be32 (baseaddress + XEL_RSR_OFFSET, reg);
 
        debug("Packet receive from 0x%x, length %dB\n", baseaddress, length);
-       NetReceive((uchar *) etherrxbuff, length);
+       net_process_received_packet((uchar *)etherrxbuff, length);
        return length;
 
 }
@@ -362,30 +360,3 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
 
        return 1;
 }
-
-#ifdef CONFIG_OF_CONTROL
-int xilinx_emaclite_init(bd_t *bis)
-{
-       int offset = 0;
-       u32 ret = 0;
-       u32 reg;
-
-       do {
-               offset = fdt_node_offset_by_compatible(gd->fdt_blob, offset,
-                                       "xlnx,xps-ethernetlite-1.00.a");
-               if (offset != -1) {
-                       reg = fdtdec_get_addr(gd->fdt_blob, offset, "reg");
-                       if (reg != FDT_ADDR_T_NONE) {
-                               u32 rxpp = fdtdec_get_int(gd->fdt_blob, offset,
-                                                       "xlnx,rx-ping-pong", 0);
-                               u32 txpp = fdtdec_get_int(gd->fdt_blob, offset,
-                                                       "xlnx,tx-ping-pong", 0);
-                               ret |= xilinx_emaclite_initialize(bis, reg,
-                                                               txpp, rxpp);
-                       }
-               }
-       } while (offset != -1);
-
-       return ret;
-}
-#endif