diff options
author | Vitaly Andrianov <vitalya@ti.com> | 2015-07-08 11:56:01 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-07-27 15:01:58 -0400 |
commit | 5031ca59b52fce55bb143eb6af3f55e9a5a2d8af (patch) | |
tree | 7639625ba2054e53fdd6361c36c004a4dd21c722 | |
parent | 17c5bda2a91cf902e0897bd8178f96aa5e3adf78 (diff) | |
download | u-boot-imx-5031ca59b52fce55bb143eb6af3f55e9a5a2d8af.zip u-boot-imx-5031ca59b52fce55bb143eb6af3f55e9a5a2d8af.tar.gz u-boot-imx-5031ca59b52fce55bb143eb6af3f55e9a5a2d8af.tar.bz2 |
keystone2: net: add mcast function to keyston2 Ethernet driver
The MCAST_TFTP support requires that network drivers has mcast functon
implemented. This commit adds dummy keystone2_eth_bcast_addr() to meet
the requirement. As far as the driver doesn't use ALE and doesn't filter
any incoming packets, the function is empty.
Signed-off-by: Vitaly Andrianov <vitalya@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
-rw-r--r-- | drivers/net/keystone_net.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/keystone_net.c b/drivers/net/keystone_net.c index 0c5fdee..67b5702 100644 --- a/drivers/net/keystone_net.c +++ b/drivers/net/keystone_net.c @@ -512,6 +512,13 @@ static int keystone2_eth_rcv_packet(struct eth_device *dev) 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. */ @@ -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; +#ifdef CONFIG_MCAST_TFTP + dev->mcast = keystone2_eth_bcast_addr; +#endif eth_register(dev); |