mirror of
https://github.com/u-boot/u-boot.git
synced 2025-01-20 01:33:26 +08:00
net: emaclite: Remove ancient OF probe function
Prepare for DM move. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
338a5f2bf1
commit
8ce6947831
@ -360,33 +360,3 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(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
|
|
||||||
|
@ -80,7 +80,6 @@ int tsi108_eth_initialize(bd_t *bis);
|
|||||||
int uec_standard_init(bd_t *bis);
|
int uec_standard_init(bd_t *bis);
|
||||||
int uli526x_initialize(bd_t *bis);
|
int uli526x_initialize(bd_t *bis);
|
||||||
int armada100_fec_register(unsigned long base_addr);
|
int armada100_fec_register(unsigned long base_addr);
|
||||||
int xilinx_emaclite_of_init(const void *blob);
|
|
||||||
int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
|
int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr,
|
||||||
int txpp, int rxpp);
|
int txpp, int rxpp);
|
||||||
int xilinx_ll_temac_eth_init(bd_t *bis, unsigned long base_addr, int flags,
|
int xilinx_ll_temac_eth_init(bd_t *bis, unsigned long base_addr, int flags,
|
||||||
|
Loading…
Reference in New Issue
Block a user