projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: lpc32xx: add RMII phy mode support
[oweals/u-boot.git]
/
drivers
/
net
/
keystone_net.c
diff --git
a/drivers/net/keystone_net.c
b/drivers/net/keystone_net.c
index 35f1a57331318aa42b1d2a068dd273a133e753bd..67b570279ec3280b77851a356c4b83f46bbe9242 100644
(file)
--- a/
drivers/net/keystone_net.c
+++ b/
drivers/net/keystone_net.c
@@
-505,13
+505,20
@@
static int keystone2_eth_rcv_packet(struct eth_device *dev)
if (hd == NULL)
return 0;
if (hd == NULL)
return 0;
-
NetReceive
((uchar *)pkt, pkt_size);
+
net_process_received_packet
((uchar *)pkt, pkt_size);
ksnav_release_rxhd(&netcp_pktdma, hd);
return pkt_size;
}
ksnav_release_rxhd(&netcp_pktdma, hd);
return pkt_size;
}
+#ifdef CONFIG_MCAST_TFTP
+static int keystone2_eth_bcast_addr(struct eth_device *dev, u32 ip, u8 set)
+{
+ return 0;
+}
+#endif
+
/*
* This function initializes the EMAC hardware.
*/
/*
* This function initializes the EMAC hardware.
*/
@@
-537,6
+544,9
@@
int keystone2_emac_initialize(struct eth_priv_t *eth_priv)
dev->halt = keystone2_eth_close;
dev->send = keystone2_eth_send_packet;
dev->recv = keystone2_eth_rcv_packet;
dev->halt = keystone2_eth_close;
dev->send = keystone2_eth_send_packet;
dev->recv = keystone2_eth_rcv_packet;
+#ifdef CONFIG_MCAST_TFTP
+ dev->mcast = keystone2_eth_bcast_addr;
+#endif
eth_register(dev);
eth_register(dev);