summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-07-18 11:24:39 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-07-18 11:24:39 +0000
commit59be9024996eb24e2a661699033ff41819859585 (patch)
treeac0b0327d814ee1b4294365f41162c029b7d67e6 /c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c
parentresolved conflict (diff)
downloadrtems-59be9024996eb24e2a661699033ff41819859585.tar.bz2
mpc8249eamds support for Gigabit Ethernet works again
initialize PHY registers late enough, so that phy access is possible
Diffstat (limited to '')
-rw-r--r--c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c
index 32812114ab..c7b3169d56 100644
--- a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c
+++ b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c
@@ -1503,6 +1503,16 @@ static void mpc83xx_tsec_init
sc->reg_ptr->rctrl &= ~M83xx_TSEC_RCTRL_PROM;
}
+#if defined(HSC_CM01)
+ /*
+ * for HSC CM01: we need to configure the PHY to use maximum skew adjust
+ */
+
+ mpc83xx_tsec_mdio_write(-1,sc,31,1);
+ mpc83xx_tsec_mdio_write(-1,sc,28,0xf000);
+ mpc83xx_tsec_mdio_write(-1,sc,31,0);
+#endif
+
/*
* init timer so the "watchdog function gets called periodically
*/
@@ -1954,15 +1964,6 @@ static int mpc83xx_tsec_driver_attach
ifp->if_snd.ifq_maxlen = ifqmaxlen;
}
-#if defined(HSC_CM01)
- /*
- * for HSC CM01: we need to configure the PHY to use maximum skew adjust
- */
-
- mpc83xx_tsec_mdio_write(-1,sc,31,1);
- mpc83xx_tsec_mdio_write(-1,sc,28,0xf000);
- mpc83xx_tsec_mdio_write(-1,sc,31,0);
-#endif
/*
* Attach the interface
*/