diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-01-30 02:35:17 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-01-30 02:35:17 +0000 |
commit | 44970e00614f9753d7c8051d3f48ab817d20a4a8 (patch) | |
tree | 90ec6e54f7b2714a39ce8ec5e7952f9ba4553fe1 /sys/dev/pci/if_bge.c | |
parent | b2e2e133dc739e8fb632e812f2bebfb89c609b03 (diff) |
Rough in more support for 5787/5755 chips so far known to not work or
unreported in the wild. In this case add a PHY workaround for an eventual
mobile version of the chipset. No change to existing functionality.
From Michael Chan (mchan@broadcom), via Linux tg3 and brad.
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index 4f9d0afd33a..65ee168cd84 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.204 2007/01/19 01:16:14 krw Exp $ */ +/* $OpenBSD: if_bge.c,v 1.205 2007/01/30 02:35:16 krw Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1840,6 +1840,8 @@ bge_attach(struct device *parent, struct device *self, void *aux) if (BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5755 || BGE_ASICREV(sc->bge_chipid) == BGE_ASICREV_BCM5787) sc->bge_flags |= BGE_PHY_JITTER_BUG; + if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_BROADCOM_BCM5755M) + sc->bge_flags |= BGE_PHY_ADJUST_TRIM; else if (BGE_ASICREV(sc->bge_chipid) != BGE_ASICREV_BCM5906) sc->bge_flags |= BGE_PHY_BER_BUG; } |