summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-08-16 17:10:38 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2010-08-17 10:21:26 +0200
commit9965f8f78a17941889346d760ed3136fa1bae42c (patch)
treeeb4c9b5097de0b2328be52c849509d9f0d8454bf /drivers/net
parentafd86389624a1c47e7873f21f75b2241d2b6438b (diff)
downloadbarebox-9965f8f78a17941889346d760ed3136fa1bae42c.tar.gz
barebox-9965f8f78a17941889346d760ed3136fa1bae42c.tar.xz
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/fec_imx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 40a7543706..9e752f64db 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)