diff options
author | Nick Kossifidis <mick@madwifi-project.org> | 2009-02-08 23:06:34 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-13 13:44:45 -0500 |
commit | 8892e4ec62f1553d36c88e613890aa4d7c5a372e (patch) | |
tree | 3f7976379576a11d05d1723f3bcf8a03f821413a /drivers/net/wireless/ath5k/reg.h | |
parent | 6f3b414aca060a847e243f676b8601731938eb48 (diff) |
ath5k: Update RF Buffer handling
* Use the new way to modify rf buffer and put some rf buffer
documentation on rfbufer.h
* Merge all rf regs functions to one
* Sync with legacy HAL and Sam's HAL
* Set gain_F settings so that gain_F optimization engine works
on RF5111/RF5112 (note that both HALs only use step 0 for RF5111
and they don't use gain_F optimization for this chip, code is
there but is never used)
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.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/drivers/net/wireless/ath5k/reg.h b/drivers/net/wireless/ath5k/reg.h index 9189ab13286c..9aa22ef84101 100644 --- a/drivers/net/wireless/ath5k/reg.h +++ b/drivers/net/wireless/ath5k/reg.h | |||
@@ -2101,34 +2101,10 @@ | |||
2101 | /* | 2101 | /* |
2102 | * RF Buffer register | 2102 | * RF Buffer register |
2103 | * | 2103 | * |
2104 | * There are some special control registers on the RF chip | ||
2105 | * that hold various operation settings related mostly to | ||
2106 | * the analog parts (channel, gain adjustment etc). | ||
2107 | * | ||
2108 | * We don't write on those registers directly but | ||
2109 | * we send a data packet on the buffer register and | ||
2110 | * then write on another special register to notify hw | ||
2111 | * to apply the settings. This is done so that control registers | ||
2112 | * can be dynamicaly programmed during operation and the settings | ||
2113 | * are applied faster on the hw. | ||
2114 | * | ||
2115 | * We sent such data packets during rf initialization and channel change | ||
2116 | * through ath5k_hw_rf*_rfregs and ath5k_hw_rf*_channel functions. | ||
2117 | * | ||
2118 | * The data packets we send during initializadion are inside ath5k_ini_rf | ||
2119 | * struct (see ath5k_hw.h) and each one is related to an "rf register bank". | ||
2120 | * We use *rfregs functions to modify them acording to current operation | ||
2121 | * mode and eeprom values and pass them all together to the chip. | ||
2122 | * | ||
2123 | * It's obvious from the code that 0x989c is the buffer register but | 2104 | * It's obvious from the code that 0x989c is the buffer register but |
2124 | * for the other special registers that we write to after sending each | 2105 | * for the other special registers that we write to after sending each |
2125 | * packet, i have no idea. So i'll name them BUFFER_CONTROL_X registers | 2106 | * packet, i have no idea. So i'll name them BUFFER_CONTROL_X registers |
2126 | * for now. It's interesting that they are also used for some other operations. | 2107 | * for now. It's interesting that they are also used for some other operations. |
2127 | * | ||
2128 | * Also check out hw.h and U.S. Patent 6677779 B1 (about buffer | ||
2129 | * registers and control registers): | ||
2130 | * | ||
2131 | * http://www.google.com/patents?id=qNURAAAAEBAJ | ||
2132 | */ | 2108 | */ |
2133 | 2109 | ||
2134 | #define AR5K_RF_BUFFER 0x989c | 2110 | #define AR5K_RF_BUFFER 0x989c |