diff options
author | Senthil Balasubramanian <senthilb@qca.qualcomm.com> | 2011-09-13 13:08:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-16 16:45:32 -0400 |
commit | ce407afc1008a67969ae05717e86dcee9ce5de76 (patch) | |
tree | 0d6ec269e1937a07b86811fd940cd7510f1eab6f /drivers/net/wireless/ath/ath9k/reg.h | |
parent | 910868db3f114df32387a9c51a729b2645febe4d (diff) |
ath9k_hw: Add initvals and register definitions for AR946/8x chipsets.
Add initvals and register modifications required to support AR946/8x chipsets.
Signed-off-by: Senthil Balasubramanian <senthilb@qca.qualcomm.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 | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/reg.h b/drivers/net/wireless/ath/ath9k/reg.h index 5d34381c44c3..0846654b57ef 100644 --- a/drivers/net/wireless/ath/ath9k/reg.h +++ b/drivers/net/wireless/ath/ath9k/reg.h | |||
@@ -796,6 +796,9 @@ | |||
796 | #define AR_SREV_VERSION_9340 0x300 | 796 | #define AR_SREV_VERSION_9340 0x300 |
797 | #define AR_SREV_VERSION_9580 0x1C0 | 797 | #define AR_SREV_VERSION_9580 0x1C0 |
798 | #define AR_SREV_REVISION_9580_10 4 /* AR9580 1.0 */ | 798 | #define AR_SREV_REVISION_9580_10 4 /* AR9580 1.0 */ |
799 | #define AR_SREV_VERSION_9480 0x280 | ||
800 | #define AR_SREV_REVISION_9480_10 0 | ||
801 | #define AR_SREV_REVISION_9480_20 2 | ||
799 | 802 | ||
800 | #define AR_SREV_5416(_ah) \ | 803 | #define AR_SREV_5416(_ah) \ |
801 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ | 804 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_5416_PCI) || \ |
@@ -896,6 +899,21 @@ | |||
896 | (AR_SREV_9285_12_OR_LATER(_ah) && \ | 899 | (AR_SREV_9285_12_OR_LATER(_ah) && \ |
897 | ((REG_READ(_ah, AR_AN_SYNTH9) & 0x7) == 0x1)) | 900 | ((REG_READ(_ah, AR_AN_SYNTH9) & 0x7) == 0x1)) |
898 | 901 | ||
902 | #define AR_SREV_9480(_ah) \ | ||
903 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9480)) | ||
904 | |||
905 | #define AR_SREV_9480_10(_ah) \ | ||
906 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9480) && \ | ||
907 | ((_ah)->hw_version.macRev == AR_SREV_REVISION_9480_10)) | ||
908 | |||
909 | #define AR_SREV_9480_20(_ah) \ | ||
910 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9480) && \ | ||
911 | ((_ah)->hw_version.macRev == AR_SREV_REVISION_9480_20)) | ||
912 | |||
913 | #define AR_SREV_9480_20_OR_LATER(_ah) \ | ||
914 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9480) && \ | ||
915 | ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9480_20)) | ||
916 | |||
899 | #define AR_SREV_9580(_ah) \ | 917 | #define AR_SREV_9580(_ah) \ |
900 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9580) && \ | 918 | (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9580) && \ |
901 | ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9580_10)) | 919 | ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9580_10)) |
@@ -1779,6 +1797,7 @@ enum { | |||
1779 | #define AR_TXOP_12_15 0x81fc | 1797 | #define AR_TXOP_12_15 0x81fc |
1780 | 1798 | ||
1781 | #define AR_NEXT_NDP2_TIMER 0x8180 | 1799 | #define AR_NEXT_NDP2_TIMER 0x8180 |
1800 | #define AR_GEN_TIMER_BANK_1_LEN 8 | ||
1782 | #define AR_FIRST_NDP_TIMER 7 | 1801 | #define AR_FIRST_NDP_TIMER 7 |
1783 | #define AR_NDP2_PERIOD 0x81a0 | 1802 | #define AR_NDP2_PERIOD 0x81a0 |
1784 | #define AR_NDP2_TIMER_MODE 0x81c0 | 1803 | #define AR_NDP2_TIMER_MODE 0x81c0 |
@@ -1867,9 +1886,10 @@ enum { | |||
1867 | #define AR_PCU_MISC_MODE2_HWWAR2 0x02000000 | 1886 | #define AR_PCU_MISC_MODE2_HWWAR2 0x02000000 |
1868 | #define AR_PCU_MISC_MODE2_RESERVED2 0xFFFE0000 | 1887 | #define AR_PCU_MISC_MODE2_RESERVED2 0xFFFE0000 |
1869 | 1888 | ||
1870 | #define AR_MAC_PCU_ASYNC_FIFO_REG3 0x8358 | 1889 | #define AR_MAC_PCU_ASYNC_FIFO_REG3 0x8358 |
1871 | #define AR_MAC_PCU_ASYNC_FIFO_REG3_DATAPATH_SEL 0x00000400 | 1890 | #define AR_MAC_PCU_ASYNC_FIFO_REG3_DATAPATH_SEL 0x00000400 |
1872 | #define AR_MAC_PCU_ASYNC_FIFO_REG3_SOFT_RESET 0x80000000 | 1891 | #define AR_MAC_PCU_ASYNC_FIFO_REG3_SOFT_RESET 0x80000000 |
1892 | #define AR_MAC_PCU_GEN_TIMER_TSF_SEL 0x83d8 | ||
1873 | 1893 | ||
1874 | 1894 | ||
1875 | #define AR_AES_MUTE_MASK0 0x805c | 1895 | #define AR_AES_MUTE_MASK0 0x805c |
@@ -1920,4 +1940,38 @@ enum { | |||
1920 | #define AR_PHY_AGC_CONTROL_YCOK_MAX 0x000003c0 | 1940 | #define AR_PHY_AGC_CONTROL_YCOK_MAX 0x000003c0 |
1921 | #define AR_PHY_AGC_CONTROL_YCOK_MAX_S 6 | 1941 | #define AR_PHY_AGC_CONTROL_YCOK_MAX_S 6 |
1922 | 1942 | ||
1943 | /* MCI Registers */ | ||
1944 | #define AR_MCI_INTERRUPT_RX_MSG_EN 0x183c | ||
1945 | #define AR_MCI_INTERRUPT_RX_MSG_REMOTE_RESET 0x00000001 | ||
1946 | #define AR_MCI_INTERRUPT_RX_MSG_REMOTE_RESET_S 0 | ||
1947 | #define AR_MCI_INTERRUPT_RX_MSG_LNA_CONTROL 0x00000002 | ||
1948 | #define AR_MCI_INTERRUPT_RX_MSG_LNA_CONTROL_S 1 | ||
1949 | #define AR_MCI_INTERRUPT_RX_MSG_CONT_NACK 0x00000004 | ||
1950 | #define AR_MCI_INTERRUPT_RX_MSG_CONT_NACK_S 2 | ||
1951 | #define AR_MCI_INTERRUPT_RX_MSG_CONT_INFO 0x00000008 | ||
1952 | #define AR_MCI_INTERRUPT_RX_MSG_CONT_INFO_S 3 | ||
1953 | #define AR_MCI_INTERRUPT_RX_MSG_CONT_RST 0x00000010 | ||
1954 | #define AR_MCI_INTERRUPT_RX_MSG_CONT_RST_S 4 | ||
1955 | #define AR_MCI_INTERRUPT_RX_MSG_SCHD_INFO 0x00000020 | ||
1956 | #define AR_MCI_INTERRUPT_RX_MSG_SCHD_INFO_S 5 | ||
1957 | #define AR_MCI_INTERRUPT_RX_MSG_CPU_INT 0x00000040 | ||
1958 | #define AR_MCI_INTERRUPT_RX_MSG_CPU_INT_S 6 | ||
1959 | #define AR_MCI_INTERRUPT_RX_MSG_GPM 0x00000100 | ||
1960 | #define AR_MCI_INTERRUPT_RX_MSG_GPM_S 8 | ||
1961 | #define AR_MCI_INTERRUPT_RX_MSG_LNA_INFO 0x00000200 | ||
1962 | #define AR_MCI_INTERRUPT_RX_MSG_LNA_INFO_S 9 | ||
1963 | #define AR_MCI_INTERRUPT_RX_MSG_SYS_SLEEPING 0x00000400 | ||
1964 | #define AR_MCI_INTERRUPT_RX_MSG_SYS_SLEEPING_S 10 | ||
1965 | #define AR_MCI_INTERRUPT_RX_MSG_SYS_WAKING 0x00000800 | ||
1966 | #define AR_MCI_INTERRUPT_RX_MSG_SYS_WAKING_S 11 | ||
1967 | #define AR_MCI_INTERRUPT_RX_MSG_REQ_WAKE 0x00001000 | ||
1968 | #define AR_MCI_INTERRUPT_RX_MSG_REQ_WAKE_S 12 | ||
1969 | #define AR_MCI_INTERRUPT_RX_HW_MSG_MASK (AR_MCI_INTERRUPT_RX_MSG_SCHD_INFO | \ | ||
1970 | AR_MCI_INTERRUPT_RX_MSG_LNA_CONTROL| \ | ||
1971 | AR_MCI_INTERRUPT_RX_MSG_LNA_INFO | \ | ||
1972 | AR_MCI_INTERRUPT_RX_MSG_CONT_NACK | \ | ||
1973 | AR_MCI_INTERRUPT_RX_MSG_CONT_INFO | \ | ||
1974 | AR_MCI_INTERRUPT_RX_MSG_CONT_RST) | ||
1975 | |||
1976 | |||
1923 | #endif | 1977 | #endif |