forked from Imagelibrary/rtems
applied patch from Robert Grimes to correctly set the link speed to 100MBit
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user