Skip to content
Snippets Groups Projects
Commit d1ef25dd authored by Richard Retanubun's avatar Richard Retanubun Committed by John Rigby
Browse files

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: default avatarRichard Retanubun <RichardRetanubun@RuggedCom.com>
parent ee73cc59
No related branches found
No related tags found
No related merge requests found
...@@ -219,7 +219,8 @@ int fecpin_setclear(struct eth_device *dev, int setclear) ...@@ -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 {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment