Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Apr 2013 17:59:06 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249517 - head/sys/dev/ath/ath_hal/ar5416
Message-ID:  <201304151759.r3FHx6lh013331@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Mon Apr 15 17:59:06 2013
New Revision: 249517
URL: http://svnweb.freebsd.org/changeset/base/249517

Log:
  Now that the register definitions are in -HEAD, enable this.

Modified:
  head/sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c

Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c	Mon Apr 15 17:58:11 2013	(r249516)
+++ head/sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c	Mon Apr 15 17:59:06 2013	(r249517)
@@ -269,14 +269,14 @@ ar5416BTCoexEnable(struct ath_hal *ah)
 	}
 	OS_REG_WRITE(ah, AR_BT_COEX_MODE2, ahp->ah_btCoexMode2);
 
-#if 0
-    /* Added Select GPIO5~8 instaed SPI */
-    if (AR_SREV_9271(ah)) {
-        val = OS_REG_READ(ah, AR9271_CLOCK_CONTROL);
-        val &= 0xFFFFFEFF;
-        OS_REG_WRITE(ah, AR9271_CLOCK_CONTROL, val);
-    }
-#endif
+	/* Added Select GPIO5~8 instaed SPI */
+	if (AR_SREV_9271(ah)) {
+		uint32_t val;
+
+		val = OS_REG_READ(ah, AR9271_CLOCK_CONTROL);
+		val &= 0xFFFFFEFF;
+		OS_REG_WRITE(ah, AR9271_CLOCK_CONTROL, val);
+	}
 
 	if (ahp->ah_btCoexFlag & HAL_BT_COEX_FLAG_LOW_ACK_PWR)
 		OS_REG_WRITE(ah, AR_TPC, HAL_BT_COEX_LOW_ACK_POWER);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304151759.r3FHx6lh013331>