All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 03/07] Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C
@ 2009-01-23 22:04 Richard Retanubun
  2009-02-04 15:36 ` [U-Boot] [PATCH 03/07] [REBASED] " Richard Retanubun
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Retanubun @ 2009-01-23 22:04 UTC (permalink / raw)
  To: u-boot

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


Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
---
  cpu/mcf52x2/cpu_init.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c
index 66f9164..d88acc5 100644
--- a/cpu/mcf52x2/cpu_init.c
+++ b/cpu/mcf52x2/cpu_init.c
@@ -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 {
  	}

-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH 03/07] [REBASED] Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C
  2009-01-23 22:04 [U-Boot] [PATCH 03/07] Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C Richard Retanubun
@ 2009-02-04 15:36 ` Richard Retanubun
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Retanubun @ 2009-02-04 15:36 UTC (permalink / raw)
  To: u-boot

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

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
---

Rebased on:

commit 9d8811c5bd2b7dd6307742cf22fbdb7953b6f816
Merge: 716ebf4... bd99ec1...
Author: Wolfgang Denk <wd@denx.de>
Date:   Tue Feb 3 23:16:15 2009 +0100

  cpu/mcf52x2/cpu_init.c |    3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c
index 66f9164..d88acc5 100644
--- a/cpu/mcf52x2/cpu_init.c
+++ b/cpu/mcf52x2/cpu_init.c
@@ -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 {
  	}

-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-04 15:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 22:04 [U-Boot] [PATCH 03/07] Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C Richard Retanubun
2009-02-04 15:36 ` [U-Boot] [PATCH 03/07] [REBASED] " Richard Retanubun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.