diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-01-09 05:33:09 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-01-09 05:33:09 +0000 |
commit | e9a68fe6e9900ab2d5649aea8afdba5fa425509d (patch) | |
tree | cd5052f0a2bc58336bbbf24876d55c624c7d62ca | |
parent | d8862837d00b64dd7d286b0984d8ba350b999488 (diff) |
Explicitly turn on mii/gmii/rgmii for the 178/gigabit devices
from FreeBSD and confirmed with the datasheet.
-rw-r--r-- | sys/dev/usb/if_axe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/if_axe.c b/sys/dev/usb/if_axe.c index 1218ffd7174..9de60510f4c 100644 --- a/sys/dev/usb/if_axe.c +++ b/sys/dev/usb/if_axe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_axe.c,v 1.95 2009/11/22 22:13:51 jsg Exp $ */ +/* $OpenBSD: if_axe.c,v 1.96 2010/01/09 05:33:08 jsg Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Jonathan Gray <jsg@openbsd.org> @@ -518,6 +518,9 @@ axe_ax88178_init(struct axe_softc *sc) axe_cmd(sc, AXE_CMD_SW_RESET_REG, 0, AXE_SW_RESET_PRL | AXE_178_RESET_MAGIC, NULL); usbd_delay_ms(sc->axe_udev, 150); + /* Enable MII/GMII/RGMII for external PHY */ + axe_cmd(sc, AXE_CMD_SW_PHY_SELECT, 0, 0, NULL); + usbd_delay_ms(sc->axe_udev, 10); axe_cmd(sc, AXE_CMD_RXCTL_WRITE, 0, 0, NULL); } |