projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee73cc5
)
Coldfire: M5271EVB: Remove usage of CONFIG_SYS_FECI2C
author
Richard Retanubun
<RichardRetanubun@RuggedCom.com>
Fri, 23 Jan 2009 15:47:13 +0000
(10:47 -0500)
committer
John Rigby
<jrigby@freescale.com>
Fri, 6 Feb 2009 21:54:47 +0000
(14:54 -0700)
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
patch
|
blob
|
history
diff --git
a/cpu/mcf52x2/cpu_init.c
b/cpu/mcf52x2/cpu_init.c
index 66f9164d562971bb17a398d43985402b85d2148a..d88acc5e9bf5500628e1b368c4e8d7f84c2bcca3 100644
(file)
--- 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 {
}