fec_imx: add support for IIM stored mac address
The mac address information is taken from the imx_iim driver if it's present. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
afd8638962
commit
9965f8f78a
|
@ -32,6 +32,7 @@
|
|||
#include <mach/imx-regs.h>
|
||||
#include <clock.h>
|
||||
#include <mach/clock.h>
|
||||
#include <mach/iim.h>
|
||||
#include <xfuncs.h>
|
||||
|
||||
#include "fec_imx.h"
|
||||
|
@ -235,8 +236,7 @@ static void fec_rbd_clean(int last, struct buffer_descriptor *pRbd)
|
|||
|
||||
static int fec_get_hwaddr(struct eth_device *dev, unsigned char *mac)
|
||||
{
|
||||
/* no eeprom */
|
||||
return -1;
|
||||
return imx_iim_get_mac(mac);
|
||||
}
|
||||
|
||||
static int fec_set_hwaddr(struct eth_device *dev, unsigned char *mac)
|
||||
|
|
Loading…
Reference in New Issue