ath9k: Enable MCI for AR9565
Signed-off-by: Bala Shanmugam <bkamatch@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
		
							parent
							
								
									58901d181f
								
							
						
					
					
						commit
						6a73f507cf
					
				| @ -282,7 +282,7 @@ void ath9k_hw_btcoex_enable(struct ath_hw *ah) | |||||||
| 		ath9k_hw_btcoex_enable_2wire(ah); | 		ath9k_hw_btcoex_enable_2wire(ah); | ||||||
| 		break; | 		break; | ||||||
| 	case ATH_BTCOEX_CFG_3WIRE: | 	case ATH_BTCOEX_CFG_3WIRE: | ||||||
| 		if (AR_SREV_9462(ah)) { | 		if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) { | ||||||
| 			ath9k_hw_btcoex_enable_mci(ah); | 			ath9k_hw_btcoex_enable_mci(ah); | ||||||
| 			return; | 			return; | ||||||
| 		} | 		} | ||||||
| @ -304,7 +304,7 @@ void ath9k_hw_btcoex_disable(struct ath_hw *ah) | |||||||
| 	int i; | 	int i; | ||||||
| 
 | 
 | ||||||
| 	btcoex_hw->enabled = false; | 	btcoex_hw->enabled = false; | ||||||
| 	if (AR_SREV_9462(ah)) { | 	if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) { | ||||||
| 		ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE); | 		ath9k_hw_btcoex_bt_stomp(ah, ATH_BTCOEX_STOMP_NONE); | ||||||
| 		for (i = 0; i < AR9300_NUM_BT_WEIGHTS; i++) | 		for (i = 0; i < AR9300_NUM_BT_WEIGHTS; i++) | ||||||
| 			REG_WRITE(ah, AR_MCI_COEX_WL_WEIGHTS(i), | 			REG_WRITE(ah, AR_MCI_COEX_WL_WEIGHTS(i), | ||||||
| @ -339,7 +339,7 @@ static void ar9003_btcoex_bt_stomp(struct ath_hw *ah, | |||||||
| 	const u32 *weight = ar9003_wlan_weights[stomp_type]; | 	const u32 *weight = ar9003_wlan_weights[stomp_type]; | ||||||
| 	int i; | 	int i; | ||||||
| 
 | 
 | ||||||
| 	if (AR_SREV_9462(ah)) { | 	if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) { | ||||||
| 		if ((stomp_type == ATH_BTCOEX_STOMP_LOW) && | 		if ((stomp_type == ATH_BTCOEX_STOMP_LOW) && | ||||||
| 		    btcoex->mci.stomp_ftp) | 		    btcoex->mci.stomp_ftp) | ||||||
| 			stomp_type = ATH_BTCOEX_STOMP_LOW_FTP; | 			stomp_type = ATH_BTCOEX_STOMP_LOW_FTP; | ||||||
|  | |||||||
| @ -412,7 +412,7 @@ void ath9k_stop_btcoex(struct ath_softc *sc) | |||||||
| 		if (ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_3WIRE) | 		if (ath9k_hw_get_btcoex_scheme(ah) == ATH_BTCOEX_CFG_3WIRE) | ||||||
| 			ath9k_btcoex_timer_pause(sc); | 			ath9k_btcoex_timer_pause(sc); | ||||||
| 		ath9k_hw_btcoex_disable(ah); | 		ath9k_hw_btcoex_disable(ah); | ||||||
| 		if (AR_SREV_9462(ah)) | 		if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) | ||||||
| 			ath_mci_flush_profile(&sc->btcoex.mci); | 			ath_mci_flush_profile(&sc->btcoex.mci); | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
| @ -497,7 +497,7 @@ void ath9k_hw_wow_enable(struct ath_hw *ah, u32 pattern_enable) | |||||||
| 
 | 
 | ||||||
| 	REG_RMW(ah, AR_PCIE_PM_CTRL, set, clr); | 	REG_RMW(ah, AR_PCIE_PM_CTRL, set, clr); | ||||||
| 
 | 
 | ||||||
| 	if (AR_SREV_9462(ah)) { | 	if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) { | ||||||
| 		/*
 | 		/*
 | ||||||
| 		 * this is needed to prevent the chip waking up | 		 * this is needed to prevent the chip waking up | ||||||
| 		 * the host within 3-4 seconds with certain | 		 * the host within 3-4 seconds with certain | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user