summaryrefslogtreecommitdiff
path: root/cpu/mcf52x2/cpu_init.c
diff options
context:
space:
mode:
authorRichard Retanubun <RichardRetanubun@RuggedCom.com>2009-01-23 10:47:13 -0500
committerJohn Rigby <jrigby@freescale.com>2009-02-06 14:54:47 -0700
commitd1ef25dd81c79dcfad5c2ff0162b1bea21d04bc3 (patch)
tree1cba31fbd9536c64a30ab4a0ba3ef7e2e41067c0 /cpu/mcf52x2/cpu_init.c
parentee73cc59ab904976af3c33b454fc84f78618b2d1 (diff)
downloadu-boot-imx-d1ef25dd81c79dcfad5c2ff0162b1bea21d04bc3.zip
u-boot-imx-d1ef25dd81c79dcfad5c2ff0162b1bea21d04bc3.tar.gz
u-boot-imx-d1ef25dd81c79dcfad5c2ff0162b1bea21d04bc3.tar.bz2
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>
Diffstat (limited to 'cpu/mcf52x2/cpu_init.c')
-rw-r--r--cpu/mcf52x2/cpu_init.c3
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 {
}