From 59be9024996eb24e2a661699033ff41819859585 Mon Sep 17 00:00:00 2001 From: Thomas Doerfler Date: Fri, 18 Jul 2008 11:24:39 +0000 Subject: mpc8249eamds support for Gigabit Ethernet works again initialize PHY registers late enough, so that phy access is possible --- c/src/lib/libcpu/powerpc/ChangeLog | 5 +++++ c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c | 19 ++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) (limited to 'c/src/lib/libcpu') diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog index 13b1884e80..bb87f7d748 100644 --- a/c/src/lib/libcpu/powerpc/ChangeLog +++ b/c/src/lib/libcpu/powerpc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-18 Thomas Doerfler + + * mpc83xx/network/tsec.c: + initialize PHY registers late enough, so that phy access is possible + 2008-07-17 Thomas Doerfler * rtems/powerpc/powerpc.h: 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 */ -- cgit v1.2.3