9
0
Fork 0

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:
Baruch Siach 2010-08-16 17:10:38 +03:00 committed by Sascha Hauer
parent afd8638962
commit 9965f8f78a
1 changed files with 2 additions and 2 deletions

View File

@ -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)