Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Support BCM5709CAX and BCM5709C PHYs.
details: https://anonhg.NetBSD.org/src/rev/4a9c74dea912
branches: trunk
changeset: 749142:4a9c74dea912
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Nov 18 23:02:12 2009 +0000
description:
Support BCM5709CAX and BCM5709C PHYs.
diffstat:
sys/dev/mii/brgphy.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (41 lines):
diff -r feb9a0372146 -r 4a9c74dea912 sys/dev/mii/brgphy.c
--- a/sys/dev/mii/brgphy.c Wed Nov 18 23:01:47 2009 +0000
+++ b/sys/dev/mii/brgphy.c Wed Nov 18 23:02:12 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brgphy.c,v 1.50 2009/10/19 18:41:13 bouyer Exp $ */
+/* $NetBSD: brgphy.c,v 1.51 2009/11/18 23:02:12 bouyer Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.50 2009/10/19 18:41:13 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.51 2009/11/18 23:02:12 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -168,6 +168,12 @@
{ MII_OUI_BROADCOM, MII_MODEL_BROADCOM_BCM5708C,
MII_STR_BROADCOM_BCM5708C },
+ { MII_OUI_BROADCOM2, MII_MODEL_BROADCOM2_BCM5709C,
+ MII_STR_BROADCOM2_BCM5709C },
+
+ { MII_OUI_BROADCOM2, MII_MODEL_BROADCOM2_BCM5709CAX,
+ MII_STR_BROADCOM2_BCM5709CAX },
+
{ MII_OUI_BROADCOM2, MII_MODEL_BROADCOM2_BCM5722,
MII_STR_BROADCOM2_BCM5722 },
@@ -303,8 +309,8 @@
}
PHY_WRITE(sc, MII_100T2CR, 0);
+ PHY_WRITE(sc, MII_ANAR, ANAR_CSMA);
PHY_WRITE(sc, MII_BMCR, speed);
- PHY_WRITE(sc, MII_ANAR, ANAR_CSMA);
if (IFM_SUBTYPE(ife->ifm_media) != IFM_1000_T)
break;
Home |
Main Index |
Thread Index |
Old Index