diff options
author | Vasanthakumar Thiagarajan <vasanth@atheros.com> | 2011-04-19 09:58:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-25 14:50:07 -0400 |
commit | b99a7be47dc37c60b6524d761ecfce432de84c01 (patch) | |
tree | 4d7b1a471d9c180765d53f1ab367fe3916827dbb | |
parent | 534f0e29282a007a589a659d31baa1ef828c22da (diff) |
ath9k_hw: Define devid and mac version for AR9340
Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath9k/reg.h | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index 3a8c41c782e..d98b4c6d8dc 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c | |||
@@ -552,7 +552,7 @@ static int __ath9k_hw_init(struct ath_hw *ah) | |||
552 | return -EOPNOTSUPP; | 552 | return -EOPNOTSUPP; |
553 | } | 553 | } |
554 | 554 | ||
555 | if (AR_SREV_9271(ah) || AR_SREV_9100(ah)) | 555 | if (AR_SREV_9271(ah) || AR_SREV_9100(ah) || AR_SREV_9340(ah)) |
556 | ah->is_pciexpress = false; | 556 | ah->is_pciexpress = false; |
557 | 557 | ||
558 | ah->hw_version.phyRev = REG_READ(ah, AR_PHY_CHIP_ID); | 558 | ah->hw_version.phyRev = REG_READ(ah, AR_PHY_CHIP_ID); |
diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h index 1018d6cbd53..450b64263bc 100644 --- a/drivers/net/wireless/ath/ath9k/hw.h +++ b/drivers/net/wireless/ath/ath9k/hw.h | |||
@@ -43,6 +43,7 @@ | |||
43 | #define AR9287_DEVID_PCI 0x002d | 43 | #define AR9287_DEVID_PCI 0x002d |
44 | #define AR9287_DEVID_PCIE 0x002e | 44 | #define AR9287_DEVID_PCIE 0x002e |
45 | #define AR9300_DEVID_PCIE 0x0030 | 45 | #define AR9300_DEVID_PCIE 0x0030 |
46 | #define AR9300_DEVID_AR9340 0x0031 | ||
46 | #define AR9300_DEVID_AR9485_PCIE 0x0032 | 47 | #define AR9300_DEVID_AR9485_PCIE 0x0032 |
47 | 48 | ||
48 | #define AR5416_AR9100_DEVID 0x000b | 49 | #define AR5416_AR9100_DEVID 0x000b |
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index 6acbf0e2240..1bf540561c4 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -790,6 +790,7 @@ | |||
790 | #define AR_SREV_VERSION_9485 0x240 | 790 | #define AR_SREV_VERSION_9485 0x240 |
791 | #define AR_SREV_REVISION_9485_10 0 | 791 | #define AR_SREV_REVISION_9485_10 0 |
792 | #define AR_SREV_REVISION_9485_11 1 | 792 | #define AR_SREV_REVISION_9485_11 1 |
793 | #define AR_SREV_VERSION_9340 0x300 | ||
793 | 794 | ||
794 | #define AR_SREV_5416(_ah) \ | 795 | #define AR_SREV_5416(_ah) \ |
795 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ | 796 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ |
@@ -869,6 +870,9 @@ | |||
869 | (AR_SREV_9485(_ah) && \ | 870 | (AR_SREV_9485(_ah) && \ |
870 | ((_ah)->hw_version.macRev == AR_SREV_REVISION_9485_11)) | 871 | ((_ah)->hw_version.macRev == AR_SREV_REVISION_9485_11)) |
871 | 872 | ||
873 | #define AR_SREV_9340(_ah) \ | ||
874 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9340)) | ||
875 | |||
872 | #define AR_SREV_9285E_20(_ah) \ | 876 | #define AR_SREV_9285E_20(_ah) \ |
873 | (AR_SREV_9285_12_OR_LATER(_ah) && \ | 877 | (AR_SREV_9285_12_OR_LATER(_ah) && \ |
874 | ((REG_READ(_ah, AR_AN_SYNTH9) & 0x7) == 0x1)) | 878 | ((REG_READ(_ah, AR_AN_SYNTH9) & 0x7) == 0x1)) |