svn commit: r276738 - head/sys/mips/atheros

Adrian Chadd adrian at FreeBSD.org
Tue Jan 6 07:35:07 UTC 2015


Author: adrian
Date: Tue Jan  6 07:35:05 2015
New Revision: 276738
URL: https://svnweb.freebsd.org/changeset/base/276738

Log:
  The QCA955x USB init path doesn't require any of this, so delete it.
  
  Obtained from:	Linux/OpenWRT

Modified:
  head/sys/mips/atheros/qca955x_chip.c

Modified: head/sys/mips/atheros/qca955x_chip.c
==============================================================================
--- head/sys/mips/atheros/qca955x_chip.c	Tue Jan  6 05:28:37 2015	(r276737)
+++ head/sys/mips/atheros/qca955x_chip.c	Tue Jan  6 07:35:05 2015	(r276738)
@@ -297,25 +297,6 @@ qca955x_configure_gmac(uint32_t gmac_cfg
 static void
 qca955x_chip_init_usb_peripheral(void)
 {
-#if 0
-	uint32_t reg;
-
-	reg = ATH_READ_REG(AR934X_RESET_REG_BOOTSTRAP);
-	if (reg & AR934X_BOOTSTRAP_USB_MODE_DEVICE)
-		return;
-
-	ar71xx_device_stop(AR934X_RESET_USBSUS_OVERRIDE);
-	DELAY(100);
-
-	ar71xx_device_start(AR934X_RESET_USB_PHY);
-	DELAY(100);
-
-	ar71xx_device_start(AR934X_RESET_USB_PHY_ANALOG);
-	DELAY(100);
-
-	ar71xx_device_start(AR934X_RESET_USB_HOST);
-	DELAY(100);
-#endif
 }
 
 static void


More information about the svn-src-head mailing list