Bläddra i källkod

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.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Richard Retanubun 16 år sedan
förälder
incheckning
d1ef25dd81
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. 2 1
      cpu/mcf52x2/cpu_init.c

+ 2 - 1
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 {
 	}