This will allow Linux to not make up a new MAC on each boot and never
keep the same IP address from boot to boot.
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
return 1;
}
+static int Xgmac_write_hwaddr(struct eth_device *dev)
+{
+ /* Initialize the first MAC filter with our address */
+ XEmacPss_SetMacAddress((XEmacPss *)dev->priv, dev->enetaddr, 1);
+
+ return 0;
+}
+
int Xgmac_register(bd_t * bis)
{
struct eth_device *dev;
dev->halt = Xgmac_halt;
dev->send = Xgmac_send;
dev->recv = Xgmac_rx;
+ dev->write_hwaddr = Xgmac_write_hwaddr;
eth_register(dev);