Commit 109ca303 authored by James Morris's avatar James Morris Committed by David S. Miller

Tigon3: Handle Netgear GA302T correctly.

parent 87477c8b
/* $Id: tg3.c,v 1.43.2.79 2002/03/12 07:11:17 davem Exp $
/* $Id: tg3.c,v 1.43.2.80 2002/03/14 00:10:04 davem Exp $
* tg3.c: Broadcom Tigon3 ethernet driver.
*
* Copyright (C) 2001, 2002 David S. Miller (davem@redhat.com)
......@@ -956,6 +956,17 @@ static int tg3_setup_copper_phy(struct tg3 *tp)
tp->link_config.active_speed == SPEED_10))
tp->mac_mode |= MAC_MODE_LINK_POLARITY;
}
/* ??? Without this setting Netgear GA302T PHY does not
* ??? send/receive packets...
*/
if ((tp->phy_id & PHY_ID_MASK) == PHY_ID_BCM5411 &&
tp->pci_chip_rev_id == CHIPREV_ID_5700_ALTIMA) {
tp->mi_mode |= MAC_MI_MODE_AUTO_POLL;
tw32(MAC_MI_MODE, tp->mi_mode);
udelay(40);
}
tw32(MAC_MODE, tp->mac_mode);
if (tp->tg3_flags & TG3_FLAG_USE_LINKCHG_REG) {
......
......@@ -99,6 +99,8 @@
#define CHIPREV_ID_5700_A1 0x7001
#define CHIPREV_ID_5700_B0 0x7100
#define CHIPREV_ID_5700_B1 0x7101
#define CHIPREV_ID_5700_B3 0x7102
#define CHIPREV_ID_5700_ALTIMA 0x7104
#define CHIPREV_ID_5700_C0 0x7200
#define CHIPREV_ID_5701_A0 0x0000
#define CHIPREV_ID_5701_B0 0x0100
......@@ -1843,6 +1845,7 @@ struct tg3 {
#define PHY_REV_BCM5401_B0 0x1
#define PHY_REV_BCM5401_B2 0x3
#define PHY_REV_BCM5401_C0 0x6
#define PHY_REV_BCM5411_X0 0x1 /* Found on Netgear GA302T */
enum phy_led_mode led_mode;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment