소스 검색

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 년 전
부모
커밋
d1ef25dd81
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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) {
 	if (setclear) {
 		/* Enable Ethernet pins */
 		/* 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 {
 	} else {
 	}
 	}