svn commit: r215960 - head/sys/dev/usb/net

Pyun YongHyeon yongari at FreeBSD.org
Sun Nov 28 00:52:03 UTC 2010


Author: yongari
Date: Sun Nov 28 00:52:02 2010
New Revision: 215960
URL: http://svn.freebsd.org/changeset/base/215960

Log:
  Apply GPIO configuration for all CICADA PHYs.
  While I'm here show selected phymode to ease of debugging.

Modified:
  head/sys/dev/usb/net/if_axe.c

Modified: head/sys/dev/usb/net/if_axe.c
==============================================================================
--- head/sys/dev/usb/net/if_axe.c	Sun Nov 28 00:26:08 2010	(r215959)
+++ head/sys/dev/usb/net/if_axe.c	Sun Nov 28 00:52:02 2010	(r215960)
@@ -536,8 +536,9 @@ axe_ax88178_init(struct axe_softc *sc)
 	}
 
 	if (bootverbose)
-		device_printf(sc->sc_ue.ue_dev, "EEPROM data : 0x%04x\n",
-		    eeprom);
+		device_printf(sc->sc_ue.ue_dev,
+		    "EEPROM data : 0x%04x, phymode : 0x%02x\n", eeprom,
+		    phymode);
 	/* Program GPIOs depending on PHY hardware. */
 	switch (phymode) {
 	case AXE_PHY_MODE_MARVELL:
@@ -554,6 +555,8 @@ axe_ax88178_init(struct axe_softc *sc)
 			    AXE_GPIO1_EN, hz / 32);
 		break;
 	case AXE_PHY_MODE_CICADA:
+	case AXE_PHY_MODE_CICADA_V2:
+	case AXE_PHY_MODE_CICADA_V2_ASIX:
 		if (gpio0 == 1)
 			AXE_GPIO_WRITE(AXE_GPIO_RELOAD_EEPROM | AXE_GPIO0 |
 			    AXE_GPIO0_EN, hz / 32);


More information about the svn-src-head mailing list