aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2013-12-30 21:41:58 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-01-03 15:37:00 -0500
commitf5ee2b18e44d8752ea6e6fba978a873ed5f562bd (patch)
tree3528e2755b0ee9deab7d81e50dcefc75d516508d /drivers/net/wireless
parent1283ac10e97a33c7cdefdb28570e74879635f34e (diff)
ath9k: Add version/revision macros for QCA9531
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/reg.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h
index c9a8b7777491..b1fd3fa84983 100644
--- a/drivers/net/wireless/ath/ath9k/reg.h
+++ b/drivers/net/wireless/ath/ath9k/reg.h
@@ -813,6 +813,9 @@
813#define AR_SREV_REVISION_9565_101 1 813#define AR_SREV_REVISION_9565_101 1
814#define AR_SREV_REVISION_9565_11 2 814#define AR_SREV_REVISION_9565_11 2
815#define AR_SREV_VERSION_9550 0x400 815#define AR_SREV_VERSION_9550 0x400
816#define AR_SREV_VERSION_9531 0x500
817#define AR_SREV_REVISION_9531_10 0
818#define AR_SREV_REVISION_9531_11 1
816 819
817#define AR_SREV_5416(_ah) \ 820#define AR_SREV_5416(_ah) \
818 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ 821 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \
@@ -946,11 +949,19 @@
946#define AR_SREV_9580(_ah) \ 949#define AR_SREV_9580(_ah) \
947 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9580) && \ 950 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9580) && \
948 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9580_10)) 951 ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9580_10))
949
950#define AR_SREV_9580_10(_ah) \ 952#define AR_SREV_9580_10(_ah) \
951 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9580) && \ 953 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9580) && \
952 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9580_10)) 954 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9580_10))
953 955
956#define AR_SREV_9531(_ah) \
957 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9531))
958#define AR_SREV_9531_10(_ah) \
959 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9531) && \
960 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9531_10))
961#define AR_SREV_9531_11(_ah) \
962 (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9531) && \
963 ((_ah)->hw_version.macRev == AR_SREV_REVISION_9531_11))
964
954/* NOTE: When adding chips newer than Peacock, add chip check here */ 965/* NOTE: When adding chips newer than Peacock, add chip check here */
955#define AR_SREV_9580_10_OR_LATER(_ah) \ 966#define AR_SREV_9580_10_OR_LATER(_ah) \
956 (AR_SREV_9580(_ah)) 967 (AR_SREV_9580(_ah))