diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2010-06-01 05:44:10 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-03 14:10:46 -0400 |
commit | e9141f71f4734584bc9704e1266090abe98e1859 (patch) | |
tree | 0441d1a0bc03bbe36ff2d6e8a4b1b0b3da2c23d9 /drivers/net/wireless/ath/ath9k/reg.h | |
parent | 15ae733b25b7d74e9ef14eab8414447204bdcc1b (diff) |
ath9k_hw: Fix async fifo for AR9287
Async fifo is now enabled only for versions 1.3 and above.
Enable it in the appropriate place, in the reset routine,
instead of process_ini().
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/reg.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/reg.h | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index a7371a080491..3e3ccef438db 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -760,32 +760,33 @@ | |||
760 | #define AR_SREV_REVISION2 0x00000F00 | 760 | #define AR_SREV_REVISION2 0x00000F00 |
761 | #define AR_SREV_REVISION2_S 8 | 761 | #define AR_SREV_REVISION2_S 8 |
762 | 762 | ||
763 | #define AR_SREV_VERSION_5416_PCI 0xD | 763 | #define AR_SREV_VERSION_5416_PCI 0xD |
764 | #define AR_SREV_VERSION_5416_PCIE 0xC | 764 | #define AR_SREV_VERSION_5416_PCIE 0xC |
765 | #define AR_SREV_REVISION_5416_10 0 | 765 | #define AR_SREV_REVISION_5416_10 0 |
766 | #define AR_SREV_REVISION_5416_20 1 | 766 | #define AR_SREV_REVISION_5416_20 1 |
767 | #define AR_SREV_REVISION_5416_22 2 | 767 | #define AR_SREV_REVISION_5416_22 2 |
768 | #define AR_SREV_VERSION_9100 0x14 | 768 | #define AR_SREV_VERSION_9100 0x14 |
769 | #define AR_SREV_VERSION_9160 0x40 | 769 | #define AR_SREV_VERSION_9160 0x40 |
770 | #define AR_SREV_REVISION_9160_10 0 | 770 | #define AR_SREV_REVISION_9160_10 0 |
771 | #define AR_SREV_REVISION_9160_11 1 | 771 | #define AR_SREV_REVISION_9160_11 1 |
772 | #define AR_SREV_VERSION_9280 0x80 | 772 | #define AR_SREV_VERSION_9280 0x80 |
773 | #define AR_SREV_REVISION_9280_10 0 | 773 | #define AR_SREV_REVISION_9280_10 0 |
774 | #define AR_SREV_REVISION_9280_20 1 | 774 | #define AR_SREV_REVISION_9280_20 1 |
775 | #define AR_SREV_REVISION_9280_21 2 | 775 | #define AR_SREV_REVISION_9280_21 2 |
776 | #define AR_SREV_VERSION_9285 0xC0 | 776 | #define AR_SREV_VERSION_9285 0xC0 |
777 | #define AR_SREV_REVISION_9285_10 0 | 777 | #define AR_SREV_REVISION_9285_10 0 |
778 | #define AR_SREV_REVISION_9285_11 1 | 778 | #define AR_SREV_REVISION_9285_11 1 |
779 | #define AR_SREV_REVISION_9285_12 2 | 779 | #define AR_SREV_REVISION_9285_12 2 |
780 | #define AR_SREV_VERSION_9287 0x180 | 780 | #define AR_SREV_VERSION_9287 0x180 |
781 | #define AR_SREV_REVISION_9287_10 0 | 781 | #define AR_SREV_REVISION_9287_10 0 |
782 | #define AR_SREV_REVISION_9287_11 1 | 782 | #define AR_SREV_REVISION_9287_11 1 |
783 | #define AR_SREV_REVISION_9287_12 2 | 783 | #define AR_SREV_REVISION_9287_12 2 |
784 | #define AR_SREV_VERSION_9271 0x140 | 784 | #define AR_SREV_REVISION_9287_13 3 |
785 | #define AR_SREV_REVISION_9271_10 0 | 785 | #define AR_SREV_VERSION_9271 0x140 |
786 | #define AR_SREV_REVISION_9271_11 1 | 786 | #define AR_SREV_REVISION_9271_10 0 |
787 | #define AR_SREV_VERSION_9300 0x1c0 | 787 | #define AR_SREV_REVISION_9271_11 1 |
788 | #define AR_SREV_REVISION_9300_20 2 /* 2.0 and 2.1 */ | 788 | #define AR_SREV_VERSION_9300 0x1c0 |
789 | #define AR_SREV_REVISION_9300_20 2 /* 2.0 and 2.1 */ | ||
789 | 790 | ||
790 | #define AR_SREV_5416(_ah) \ | 791 | #define AR_SREV_5416(_ah) \ |
791 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ | 792 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ |
@@ -863,6 +864,11 @@ | |||
863 | (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9287) || \ | 864 | (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9287) || \ |
864 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9287) && \ | 865 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9287) && \ |
865 | ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9287_12))) | 866 | ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9287_12))) |
867 | #define AR_SREV_9287_13_OR_LATER(_ah) \ | ||
868 | (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9287) || \ | ||
869 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9287) && \ | ||
870 | ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9287_13))) | ||
871 | |||
866 | #define AR_SREV_9271(_ah) \ | 872 | #define AR_SREV_9271(_ah) \ |
867 | (((_ah))->hw_version.macVersion == AR_SREV_VERSION_9271) | 873 | (((_ah))->hw_version.macVersion == AR_SREV_VERSION_9271) |
868 | #define AR_SREV_9271_10(_ah) \ | 874 | #define AR_SREV_9271_10(_ah) \ |