aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath5k/reg.h
diff options
context:
space:
mode:
authorNick Kossifidis <mick@madwifi-project.org>2009-02-08 23:08:51 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-13 13:44:47 -0500
commita406c139091902acebafb2462b64ba498901e820 (patch)
treec3db1c89dc6019026fe66f9d21d608aa1052cf37 /drivers/net/wireless/ath5k/reg.h
parent8892e4ec62f1553d36c88e613890aa4d7c5a372e (diff)
ath5k: Update initvals
* Update initvals to match legacy and Sam's HAL Signed-off-by: Nick Kossifidis <mickflemm@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/reg.h')
-rw-r--r--drivers/net/wireless/ath5k/reg.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/drivers/net/wireless/ath5k/reg.h b/drivers/net/wireless/ath5k/reg.h
index 9aa22ef8410..84f4669278a 100644
--- a/drivers/net/wireless/ath5k/reg.h
+++ b/drivers/net/wireless/ath5k/reg.h
@@ -811,6 +811,8 @@
811 811
812/* 812/*
813 * DCU transmit filter table 0 (32 entries) 813 * DCU transmit filter table 0 (32 entries)
814 * each entry contains a 32bit slice of the
815 * 128bit tx filter for each DCU (4 slices per DCU)
814 */ 816 */
815#define AR5K_DCU_TX_FILTER_0_BASE 0x1038 817#define AR5K_DCU_TX_FILTER_0_BASE 0x1038
816#define AR5K_DCU_TX_FILTER_0(_n) (AR5K_DCU_TX_FILTER_0_BASE + (_n * 64)) 818#define AR5K_DCU_TX_FILTER_0(_n) (AR5K_DCU_TX_FILTER_0_BASE + (_n * 64))
@@ -819,7 +821,7 @@
819 * DCU transmit filter table 1 (16 entries) 821 * DCU transmit filter table 1 (16 entries)
820 */ 822 */
821#define AR5K_DCU_TX_FILTER_1_BASE 0x103c 823#define AR5K_DCU_TX_FILTER_1_BASE 0x103c
822#define AR5K_DCU_TX_FILTER_1(_n) (AR5K_DCU_TX_FILTER_1_BASE + ((_n - 32) * 64)) 824#define AR5K_DCU_TX_FILTER_1(_n) (AR5K_DCU_TX_FILTER_1_BASE + (_n * 64))
823 825
824/* 826/*
825 * DCU clear transmit filter register 827 * DCU clear transmit filter register
@@ -1447,7 +1449,7 @@
1447 AR5K_TSF_U32_5210 : AR5K_TSF_U32_5211) 1449 AR5K_TSF_U32_5210 : AR5K_TSF_U32_5211)
1448 1450
1449/* 1451/*
1450 * Last beacon timestamp register 1452 * Last beacon timestamp register (Read Only)
1451 */ 1453 */
1452#define AR5K_LAST_TSTP 0x8080 1454#define AR5K_LAST_TSTP 0x8080
1453 1455
@@ -2219,9 +2221,7 @@
2219#define AR5K_PHY_CTL_LOW_FREQ_SLE_EN 0x00000080 /* Enable low freq sleep */ 2221#define AR5K_PHY_CTL_LOW_FREQ_SLE_EN 0x00000080 /* Enable low freq sleep */
2220 2222
2221/* 2223/*
2222 * PHY PAPD probe register [5111+ (?)] 2224 * PHY PAPD probe register [5111+]
2223 * Is this only present in 5212 ?
2224 * Because it's always 0 in 5211 initialization code
2225 */ 2225 */
2226#define AR5K_PHY_PAPD_PROBE 0x9930 2226#define AR5K_PHY_PAPD_PROBE 0x9930
2227#define AR5K_PHY_PAPD_PROBE_SH_HI_PAR 0x00000001 2227#define AR5K_PHY_PAPD_PROBE_SH_HI_PAR 0x00000001
@@ -2363,21 +2363,21 @@
2363#define AR5K_PHY_BIN_MASK2_4_MASK_4 0x00003fff 2363#define AR5K_PHY_BIN_MASK2_4_MASK_4 0x00003fff
2364#define AR5K_PHY_BIN_MASK2_4_MASK_4_S 0 2364#define AR5K_PHY_BIN_MASK2_4_MASK_4_S 0
2365 2365
2366#define AR_PHY_TIMING_9 0x9998 2366#define AR5K_PHY_TIMING_9 0x9998
2367#define AR_PHY_TIMING_10 0x999c 2367#define AR5K_PHY_TIMING_10 0x999c
2368#define AR_PHY_TIMING_10_PILOT_MASK_2 0x000fffff 2368#define AR5K_PHY_TIMING_10_PILOT_MASK_2 0x000fffff
2369#define AR_PHY_TIMING_10_PILOT_MASK_2_S 0 2369#define AR5K_PHY_TIMING_10_PILOT_MASK_2_S 0
2370 2370
2371/* 2371/*
2372 * Spur mitigation control 2372 * Spur mitigation control
2373 */ 2373 */
2374#define AR_PHY_TIMING_11 0x99a0 /* Register address */ 2374#define AR5K_PHY_TIMING_11 0x99a0 /* Register address */
2375#define AR_PHY_TIMING_11_SPUR_DELTA_PHASE 0x000fffff /* Spur delta phase */ 2375#define AR5K_PHY_TIMING_11_SPUR_DELTA_PHASE 0x000fffff /* Spur delta phase */
2376#define AR_PHY_TIMING_11_SPUR_DELTA_PHASE_S 0 2376#define AR5K_PHY_TIMING_11_SPUR_DELTA_PHASE_S 0
2377#define AR_PHY_TIMING_11_SPUR_FREQ_SD 0x3ff00000 /* Freq sigma delta */ 2377#define AR5K_PHY_TIMING_11_SPUR_FREQ_SD 0x3ff00000 /* Freq sigma delta */
2378#define AR_PHY_TIMING_11_SPUR_FREQ_SD_S 20 2378#define AR5K_PHY_TIMING_11_SPUR_FREQ_SD_S 20
2379#define AR_PHY_TIMING_11_USE_SPUR_IN_AGC 0x40000000 /* Spur filter in AGC detector */ 2379#define AR5K_PHY_TIMING_11_USE_SPUR_IN_AGC 0x40000000 /* Spur filter in AGC detector */
2380#define AR_PHY_TIMING_11_USE_SPUR_IN_SELFCOR 0x80000000 /* Spur filter in OFDM self correlator */ 2380#define AR5K_PHY_TIMING_11_USE_SPUR_IN_SELFCOR 0x80000000 /* Spur filter in OFDM self correlator */
2381 2381
2382/* 2382/*
2383 * Gain tables 2383 * Gain tables
@@ -2481,11 +2481,7 @@
2481/* 2481/*
2482 * PHY PCDAC TX power table 2482 * PHY PCDAC TX power table
2483 */ 2483 */
2484#define AR5K_PHY_PCDAC_TXPOWER_BASE_5211 0xa180 2484#define AR5K_PHY_PCDAC_TXPOWER_BASE 0xa180
2485#define AR5K_PHY_PCDAC_TXPOWER_BASE_2413 0xa280
2486#define AR5K_PHY_PCDAC_TXPOWER_BASE (ah->ah_radio >= AR5K_RF2413 ? \
2487 AR5K_PHY_PCDAC_TXPOWER_BASE_2413 :\
2488 AR5K_PHY_PCDAC_TXPOWER_BASE_5211)
2489#define AR5K_PHY_PCDAC_TXPOWER(_n) (AR5K_PHY_PCDAC_TXPOWER_BASE + ((_n) << 2)) 2485#define AR5K_PHY_PCDAC_TXPOWER(_n) (AR5K_PHY_PCDAC_TXPOWER_BASE + ((_n) << 2))
2490 2486
2491/* 2487/*
@@ -2566,3 +2562,9 @@
2566#define AR5K_PHY_TPC_RG5_PD_GAIN_BOUNDARY_3_S 16 2562#define AR5K_PHY_TPC_RG5_PD_GAIN_BOUNDARY_3_S 16
2567#define AR5K_PHY_TPC_RG5_PD_GAIN_BOUNDARY_4 0x0FC00000 2563#define AR5K_PHY_TPC_RG5_PD_GAIN_BOUNDARY_4 0x0FC00000
2568#define AR5K_PHY_TPC_RG5_PD_GAIN_BOUNDARY_4_S 22 2564#define AR5K_PHY_TPC_RG5_PD_GAIN_BOUNDARY_4_S 22
2565
2566/*
2567 * PHY PDADC Tx power table
2568 */
2569#define AR5K_PHY_PDADC_TXPOWER_BASE 0xa280
2570#define AR5K_PHY_PDADC_TXPOWER(_n) (AR5K_PHY_PDADC_TXPOWER_BASE + ((_n) << 2))