]> 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 2a5cc445530f9f58fc29abd03858d60f1bd6cb57..d3d40b12adf2ce06017f13ea309692eaaf14ac30 100644 (file)
@@ -322,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;
 
 }
@@ -360,33 +360,3 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
 
        return 1;
 }
-
-#ifdef CONFIG_OF_CONTROL
-int xilinx_emaclite_of_init(const void *blob)
-{
-       int offset = 0;
-       u32 ret = 0;
-       u32 reg;
-
-       do {
-               offset = fdt_node_offset_by_compatible(blob, offset,
-                                       "xlnx,xps-ethernetlite-1.00.a");
-               if (offset != -1) {
-                       reg = fdtdec_get_addr(blob, offset, "reg");
-                       if (reg != FDT_ADDR_T_NONE) {
-                               u32 rxpp = fdtdec_get_int(blob, offset,
-                                                       "xlnx,rx-ping-pong", 0);
-                               u32 txpp = fdtdec_get_int(blob, offset,
-                                                       "xlnx,tx-ping-pong", 0);
-                               ret |= xilinx_emaclite_initialize(NULL, reg,
-                                                               txpp, rxpp);
-                       } else {
-                               debug("EMACLITE: Can't get base address\n");
-                               return -1;
-                       }
-               }
-       } while (offset != -1);
-
-       return ret;
-}
-#endif