Skip to contentSkip to conversation

Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C

PATCH New Richard Retanubun 1 participant 2 messages Jan 23, 2009 – Feb 4, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C

Discontinue the use of CONFIG_SYS_FECI2C (only used by M5271EVB). Use read-modify-write to activate the FEC pins without disabling I2C.

---
  cpu/mcf52x2/cpu_init.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
cpu/mcf52x2/cpu_init.c +2 -1
index 66f9164..d88acc5 100644
@@ -219,7 +219,8 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
  {
  	if (setclear) {
  		/* Enable Ethernet pins */
-		mbar_writeByte(MCF_GPIO_PAR_FECI2C, CONFIG_SYS_FECI2C);
+		mbar_writeByte(MCF_GPIO_PAR_FECI2C,
+			       (mbar_readByte(MCF_GPIO_PAR_FECI2C) | 0xF0));
  	} else {
  	}
 
Signature · 1 line
1.5.6.5
#1 lore raw

PATCH 3/7 Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C

Discontinue the use of CONFIG_SYS_FECI2C (only used by M5271EVB). Use read-modify-write to activate the FEC pins without disabling I2C.

---

Rebased on:

commit 9d8811c5bd2b7dd6307742cf22fbdb7953b6f816
Merge: 716ebf4... bd99ec1...
Author: Wolfgang Denk <[email protected]>
Date: Tue Feb 3 23:16:15 2009 +0100

  cpu/mcf52x2/cpu_init.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)
cpu/mcf52x2/cpu_init.c +2 -1
index 66f9164..d88acc5 100644
@@ -219,7 +219,8 @@ int fecpin_setclear(struct eth_device *dev, int setclear)
  {
  	if (setclear) {
  		/* Enable Ethernet pins */
-		mbar_writeByte(MCF_GPIO_PAR_FECI2C, CONFIG_SYS_FECI2C);
+		mbar_writeByte(MCF_GPIO_PAR_FECI2C,
+			       (mbar_readByte(MCF_GPIO_PAR_FECI2C) | 0xF0));
  	} else {
  	}
 
Signature · 1 line
1.5.6.5