From d1d47c03b5f5096d55bdf52b56427a1e4498a942 Mon Sep 17 00:00:00 2001 From: brad Date: Sat, 12 Jul 2008 05:31:14 +0000 Subject: [PATCH] Add support for the Marvell 88E8016 PHY. ok dlg@ --- sys/dev/mii/eephy.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/mii/eephy.c b/sys/dev/mii/eephy.c index 4a60b7457c7..8632ca8fca5 100644 --- a/sys/dev/mii/eephy.c +++ b/sys/dev/mii/eephy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eephy.c,v 1.43 2007/11/18 18:10:13 krw Exp $ */ +/* $OpenBSD: eephy.c,v 1.44 2008/07/12 05:31:14 brad Exp $ */ /* * Principal Author: Parag Patel * Copyright (c) 2001 @@ -99,6 +99,8 @@ static const struct mii_phydesc eephys[] = { MII_STR_MARVELL_E1118 }, { MII_OUI_MARVELL, MII_MODEL_MARVELL_E1149, MII_STR_MARVELL_E1149 }, + { MII_OUI_MARVELL, MII_MODEL_MARVELL_E3016, + MII_STR_MARVELL_E3016}, { MII_OUI_MARVELL, MII_MODEL_MARVELL_E3082, MII_STR_MARVELL_E3082 }, { MII_OUI_xxMARVELL, MII_MODEL_xxMARVELL_E1000_5, @@ -198,6 +200,7 @@ eephyattach(struct device *parent, struct device *self, void *aux) /* Enable auto crossover. */ switch (sc->mii_model) { + case MII_MODEL_MARVELL_E3016: case MII_MODEL_MARVELL_E3082: /* Bits are in a different position. */ reg |= (E1000_SCR_AUTO_X_MODE >> 1); -- 2.20.1