From: Richard Retanubun Date: Fri, 23 Jan 2009 15:47:13 +0000 (-0500) Subject: Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C X-Git-Tag: v2009.03-rc1~109^2~3^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d1ef25dd81c79dcfad5c2ff0162b1bea21d04bc3;p=oweals%2Fu-boot.git 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 --- diff --git a/cpu/mcf52x2/cpu_init.c b/cpu/mcf52x2/cpu_init.c index 66f9164d56..d88acc5e9b 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 { }