mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-17 16:44:43 +02:00
Put back some code from the 2.4 driver, supposed to boot network perfs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8354 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e2b5ab4233
commit
533b9e3bd4
@ -871,7 +871,8 @@ for (i = 0; i < RX_DCNT; i++) {
|
||||
|
||||
if (PHY_MODE == 0x3100)
|
||||
lp->phy_mode = phy_mode_chk(dev);
|
||||
else lp->phy_mode = (PHY_MODE & 0x0100) ? 0x8000:0x0;
|
||||
else
|
||||
lp->phy_mode = (PHY_MODE & 0x0100) ? 0x8000:0x0;
|
||||
}
|
||||
/* MAC Bus Control Register */
|
||||
outw(MBCR_DEFAULT, ioaddr+0x8);
|
||||
@ -880,6 +881,16 @@ for (i = 0; i < RX_DCNT; i++) {
|
||||
lp->mcr0 |= lp->phy_mode;
|
||||
outw(lp->mcr0, ioaddr);
|
||||
|
||||
/* set interrupt waiting time and packet numbers */
|
||||
outw(0x0802, ioaddr + 0x0C);
|
||||
outw(0x0802, ioaddr + 0x10);
|
||||
|
||||
/* upgrade performance (by RDC guys) */
|
||||
phy_write(ioaddr,30,17,(phy_read(ioaddr,30,17)|0x4000)); //bit 14=1
|
||||
phy_write(ioaddr,30,17,~((~phy_read(ioaddr,30,17))|0x2000)); //bit 13=0
|
||||
phy_write(ioaddr,0,19,0x0000);
|
||||
phy_write(ioaddr,0,30,0x01F0);
|
||||
|
||||
/* Interrupt Mask Register */
|
||||
outw(R6040_INT_MASK, ioaddr + 0x40);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user