aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/ar9003_phy.h
diff options
context:
space:
mode:
authorSenthil Balasubramanian <senthilb@qca.qualcomm.com>2011-09-13 13:08:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-16 16:45:34 -0400
commitb54af8af49cd93c1ac33e3a8f0bb2f5acc8c7d0e (patch)
tree8e13af953ddbf099d6897a37a97138e33f1cc6ff /drivers/net/wireless/ath/ath9k/ar9003_phy.h
parent2577c6e8f2320f1d2f09be122efef5b9118efee4 (diff)
ath9k_hw: move register definitions to header files
Move the register macros to appropriate header files to be in sync with other register definitions and also a single place to refer everything. 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/ar9003_phy.h')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9003_phy.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.h b/drivers/net/wireless/ath/ath9k/ar9003_phy.h
index 05f6538416ce..f1be87454308 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.h
@@ -624,6 +624,31 @@
624#define AR_PHY_65NM_CH0_BIAS4 0x160cc 624#define AR_PHY_65NM_CH0_BIAS4 0x160cc
625#define AR_PHY_65NM_CH0_RXTX4 0x1610c 625#define AR_PHY_65NM_CH0_RXTX4 0x1610c
626 626
627#define AR_CH0_TOP (AR_SREV_9300(ah) ? 0x16288 : \
628 ((AR_SREV_9480(ah) ? 0x1628c : 0x16280)))
629#define AR_CH0_TOP_XPABIASLVL (0x300)
630#define AR_CH0_TOP_XPABIASLVL_S (8)
631
632#define AR_CH0_THERM (AR_SREV_9300(ah) ? 0x16290 : \
633 ((AR_SREV_9485(ah) ? 0x1628c : 0x16294)))
634#define AR_CH0_THERM_XPABIASLVL_MSB 0x3
635#define AR_CH0_THERM_XPABIASLVL_MSB_S 0
636#define AR_CH0_THERM_XPASHORT2GND 0x4
637#define AR_CH0_THERM_XPASHORT2GND_S 2
638
639#define AR_SWITCH_TABLE_COM_ALL (0xffff)
640#define AR_SWITCH_TABLE_COM_ALL_S (0)
641#define AR_SWITCH_TABLE_COM_AR9480_ALL (0xffffff)
642#define AR_SWITCH_TABLE_COM_AR9480_ALL_S (0)
643#define AR_SWITCH_TABLE_COM_SPDT (0x00f00000)
644#define AR_SWITCH_TABLE_COM_SPDT_ALL (0x0000fff0)
645#define AR_SWITCH_TABLE_COM_SPDT_ALL_S (4)
646
647#define AR_SWITCH_TABLE_COM2_ALL (0xffffff)
648#define AR_SWITCH_TABLE_COM2_ALL_S (0)
649
650#define AR_SWITCH_TABLE_ALL (0xfff)
651#define AR_SWITCH_TABLE_ALL_S (0)
627 652
628#define AR_PHY_65NM_CH0_THERM (AR_SREV_9300(ah) ? 0x16290 :\ 653#define AR_PHY_65NM_CH0_THERM (AR_SREV_9300(ah) ? 0x16290 :\
629 (AR_SREV_9485(ah) ? 0x1628c : 0x16294)) 654 (AR_SREV_9485(ah) ? 0x1628c : 0x16294))