applied patch from Robert Grimes to correctly set the link speed to 100MBit

This commit is contained in:
Thomas Doerfler
2007-08-09 20:27:35 +00:00
parent ece78df6c5
commit 38630e9849
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2007-08-09 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* network/xiltemac.c:
applied patch from Robert Grimes to correctly set the link speed
to 100MBit
2007-07-27 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* linkcmds: removed superfluous bss section

View File

@@ -276,7 +276,7 @@ void xilTemacStart(struct ifnet *ifp)
/* Set the link speed */
uint32_t emcfg = IN32(base + XTE_ECFG_OFFSET);
printk("xiltemacStart, default linkspeed: %08x\n", emcfg);
emcfg |= XTE_ECFG_LINKSPD_100;
emcfg = (emcfg & ~XTE_ECFG_LINKSPD_MASK) | XTE_ECFG_LINKSPD_100;
OUT32(base + XTE_ECFG_OFFSET, emcfg);
/* Set phy divisor and enable mdio. For a plb bus freq of 150MHz (the