diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-24 00:45:36 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-08-24 00:45:36 -0400 |
commit | 699a71238856b19091503c671bac8abb1e3f9a3a (patch) | |
tree | db0e6db06961db05c35f3df61e7f14b845b7cd29 /drivers/net/e1000/e1000_hw.c | |
parent | 85a7ea1b0a3263f3ad423b789a841d03c9acbb65 (diff) | |
parent | 891b11f619dcfe045015394fa89041f02dac9428 (diff) |
Merge branch 'upstream-fixes' of git://lost.foo-projects.org/~ahkok/git/netdev-2.6 into tmp
Diffstat (limited to 'drivers/net/e1000/e1000_hw.c')
-rw-r--r-- | drivers/net/e1000/e1000_hw.c | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/drivers/net/e1000/e1000_hw.c b/drivers/net/e1000/e1000_hw.c index b3b919116e0f..f62d17848332 100644 --- a/drivers/net/e1000/e1000_hw.c +++ b/drivers/net/e1000/e1000_hw.c | |||
@@ -745,6 +745,17 @@ e1000_init_hw(struct e1000_hw *hw) | |||
745 | 745 | ||
746 | DEBUGFUNC("e1000_init_hw"); | 746 | DEBUGFUNC("e1000_init_hw"); |
747 | 747 | ||
748 | /* force full DMA clock frequency for 10/100 on ICH8 A0-B0 */ | ||
749 | if (hw->mac_type == e1000_ich8lan) { | ||
750 | reg_data = E1000_READ_REG(hw, TARC0); | ||
751 | reg_data |= 0x30000000; | ||
752 | E1000_WRITE_REG(hw, TARC0, reg_data); | ||
753 | |||
754 | reg_data = E1000_READ_REG(hw, STATUS); | ||
755 | reg_data &= ~0x80000000; | ||
756 | E1000_WRITE_REG(hw, STATUS, reg_data); | ||
757 | } | ||
758 | |||
748 | /* Initialize Identification LED */ | 759 | /* Initialize Identification LED */ |
749 | ret_val = e1000_id_led_init(hw); | 760 | ret_val = e1000_id_led_init(hw); |
750 | if(ret_val) { | 761 | if(ret_val) { |
@@ -1351,11 +1362,14 @@ e1000_copper_link_igp_setup(struct e1000_hw *hw) | |||
1351 | E1000_WRITE_REG(hw, LEDCTL, led_ctrl); | 1362 | E1000_WRITE_REG(hw, LEDCTL, led_ctrl); |
1352 | } | 1363 | } |
1353 | 1364 | ||
1354 | /* disable lplu d3 during driver init */ | 1365 | /* The NVM settings will configure LPLU in D3 for IGP2 and IGP3 PHYs */ |
1355 | ret_val = e1000_set_d3_lplu_state(hw, FALSE); | 1366 | if (hw->phy_type == e1000_phy_igp) { |
1356 | if (ret_val) { | 1367 | /* disable lplu d3 during driver init */ |
1357 | DEBUGOUT("Error Disabling LPLU D3\n"); | 1368 | ret_val = e1000_set_d3_lplu_state(hw, FALSE); |
1358 | return ret_val; | 1369 | if (ret_val) { |
1370 | DEBUGOUT("Error Disabling LPLU D3\n"); | ||
1371 | return ret_val; | ||
1372 | } | ||
1359 | } | 1373 | } |
1360 | 1374 | ||
1361 | /* disable lplu d0 during driver init */ | 1375 | /* disable lplu d0 during driver init */ |