Skip to contentSkip to conversation

fec_mxc don't use internal eeprom on MX25

PATCH New John Rigby 2 participants 2 messages Apr 8, 2010 Network drivers

lore
Share & tools
lore

John Rigby

author
#0 lore raw

PATCH 1/1 fec_mxc don't use internal eeprom on MX25

Avoid using the internal eeprom onf MX25
like MX51 already does.

---
 drivers/net/fec_mxc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/fec_mxc.c +2 -2
index 8c4ade5..fdc288c 100644
@@ -314,9 +314,9 @@ static int fec_get_hwaddr(struct eth_device *dev, unsigned char *mac)
 {
 /*
  * The MX27 can store the mac address in internal eeprom
- * This mechanism is not supported now by MX51
+ * This mechanism is not supported now by MX51 or MX25
  */
-#ifdef CONFIG_MX51
+#if defined(CONFIG_MX51) || defined(CONFIG_MX25)
 	return -1;
 #else
 	struct iim_regs *iim = (struct iim_regs *)IMX_IIM_BASE;
Signature · 1 line
1.6.4.2.236.gf324c
Applied
#1 lore raw

PATCH 1/1 fec_mxc don't use internal eeprom on MX25

Hi John,

Quoted 16 lines · John Rigby

Avoid using the internal eeprom onf MX25
like MX51 already does.

---
  drivers/net/fec_mxc.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/fec_mxc.c +0 -0
index 8c4ade5..fdc288c 100644
@@ -314,9 +314,9 @@ static int fec_get_hwaddr(struct eth_device *dev, unsigned char *mac)
  {

drivers/net/fec_mxc.c static int fec_get_hwaddr(struct eth_device *dev, unsigned char *mac) · line 322

Quoted 10 lines
drivers/net/fec_mxc.c +2 -2
  /*
   * The MX27 can store the mac address in internal eeprom
- * This mechanism is not supported now by MX51
+ * This mechanism is not supported now by MX51 or MX25
   */
-#ifdef CONFIG_MX51
+#if defined(CONFIG_MX51) || defined(CONFIG_MX25)
  	return -1;
  #else
  	struct iim_regs *iim = (struct iim_regs *)IMX_IIM_BASE;

Applied to net repo.

thanks,
Ben