diff options
Diffstat (limited to 'drivers/net/tsi108_eth.c')
-rw-r--r-- | drivers/net/tsi108_eth.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/net/tsi108_eth.c b/drivers/net/tsi108_eth.c index 0bfc2c9c1c08..1aabc91f6458 100644 --- a/drivers/net/tsi108_eth.c +++ b/drivers/net/tsi108_eth.c | |||
@@ -82,6 +82,7 @@ struct tsi108_prv_data { | |||
82 | unsigned int phy; /* Index of PHY for this interface */ | 82 | unsigned int phy; /* Index of PHY for this interface */ |
83 | unsigned int irq_num; | 83 | unsigned int irq_num; |
84 | unsigned int id; | 84 | unsigned int id; |
85 | unsigned int phy_type; | ||
85 | 86 | ||
86 | struct timer_list timer;/* Timer that triggers the check phy function */ | 87 | struct timer_list timer;/* Timer that triggers the check phy function */ |
87 | unsigned int rxtail; /* Next entry in rxring to read */ | 88 | unsigned int rxtail; /* Next entry in rxring to read */ |
@@ -1256,11 +1257,11 @@ static void tsi108_init_phy(struct net_device *dev) | |||
1256 | if (i == 0) | 1257 | if (i == 0) |
1257 | printk(KERN_ERR "%s function time out \n", __FUNCTION__); | 1258 | printk(KERN_ERR "%s function time out \n", __FUNCTION__); |
1258 | 1259 | ||
1259 | #if (TSI108_PHY_TYPE == PHY_BCM54XX) /* Broadcom BCM54xx PHY */ | 1260 | if (data->phy_type == TSI108_PHY_BCM54XX) { |
1260 | tsi108_write_mii(data, 0x09, 0x0300); | 1261 | tsi108_write_mii(data, 0x09, 0x0300); |
1261 | tsi108_write_mii(data, 0x10, 0x1020); | 1262 | tsi108_write_mii(data, 0x10, 0x1020); |
1262 | tsi108_write_mii(data, 0x1c, 0x8c00); | 1263 | tsi108_write_mii(data, 0x1c, 0x8c00); |
1263 | #endif | 1264 | } |
1264 | 1265 | ||
1265 | tsi108_write_mii(data, | 1266 | tsi108_write_mii(data, |
1266 | MII_BMCR, | 1267 | MII_BMCR, |
@@ -1587,6 +1588,7 @@ tsi108_init_one(struct platform_device *pdev) | |||
1587 | data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); | 1588 | data->mii_if.supports_gmii = mii_check_gmii_support(&data->mii_if); |
1588 | 1589 | ||
1589 | data->phy = einfo->phy; | 1590 | data->phy = einfo->phy; |
1591 | data->phy_type = einfo->phy_type; | ||
1590 | data->irq_num = einfo->irq_num; | 1592 | data->irq_num = einfo->irq_num; |
1591 | data->id = pdev->id; | 1593 | data->id = pdev->id; |
1592 | dev->open = tsi108_open; | 1594 | dev->open = tsi108_open; |