[PATCH v2 6/6] fec_imx: add support for IIM stored mac address
Baruch Siach
baruch at tkos.co.il
Mon Aug 16 10:10:38 EDT 2010
The mac address information is taken from the imx_iim driver if it's present.
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
drivers/net/fec_imx.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 40a7543..9e752f6 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -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)
--
1.7.1
More information about the barebox
mailing list