Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7273
b: refs/heads/master
c: c3d6f1f
h: refs/heads/master
i:
  7271: c801287
v: v3
  • Loading branch information
Francois Romieu authored and Jeff Garzik committed Sep 5, 2005
1 parent 3c4f70e commit f4c0c58
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6614a6dc6ebba4d3ca0ba5ea023b61a7d22ab00b
refs/heads/master: c3d6f1f24cf3fdfdad3bff631349dc2aef06c8df
19 changes: 17 additions & 2 deletions trunk/drivers/net/sis190.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ enum sis190_eeprom_address {

enum sis190_feature {
F_HAS_RGMII = 1,
F_PHY_88E1111 = 2
F_PHY_88E1111 = 2,
F_PHY_BCM5461 = 4
};

struct sis190_private {
Expand Down Expand Up @@ -321,7 +322,7 @@ static struct mii_chip_info {
unsigned int type;
u32 feature;
} mii_chip_table[] = {
{ "Broadcom PHY BCM5461", { 0x0020, 0x60c0 }, LAN, 0 },
{ "Broadcom PHY BCM5461", { 0x0020, 0x60c0 }, LAN, F_PHY_BCM5461 },
{ "Agere PHY ET1101B", { 0x0282, 0xf010 }, LAN, 0 },
{ "Marvell PHY 88E1111", { 0x0141, 0x0cc0 }, LAN, F_PHY_88E1111 },
{ "Realtek PHY RTL8201", { 0x0000, 0x8200 }, LAN, 0 },
Expand Down Expand Up @@ -960,8 +961,22 @@ static void sis190_phy_task(void * data)

p->ctl |= SIS_R32(StationControl) & ~0x0f001c00;

if ((tp->features & F_HAS_RGMII) &&
(tp->features & F_PHY_BCM5461)) {
// Set Tx Delay in RGMII mode.
mdio_write(ioaddr, phy_id, 0x18, 0xf1c7);
udelay(200);
mdio_write(ioaddr, phy_id, 0x1c, 0x8c00);
p->ctl |= 0x03000000;
}

SIS_W32(StationControl, p->ctl);

if (tp->features & F_HAS_RGMII) {
SIS_W32(RGDelay, 0x0441);
SIS_W32(RGDelay, 0x0440);
}

net_link(tp, KERN_INFO "%s: link on %s mode.\n", dev->name,
p->msg);
netif_carrier_on(dev);
Expand Down

0 comments on commit f4c0c58

Please sign in to comment.