2 * RF Buffer handling functions
4 * Copyright (c) 2009 Nick Kossifidis <mickflemm@gmail.com>
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22 * There are some special registers on the RF chip
23 * that control various operation settings related mostly to
24 * the analog parts (channel, gain adjustment etc).
26 * We don't write on those registers directly but
27 * we send a data packet on the chip, using a special register,
28 * that holds all the settings we need. After we 've sent the
29 * data packet, we write on another special register to notify hw
30 * to apply the settings. This is done so that control registers
31 * can be dynamicaly programmed during operation and the settings
32 * are applied faster on the hw.
34 * We call each data packet an "RF Bank" and all the data we write
35 * (all RF Banks) "RF Buffer". This file holds initial RF Buffer
36 * data for the different RF chips, and various info to match RF
37 * Buffer offsets with specific RF registers so that we can access
38 * them. We tweak these settings on rfregs_init function.
40 * Also check out reg.h and U.S. Patent 6677779 B1 (about buffer
41 * registers and control registers):
43 * http://www.google.com/patents?id=qNURAAAAEBAJ
48 * Struct to hold default mode specific RF
49 * register values (RF Banks)
51 struct ath5k_ini_rfbuffer {
52 u8 rfb_bank; /* RF Bank number */
53 u16 rfb_ctrl_register; /* RF Buffer control register */
54 u32 rfb_mode_data[5]; /* RF Buffer data for each mode */
58 * Struct to hold RF Buffer field
59 * infos used to access certain RF
62 struct ath5k_rfb_field {
63 u8 len; /* Field length */
64 u16 pos; /* Offset on the raw packet */
65 u8 col; /* Column -used for shifting */
69 * RF analog register definition
72 u8 bank; /* RF Buffer Bank number */
73 u8 index; /* Register's index on rf_regs_idx */
74 struct ath5k_rfb_field field; /* RF Buffer field for this register */
77 /* Map RF registers to indexes
78 * We do this to handle common bits and make our
79 * life easier by using an index for each register
80 * instead of a full rfb_field */
81 enum ath5k_rf_regs_idx {
101 AR5K_RF_PWD_ICLOBUF_2G,
112 AR5K_RF_DERBY_CHAN_SEL_MODE,
123 AR5K_RF_MIXGAIN_STEP,
129 AR5K_RF_PD_PERIOD_XR,
133 /*******************\
134 * RF5111 (Sombrero) *
135 \*******************/
137 /* BANK 6 len pos col */
138 #define AR5K_RF5111_OB_2GHZ { 3, 119, 0 }
139 #define AR5K_RF5111_DB_2GHZ { 3, 122, 0 }
141 #define AR5K_RF5111_OB_5GHZ { 3, 104, 0 }
142 #define AR5K_RF5111_DB_5GHZ { 3, 107, 0 }
144 #define AR5K_RF5111_PWD_XPD { 1, 95, 0 }
145 #define AR5K_RF5111_XPD_GAIN { 4, 96, 0 }
147 /* Access to PWD registers */
148 #define AR5K_RF5111_PWD(_n) { 1, (135 - _n), 3 }
150 /* BANK 7 len pos col */
151 #define AR5K_RF5111_GAIN_I { 6, 29, 0 }
152 #define AR5K_RF5111_PLO_SEL { 1, 4, 0 }
153 #define AR5K_RF5111_RFGAIN_SEL { 1, 36, 0 }
154 #define AR5K_RF5111_RFGAIN_STEP { 6, 37, 0 }
155 /* Only on AR5212 BaseBand and up */
156 #define AR5K_RF5111_WAIT_S { 5, 19, 0 }
157 #define AR5K_RF5111_WAIT_I { 5, 24, 0 }
158 #define AR5K_RF5111_MAX_TIME { 2, 49, 0 }
160 static const struct ath5k_rf_reg rf_regs_5111[] = {
161 {6, AR5K_RF_OB_2GHZ, AR5K_RF5111_OB_2GHZ},
162 {6, AR5K_RF_DB_2GHZ, AR5K_RF5111_DB_2GHZ},
163 {6, AR5K_RF_OB_5GHZ, AR5K_RF5111_OB_5GHZ},
164 {6, AR5K_RF_DB_5GHZ, AR5K_RF5111_DB_5GHZ},
165 {6, AR5K_RF_PWD_XPD, AR5K_RF5111_PWD_XPD},
166 {6, AR5K_RF_XPD_GAIN, AR5K_RF5111_XPD_GAIN},
167 {6, AR5K_RF_PWD_84, AR5K_RF5111_PWD(84)},
168 {6, AR5K_RF_PWD_90, AR5K_RF5111_PWD(90)},
169 {7, AR5K_RF_GAIN_I, AR5K_RF5111_GAIN_I},
170 {7, AR5K_RF_PLO_SEL, AR5K_RF5111_PLO_SEL},
171 {7, AR5K_RF_RFGAIN_SEL, AR5K_RF5111_RFGAIN_SEL},
172 {7, AR5K_RF_RFGAIN_STEP, AR5K_RF5111_RFGAIN_STEP},
173 {7, AR5K_RF_WAIT_S, AR5K_RF5111_WAIT_S},
174 {7, AR5K_RF_WAIT_I, AR5K_RF5111_WAIT_I},
175 {7, AR5K_RF_MAX_TIME, AR5K_RF5111_MAX_TIME}
178 /* Default mode specific settings */
179 static const struct ath5k_ini_rfbuffer rfb_5111[] = {
181 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
182 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
184 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
186 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
188 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
190 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
192 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
194 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
196 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
198 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
200 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
202 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
204 { 0x00380000, 0x00380000, 0x00380000, 0x00380000, 0x00380000 } },
206 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
208 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
210 { 0x00000000, 0x00000000, 0x000000c0, 0x00000080, 0x00000080 } },
212 { 0x000400f9, 0x000400f9, 0x000400ff, 0x000400fd, 0x000400fd } },
214 { 0x00000000, 0x00000000, 0x00000004, 0x00000004, 0x00000004 } },
216 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
218 { 0x00000010, 0x00000014, 0x00000010, 0x00000010, 0x00000014 } },
220 { 0x00601068, 0x00601068, 0x00601068, 0x00601068, 0x00601068 } },
222 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
224 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
226 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
228 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
230 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
232 { 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000 } },
234 { 0x04000000, 0x04000000, 0x04000000, 0x04000000, 0x04000000 } },
236 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
238 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
240 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
242 { 0x00000000, 0x00000000, 0x0a000000, 0x00000000, 0x00000000 } },
244 { 0x003800c0, 0x00380080, 0x023800c0, 0x003800c0, 0x003800c0 } },
246 { 0x00020006, 0x00020006, 0x00000006, 0x00020006, 0x00020006 } },
248 { 0x00000089, 0x00000089, 0x00000089, 0x00000089, 0x00000089 } },
250 { 0x000000a0, 0x000000a0, 0x000000a0, 0x000000a0, 0x000000a0 } },
252 { 0x00040007, 0x00040007, 0x00040007, 0x00040007, 0x00040007 } },
254 { 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a, 0x0000001a } },
256 { 0x00000040, 0x00000048, 0x00000040, 0x00000040, 0x00000040 } },
258 { 0x00000010, 0x00000010, 0x00000010, 0x00000010, 0x00000010 } },
260 { 0x00000008, 0x00000008, 0x00000008, 0x00000008, 0x00000008 } },
262 { 0x0000004f, 0x0000004f, 0x0000004f, 0x0000004f, 0x0000004f } },
264 { 0x000000f1, 0x000000f1, 0x00000061, 0x000000f1, 0x000000f1 } },
266 { 0x0000904f, 0x0000904f, 0x0000904c, 0x0000904f, 0x0000904f } },
268 { 0x0000125a, 0x0000125a, 0x0000129a, 0x0000125a, 0x0000125a } },
270 { 0x0000000e, 0x0000000e, 0x0000000f, 0x0000000e, 0x0000000e } },
275 /***********************\
276 * RF5112/RF2112 (Derby) *
277 \***********************/
279 /* BANK 7 (Common) len pos col */
280 #define AR5K_RF5112X_GAIN_I { 6, 14, 0 }
281 #define AR5K_RF5112X_MIXVGA_OVR { 1, 36, 0 }
282 #define AR5K_RF5112X_MIXGAIN_OVR { 2, 37, 0 }
283 #define AR5K_RF5112X_MIXGAIN_STEP { 4, 32, 0 }
284 #define AR5K_RF5112X_PD_DELAY_A { 4, 58, 0 }
285 #define AR5K_RF5112X_PD_DELAY_B { 4, 62, 0 }
286 #define AR5K_RF5112X_PD_DELAY_XR { 4, 66, 0 }
287 #define AR5K_RF5112X_PD_PERIOD_A { 4, 70, 0 }
288 #define AR5K_RF5112X_PD_PERIOD_B { 4, 74, 0 }
289 #define AR5K_RF5112X_PD_PERIOD_XR { 4, 78, 0 }
291 /* RFX112 (Derby 1) */
293 /* BANK 6 len pos col */
294 #define AR5K_RF5112_OB_2GHZ { 3, 269, 0 }
295 #define AR5K_RF5112_DB_2GHZ { 3, 272, 0 }
297 #define AR5K_RF5112_OB_5GHZ { 3, 261, 0 }
298 #define AR5K_RF5112_DB_5GHZ { 3, 264, 0 }
300 #define AR5K_RF5112_FIXED_BIAS_A { 1, 260, 0 }
301 #define AR5K_RF5112_FIXED_BIAS_B { 1, 259, 0 }
303 #define AR5K_RF5112_XPD_SEL { 1, 284, 0 }
304 #define AR5K_RF5112_XPD_GAIN { 2, 252, 0 }
306 /* Access to PWD registers */
307 #define AR5K_RF5112_PWD(_n) { 1, (302 - _n), 3 }
309 static const struct ath5k_rf_reg rf_regs_5112[] = {
310 {6, AR5K_RF_OB_2GHZ, AR5K_RF5112_OB_2GHZ},
311 {6, AR5K_RF_DB_2GHZ, AR5K_RF5112_DB_2GHZ},
312 {6, AR5K_RF_OB_5GHZ, AR5K_RF5112_OB_5GHZ},
313 {6, AR5K_RF_DB_5GHZ, AR5K_RF5112_DB_5GHZ},
314 {6, AR5K_RF_FIXED_BIAS_A, AR5K_RF5112_FIXED_BIAS_A},
315 {6, AR5K_RF_FIXED_BIAS_B, AR5K_RF5112_FIXED_BIAS_B},
316 {6, AR5K_RF_XPD_SEL, AR5K_RF5112_XPD_SEL},
317 {6, AR5K_RF_XPD_GAIN, AR5K_RF5112_XPD_GAIN},
318 {6, AR5K_RF_PWD_130, AR5K_RF5112_PWD(130)},
319 {6, AR5K_RF_PWD_131, AR5K_RF5112_PWD(131)},
320 {6, AR5K_RF_PWD_132, AR5K_RF5112_PWD(132)},
321 {6, AR5K_RF_PWD_136, AR5K_RF5112_PWD(136)},
322 {6, AR5K_RF_PWD_137, AR5K_RF5112_PWD(137)},
323 {6, AR5K_RF_PWD_138, AR5K_RF5112_PWD(138)},
324 {7, AR5K_RF_GAIN_I, AR5K_RF5112X_GAIN_I},
325 {7, AR5K_RF_MIXVGA_OVR, AR5K_RF5112X_MIXVGA_OVR},
326 {7, AR5K_RF_MIXGAIN_OVR, AR5K_RF5112X_MIXGAIN_OVR},
327 {7, AR5K_RF_MIXGAIN_STEP, AR5K_RF5112X_MIXGAIN_STEP},
328 {7, AR5K_RF_PD_DELAY_A, AR5K_RF5112X_PD_DELAY_A},
329 {7, AR5K_RF_PD_DELAY_B, AR5K_RF5112X_PD_DELAY_B},
330 {7, AR5K_RF_PD_DELAY_XR, AR5K_RF5112X_PD_DELAY_XR},
331 {7, AR5K_RF_PD_PERIOD_A, AR5K_RF5112X_PD_PERIOD_A},
332 {7, AR5K_RF_PD_PERIOD_B, AR5K_RF5112X_PD_PERIOD_B},
333 {7, AR5K_RF_PD_PERIOD_XR, AR5K_RF5112X_PD_PERIOD_XR},
336 /* Default mode specific settings */
337 static const struct ath5k_ini_rfbuffer rfb_5112[] = {
339 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
340 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
342 { 0x03060408, 0x03070408, 0x03060408, 0x03060408, 0x03070408 } },
344 { 0x00a0c0c0, 0x00a0c0c0, 0x00e0c0c0, 0x00e0c0c0, 0x00e0c0c0 } },
346 { 0x00a00000, 0x00a00000, 0x00a00000, 0x00a00000, 0x00a00000 } },
348 { 0x000a0000, 0x000a0000, 0x000a0000, 0x000a0000, 0x000a0000 } },
350 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
352 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
354 { 0x00660000, 0x00660000, 0x00660000, 0x00660000, 0x00660000 } },
356 { 0x00db0000, 0x00db0000, 0x00db0000, 0x00db0000, 0x00db0000 } },
358 { 0x00f10000, 0x00f10000, 0x00f10000, 0x00f10000, 0x00f10000 } },
360 { 0x00120000, 0x00120000, 0x00120000, 0x00120000, 0x00120000 } },
362 { 0x00120000, 0x00120000, 0x00120000, 0x00120000, 0x00120000 } },
364 { 0x00730000, 0x00730000, 0x00730000, 0x00730000, 0x00730000 } },
366 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
368 { 0x000c0000, 0x000c0000, 0x000c0000, 0x000c0000, 0x000c0000 } },
370 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
372 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
374 { 0x008b0000, 0x008b0000, 0x008b0000, 0x008b0000, 0x008b0000 } },
376 { 0x00600000, 0x00600000, 0x00600000, 0x00600000, 0x00600000 } },
378 { 0x000c0000, 0x000c0000, 0x000c0000, 0x000c0000, 0x000c0000 } },
380 { 0x00840000, 0x00840000, 0x00840000, 0x00840000, 0x00840000 } },
382 { 0x00640000, 0x00640000, 0x00640000, 0x00640000, 0x00640000 } },
384 { 0x00200000, 0x00200000, 0x00200000, 0x00200000, 0x00200000 } },
386 { 0x00240000, 0x00240000, 0x00240000, 0x00240000, 0x00240000 } },
388 { 0x00250000, 0x00250000, 0x00250000, 0x00250000, 0x00250000 } },
390 { 0x00110000, 0x00110000, 0x00110000, 0x00110000, 0x00110000 } },
392 { 0x00110000, 0x00110000, 0x00110000, 0x00110000, 0x00110000 } },
394 { 0x00510000, 0x00510000, 0x00510000, 0x00510000, 0x00510000 } },
396 { 0x1c040000, 0x1c040000, 0x1c040000, 0x1c040000, 0x1c040000 } },
398 { 0x000a0000, 0x000a0000, 0x000a0000, 0x000a0000, 0x000a0000 } },
400 { 0x00a10000, 0x00a10000, 0x00a10000, 0x00a10000, 0x00a10000 } },
402 { 0x00400000, 0x00400000, 0x00400000, 0x00400000, 0x00400000 } },
404 { 0x03090000, 0x03090000, 0x03090000, 0x03090000, 0x03090000 } },
406 { 0x06000000, 0x06000000, 0x06000000, 0x06000000, 0x06000000 } },
408 { 0x000000b0, 0x000000b0, 0x000000a8, 0x000000a8, 0x000000a8 } },
410 { 0x0000002e, 0x0000002e, 0x0000002e, 0x0000002e, 0x0000002e } },
412 { 0x006c4a41, 0x006c4a41, 0x006c4af1, 0x006c4a61, 0x006c4a61 } },
414 { 0x0050892a, 0x0050892a, 0x0050892b, 0x0050892b, 0x0050892b } },
416 { 0x00842400, 0x00842400, 0x00842400, 0x00842400, 0x00842400 } },
418 { 0x00c69200, 0x00c69200, 0x00c69200, 0x00c69200, 0x00c69200 } },
420 { 0x0002000c, 0x0002000c, 0x0002000c, 0x0002000c, 0x0002000c } },
422 { 0x00000094, 0x00000094, 0x00000094, 0x00000094, 0x00000094 } },
424 { 0x00000091, 0x00000091, 0x00000091, 0x00000091, 0x00000091 } },
426 { 0x0000000a, 0x0000000a, 0x00000012, 0x00000012, 0x00000012 } },
428 { 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000080 } },
430 { 0x000000c1, 0x000000c1, 0x000000c1, 0x000000c1, 0x000000c1 } },
432 { 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060 } },
434 { 0x000000f0, 0x000000f0, 0x000000f0, 0x000000f0, 0x000000f0 } },
436 { 0x00000022, 0x00000022, 0x00000022, 0x00000022, 0x00000022 } },
438 { 0x00000092, 0x00000092, 0x00000092, 0x00000092, 0x00000092 } },
440 { 0x000000d4, 0x000000d4, 0x000000d4, 0x000000d4, 0x000000d4 } },
442 { 0x000014cc, 0x000014cc, 0x000014cc, 0x000014cc, 0x000014cc } },
444 { 0x0000048c, 0x0000048c, 0x0000048c, 0x0000048c, 0x0000048c } },
446 { 0x00000003, 0x00000003, 0x00000003, 0x00000003, 0x00000003 } },
449 /* RFX112A (Derby 2) */
451 /* BANK 6 len pos col */
452 #define AR5K_RF5112A_OB_2GHZ { 3, 287, 0 }
453 #define AR5K_RF5112A_DB_2GHZ { 3, 290, 0 }
455 #define AR5K_RF5112A_OB_5GHZ { 3, 279, 0 }
456 #define AR5K_RF5112A_DB_5GHZ { 3, 282, 0 }
458 #define AR5K_RF5112A_FIXED_BIAS_A { 1, 278, 0 }
459 #define AR5K_RF5112A_FIXED_BIAS_B { 1, 277, 0 }
461 #define AR5K_RF5112A_XPD_SEL { 1, 302, 0 }
462 #define AR5K_RF5112A_PDGAINLO { 2, 270, 0 }
463 #define AR5K_RF5112A_PDGAINHI { 2, 257, 0 }
465 /* Access to PWD registers */
466 #define AR5K_RF5112A_PWD(_n) { 1, (306 - _n), 3 }
468 /* Voltage regulators */
469 #define AR5K_RF5112A_HIGH_VC_CP { 2, 90, 2 }
470 #define AR5K_RF5112A_MID_VC_CP { 2, 92, 2 }
471 #define AR5K_RF5112A_LOW_VC_CP { 2, 94, 2 }
472 #define AR5K_RF5112A_PUSH_UP { 1, 254, 2 }
474 /* Power consumption */
475 #define AR5K_RF5112A_PAD2GND { 1, 281, 1 }
476 #define AR5K_RF5112A_XB2_LVL { 2, 1, 3 }
477 #define AR5K_RF5112A_XB5_LVL { 2, 3, 3 }
479 static const struct ath5k_rf_reg rf_regs_5112a[] = {
480 {6, AR5K_RF_OB_2GHZ, AR5K_RF5112A_OB_2GHZ},
481 {6, AR5K_RF_DB_2GHZ, AR5K_RF5112A_DB_2GHZ},
482 {6, AR5K_RF_OB_5GHZ, AR5K_RF5112A_OB_5GHZ},
483 {6, AR5K_RF_DB_5GHZ, AR5K_RF5112A_DB_5GHZ},
484 {6, AR5K_RF_FIXED_BIAS_A, AR5K_RF5112A_FIXED_BIAS_A},
485 {6, AR5K_RF_FIXED_BIAS_B, AR5K_RF5112A_FIXED_BIAS_B},
486 {6, AR5K_RF_XPD_SEL, AR5K_RF5112A_XPD_SEL},
487 {6, AR5K_RF_PD_GAIN_LO, AR5K_RF5112A_PDGAINLO},
488 {6, AR5K_RF_PD_GAIN_HI, AR5K_RF5112A_PDGAINHI},
489 {6, AR5K_RF_PWD_130, AR5K_RF5112A_PWD(130)},
490 {6, AR5K_RF_PWD_131, AR5K_RF5112A_PWD(131)},
491 {6, AR5K_RF_PWD_132, AR5K_RF5112A_PWD(132)},
492 {6, AR5K_RF_PWD_136, AR5K_RF5112A_PWD(136)},
493 {6, AR5K_RF_PWD_137, AR5K_RF5112A_PWD(137)},
494 {6, AR5K_RF_PWD_138, AR5K_RF5112A_PWD(138)},
495 {6, AR5K_RF_PWD_166, AR5K_RF5112A_PWD(166)},
496 {6, AR5K_RF_PWD_167, AR5K_RF5112A_PWD(167)},
497 {6, AR5K_RF_HIGH_VC_CP, AR5K_RF5112A_HIGH_VC_CP},
498 {6, AR5K_RF_MID_VC_CP, AR5K_RF5112A_MID_VC_CP},
499 {6, AR5K_RF_LOW_VC_CP, AR5K_RF5112A_LOW_VC_CP},
500 {6, AR5K_RF_PUSH_UP, AR5K_RF5112A_PUSH_UP},
501 {6, AR5K_RF_PAD2GND, AR5K_RF5112A_PAD2GND},
502 {6, AR5K_RF_XB2_LVL, AR5K_RF5112A_XB2_LVL},
503 {6, AR5K_RF_XB5_LVL, AR5K_RF5112A_XB5_LVL},
504 {7, AR5K_RF_GAIN_I, AR5K_RF5112X_GAIN_I},
505 {7, AR5K_RF_MIXVGA_OVR, AR5K_RF5112X_MIXVGA_OVR},
506 {7, AR5K_RF_MIXGAIN_OVR, AR5K_RF5112X_MIXGAIN_OVR},
507 {7, AR5K_RF_MIXGAIN_STEP, AR5K_RF5112X_MIXGAIN_STEP},
508 {7, AR5K_RF_PD_DELAY_A, AR5K_RF5112X_PD_DELAY_A},
509 {7, AR5K_RF_PD_DELAY_B, AR5K_RF5112X_PD_DELAY_B},
510 {7, AR5K_RF_PD_DELAY_XR, AR5K_RF5112X_PD_DELAY_XR},
511 {7, AR5K_RF_PD_PERIOD_A, AR5K_RF5112X_PD_PERIOD_A},
512 {7, AR5K_RF_PD_PERIOD_B, AR5K_RF5112X_PD_PERIOD_B},
513 {7, AR5K_RF_PD_PERIOD_XR, AR5K_RF5112X_PD_PERIOD_XR},
516 /* Default mode specific settings */
517 static const struct ath5k_ini_rfbuffer rfb_5112a[] = {
519 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
520 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
522 { 0x03060408, 0x03070408, 0x03060408, 0x03060408, 0x03070408 } },
524 { 0x00a020c0, 0x00a020c0, 0x00e020c0, 0x00e020c0, 0x00e020c0 } },
526 { 0x0f000000, 0x0f000000, 0x0f000000, 0x0f000000, 0x0f000000 } },
528 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
530 { 0x00800000, 0x00800000, 0x00800000, 0x00800000, 0x00800000 } },
532 { 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000 } },
534 { 0x00010000, 0x00010000, 0x00010000, 0x00010000, 0x00010000 } },
536 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
538 { 0x00180000, 0x00180000, 0x00180000, 0x00180000, 0x00180000 } },
540 { 0x00600000, 0x00600000, 0x006e0000, 0x006e0000, 0x006e0000 } },
542 { 0x00c70000, 0x00c70000, 0x00c70000, 0x00c70000, 0x00c70000 } },
544 { 0x004b0000, 0x004b0000, 0x004b0000, 0x004b0000, 0x004b0000 } },
546 { 0x04480000, 0x04480000, 0x04480000, 0x04480000, 0x04480000 } },
548 { 0x004c0000, 0x004c0000, 0x004c0000, 0x004c0000, 0x004c0000 } },
550 { 0x00e40000, 0x00e40000, 0x00e40000, 0x00e40000, 0x00e40000 } },
552 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
554 { 0x00fc0000, 0x00fc0000, 0x00fc0000, 0x00fc0000, 0x00fc0000 } },
556 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
558 { 0x043f0000, 0x043f0000, 0x043f0000, 0x043f0000, 0x043f0000 } },
560 { 0x000c0000, 0x000c0000, 0x000c0000, 0x000c0000, 0x000c0000 } },
562 { 0x02190000, 0x02190000, 0x02190000, 0x02190000, 0x02190000 } },
564 { 0x00240000, 0x00240000, 0x00240000, 0x00240000, 0x00240000 } },
566 { 0x00b40000, 0x00b40000, 0x00b40000, 0x00b40000, 0x00b40000 } },
568 { 0x00990000, 0x00990000, 0x00990000, 0x00990000, 0x00990000 } },
570 { 0x00500000, 0x00500000, 0x00500000, 0x00500000, 0x00500000 } },
572 { 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000 } },
574 { 0x00120000, 0x00120000, 0x00120000, 0x00120000, 0x00120000 } },
576 { 0xc0320000, 0xc0320000, 0xc0320000, 0xc0320000, 0xc0320000 } },
578 { 0x01740000, 0x01740000, 0x01740000, 0x01740000, 0x01740000 } },
580 { 0x00110000, 0x00110000, 0x00110000, 0x00110000, 0x00110000 } },
582 { 0x86280000, 0x86280000, 0x86280000, 0x86280000, 0x86280000 } },
584 { 0x31840000, 0x31840000, 0x31840000, 0x31840000, 0x31840000 } },
586 { 0x00f20080, 0x00f20080, 0x00f20080, 0x00f20080, 0x00f20080 } },
588 { 0x00270019, 0x00270019, 0x00270019, 0x00270019, 0x00270019 } },
590 { 0x00000003, 0x00000003, 0x00000003, 0x00000003, 0x00000003 } },
592 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
594 { 0x000000b2, 0x000000b2, 0x000000b2, 0x000000b2, 0x000000b2 } },
596 { 0x00b02084, 0x00b02084, 0x00b02084, 0x00b02084, 0x00b02084 } },
598 { 0x004125a4, 0x004125a4, 0x004125a4, 0x004125a4, 0x004125a4 } },
600 { 0x00119220, 0x00119220, 0x00119220, 0x00119220, 0x00119220 } },
602 { 0x001a4800, 0x001a4800, 0x001a4800, 0x001a4800, 0x001a4800 } },
604 { 0x000b0230, 0x000b0230, 0x000b0230, 0x000b0230, 0x000b0230 } },
606 { 0x00000094, 0x00000094, 0x00000094, 0x00000094, 0x00000094 } },
608 { 0x00000091, 0x00000091, 0x00000091, 0x00000091, 0x00000091 } },
610 { 0x00000012, 0x00000012, 0x00000012, 0x00000012, 0x00000012 } },
612 { 0x00000080, 0x00000080, 0x00000080, 0x00000080, 0x00000080 } },
614 { 0x000000d9, 0x000000d9, 0x000000d9, 0x000000d9, 0x000000d9 } },
616 { 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060 } },
618 { 0x000000f0, 0x000000f0, 0x000000f0, 0x000000f0, 0x000000f0 } },
620 { 0x000000a2, 0x000000a2, 0x000000a2, 0x000000a2, 0x000000a2 } },
622 { 0x00000052, 0x00000052, 0x00000052, 0x00000052, 0x00000052 } },
624 { 0x000000d4, 0x000000d4, 0x000000d4, 0x000000d4, 0x000000d4 } },
626 { 0x000014cc, 0x000014cc, 0x000014cc, 0x000014cc, 0x000014cc } },
628 { 0x0000048c, 0x0000048c, 0x0000048c, 0x0000048c, 0x0000048c } },
630 { 0x00000003, 0x00000003, 0x00000003, 0x00000003, 0x00000003 } },
639 /* BANK 6 len pos col */
640 #define AR5K_RF2413_OB_2GHZ { 3, 168, 0 }
641 #define AR5K_RF2413_DB_2GHZ { 3, 165, 0 }
643 static const struct ath5k_rf_reg rf_regs_2413[] = {
644 {6, AR5K_RF_OB_2GHZ, AR5K_RF2413_OB_2GHZ},
645 {6, AR5K_RF_DB_2GHZ, AR5K_RF2413_DB_2GHZ},
648 /* Default mode specific settings
651 static const struct ath5k_ini_rfbuffer rfb_2413[] = {
653 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
654 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
656 { 0x02001408, 0x02011408, 0x02001408, 0x02001408, 0x02011408 } },
658 { 0x00a020c0, 0x00a020c0, 0x00e020c0, 0x00e020c0, 0x00e020c0 } },
660 { 0xf0000000, 0xf0000000, 0xf0000000, 0xf0000000, 0xf0000000 } },
662 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
664 { 0x03000000, 0x03000000, 0x03000000, 0x03000000, 0x03000000 } },
666 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
668 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
670 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
672 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
674 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
676 { 0x40400000, 0x40400000, 0x40400000, 0x40400000, 0x40400000 } },
678 { 0x65050000, 0x65050000, 0x65050000, 0x65050000, 0x65050000 } },
680 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
682 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
684 { 0x00420000, 0x00420000, 0x00420000, 0x00420000, 0x00420000 } },
686 { 0x00b50000, 0x00b50000, 0x00b50000, 0x00b50000, 0x00b50000 } },
688 { 0x00030000, 0x00030000, 0x00030000, 0x00030000, 0x00030000 } },
690 { 0x00f70000, 0x00f70000, 0x00f70000, 0x00f70000, 0x00f70000 } },
692 { 0x009d0000, 0x009d0000, 0x009d0000, 0x009d0000, 0x009d0000 } },
694 { 0x00220000, 0x00220000, 0x00220000, 0x00220000, 0x00220000 } },
696 { 0x04220000, 0x04220000, 0x04220000, 0x04220000, 0x04220000 } },
698 { 0x00230018, 0x00230018, 0x00230018, 0x00230018, 0x00230018 } },
700 { 0x00280000, 0x00280000, 0x00280060, 0x00280060, 0x00280060 } },
702 { 0x005000c0, 0x005000c0, 0x005000c3, 0x005000c3, 0x005000c3 } },
704 { 0x0004007f, 0x0004007f, 0x0004007f, 0x0004007f, 0x0004007f } },
706 { 0x00000458, 0x00000458, 0x00000458, 0x00000458, 0x00000458 } },
708 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
710 { 0x0000c000, 0x0000c000, 0x0000c000, 0x0000c000, 0x0000c000 } },
712 { 0x00400230, 0x00400230, 0x00400230, 0x00400230, 0x00400230 } },
714 { 0x00006400, 0x00006400, 0x00006400, 0x00006400, 0x00006400 } },
716 { 0x00000800, 0x00000800, 0x00000800, 0x00000800, 0x00000800 } },
718 { 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e } },
723 /***************************\
724 * RF2315/RF2316 (Cobra SoC) *
725 \***************************/
727 /* BANK 6 len pos col */
728 #define AR5K_RF2316_OB_2GHZ { 3, 178, 0 }
729 #define AR5K_RF2316_DB_2GHZ { 3, 175, 0 }
731 static const struct ath5k_rf_reg rf_regs_2316[] = {
732 {6, AR5K_RF_OB_2GHZ, AR5K_RF2316_OB_2GHZ},
733 {6, AR5K_RF_DB_2GHZ, AR5K_RF2316_DB_2GHZ},
736 /* Default mode specific settings */
737 static const struct ath5k_ini_rfbuffer rfb_2316[] = {
739 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
740 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
742 { 0x02001408, 0x02011408, 0x02001408, 0x02001408, 0x02011408 } },
744 { 0x00a020c0, 0x00a020c0, 0x00e020c0, 0x00e020c0, 0x00e020c0 } },
746 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
748 { 0xc0000000, 0xc0000000, 0xc0000000, 0xc0000000, 0xc0000000 } },
750 { 0x0f000000, 0x0f000000, 0x0f000000, 0x0f000000, 0x0f000000 } },
752 { 0x02000000, 0x02000000, 0x02000000, 0x02000000, 0x02000000 } },
754 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
756 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
758 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
760 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
762 { 0xf8000000, 0xf8000000, 0xf8000000, 0xf8000000, 0xf8000000 } },
764 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
766 { 0x95150000, 0x95150000, 0x95150000, 0x95150000, 0x95150000 } },
768 { 0xc1000000, 0xc1000000, 0xc1000000, 0xc1000000, 0xc1000000 } },
770 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
772 { 0x00080000, 0x00080000, 0x00080000, 0x00080000, 0x00080000 } },
774 { 0x00d50000, 0x00d50000, 0x00d50000, 0x00d50000, 0x00d50000 } },
776 { 0x000e0000, 0x000e0000, 0x000e0000, 0x000e0000, 0x000e0000 } },
778 { 0x00dc0000, 0x00dc0000, 0x00dc0000, 0x00dc0000, 0x00dc0000 } },
780 { 0x00770000, 0x00770000, 0x00770000, 0x00770000, 0x00770000 } },
782 { 0x008a0000, 0x008a0000, 0x008a0000, 0x008a0000, 0x008a0000 } },
784 { 0x10880000, 0x10880000, 0x10880000, 0x10880000, 0x10880000 } },
786 { 0x008c0060, 0x008c0060, 0x008c0060, 0x008c0060, 0x008c0060 } },
788 { 0x00a00000, 0x00a00000, 0x00a00080, 0x00a00080, 0x00a00080 } },
790 { 0x00400000, 0x00400000, 0x0040000d, 0x0040000d, 0x0040000d } },
792 { 0x00110400, 0x00110400, 0x00110400, 0x00110400, 0x00110400 } },
794 { 0x00000060, 0x00000060, 0x00000060, 0x00000060, 0x00000060 } },
796 { 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001 } },
798 { 0x00000b00, 0x00000b00, 0x00000b00, 0x00000b00, 0x00000b00 } },
800 { 0x00000be8, 0x00000be8, 0x00000be8, 0x00000be8, 0x00000be8 } },
802 { 0x00010000, 0x00010000, 0x00010000, 0x00010000, 0x00010000 } },
804 { 0x00006400, 0x00006400, 0x00006400, 0x00006400, 0x00006400 } },
806 { 0x00000800, 0x00000800, 0x00000800, 0x00000800, 0x00000800 } },
808 { 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e } },
813 /******************************\
814 * RF5413/RF5424 (Eagle/Condor) *
815 \******************************/
817 /* BANK 6 len pos col */
818 #define AR5K_RF5413_OB_2GHZ { 3, 241, 0 }
819 #define AR5K_RF5413_DB_2GHZ { 3, 238, 0 }
821 #define AR5K_RF5413_OB_5GHZ { 3, 247, 0 }
822 #define AR5K_RF5413_DB_5GHZ { 3, 244, 0 }
824 #define AR5K_RF5413_PWD_ICLOBUF2G { 3, 131, 3 }
825 #define AR5K_RF5413_DERBY_CHAN_SEL_MODE { 1, 291, 2 }
827 static const struct ath5k_rf_reg rf_regs_5413[] = {
828 {6, AR5K_RF_OB_2GHZ, AR5K_RF5413_OB_2GHZ},
829 {6, AR5K_RF_DB_2GHZ, AR5K_RF5413_DB_2GHZ},
830 {6, AR5K_RF_OB_5GHZ, AR5K_RF5413_OB_5GHZ},
831 {6, AR5K_RF_DB_5GHZ, AR5K_RF5413_DB_5GHZ},
832 {6, AR5K_RF_PWD_ICLOBUF_2G, AR5K_RF5413_PWD_ICLOBUF2G},
833 {6, AR5K_RF_DERBY_CHAN_SEL_MODE, AR5K_RF5413_DERBY_CHAN_SEL_MODE},
836 /* Default mode specific settings */
837 static const struct ath5k_ini_rfbuffer rfb_5413[] = {
839 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
840 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
842 { 0x00000008, 0x00000008, 0x00000008, 0x00000008, 0x00000008 } },
844 { 0x00a000c0, 0x00a000c0, 0x00e000c0, 0x00e000c0, 0x00e000c0 } },
846 { 0x33000000, 0x33000000, 0x33000000, 0x33000000, 0x33000000 } },
848 { 0x01000000, 0x01000000, 0x01000000, 0x01000000, 0x01000000 } },
850 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
852 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
854 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
856 { 0x1f000000, 0x1f000000, 0x1f000000, 0x1f000000, 0x1f000000 } },
858 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
860 { 0x00b80000, 0x00b80000, 0x00b80000, 0x00b80000, 0x00b80000 } },
862 { 0x00b70000, 0x00b70000, 0x00b70000, 0x00b70000, 0x00b70000 } },
864 { 0x00840000, 0x00840000, 0x00840000, 0x00840000, 0x00840000 } },
866 { 0x00980000, 0x00980000, 0x00980000, 0x00980000, 0x00980000 } },
868 { 0x00c00000, 0x00c00000, 0x00c00000, 0x00c00000, 0x00c00000 } },
870 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
872 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
874 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
876 { 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000, 0x00ff0000 } },
878 { 0x00d70000, 0x00d70000, 0x00d70000, 0x00d70000, 0x00d70000 } },
880 { 0x00610000, 0x00610000, 0x00610000, 0x00610000, 0x00610000 } },
882 { 0x00fe0000, 0x00fe0000, 0x00fe0000, 0x00fe0000, 0x00fe0000 } },
884 { 0x00de0000, 0x00de0000, 0x00de0000, 0x00de0000, 0x00de0000 } },
886 { 0x007f0000, 0x007f0000, 0x007f0000, 0x007f0000, 0x007f0000 } },
888 { 0x043d0000, 0x043d0000, 0x043d0000, 0x043d0000, 0x043d0000 } },
890 { 0x00770000, 0x00770000, 0x00770000, 0x00770000, 0x00770000 } },
892 { 0x00440000, 0x00440000, 0x00440000, 0x00440000, 0x00440000 } },
894 { 0x00980000, 0x00980000, 0x00980000, 0x00980000, 0x00980000 } },
896 { 0x00100080, 0x00100080, 0x00100080, 0x00100080, 0x00100080 } },
898 { 0x0005c034, 0x0005c034, 0x0005c034, 0x0005c034, 0x0005c034 } },
900 { 0x003100f0, 0x003100f0, 0x003100f0, 0x003100f0, 0x003100f0 } },
902 { 0x000c011f, 0x000c011f, 0x000c011f, 0x000c011f, 0x000c011f } },
904 { 0x00510040, 0x00510040, 0x00510040, 0x00510040, 0x00510040 } },
906 { 0x005000da, 0x005000da, 0x005000da, 0x005000da, 0x005000da } },
908 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
910 { 0x00004044, 0x00004044, 0x00004044, 0x00004044, 0x00004044 } },
912 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
914 { 0x000060c0, 0x000060c0, 0x000060c0, 0x000060c0, 0x000060c0 } },
916 { 0x00002c00, 0x00002c00, 0x00003600, 0x00003600, 0x00002c00 } },
918 { 0x00000403, 0x00000403, 0x00040403, 0x00040403, 0x00040403 } },
920 { 0x00006400, 0x00006400, 0x00006400, 0x00006400, 0x00006400 } },
922 { 0x00000800, 0x00000800, 0x00000800, 0x00000800, 0x00000800 } },
924 { 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e } },
929 /***************************\
930 * RF2425/RF2417 (Swan/Nala) *
931 * AR2317 (Spider SoC) *
932 \***************************/
934 /* BANK 6 len pos col */
935 #define AR5K_RF2425_OB_2GHZ { 3, 193, 0 }
936 #define AR5K_RF2425_DB_2GHZ { 3, 190, 0 }
938 static const struct ath5k_rf_reg rf_regs_2425[] = {
939 {6, AR5K_RF_OB_2GHZ, AR5K_RF2425_OB_2GHZ},
940 {6, AR5K_RF_DB_2GHZ, AR5K_RF2425_DB_2GHZ},
943 /* Default mode specific settings
946 static const struct ath5k_ini_rfbuffer rfb_2425[] = {
948 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
949 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
951 { 0x02001408, 0x02001408, 0x02001408, 0x02001408, 0x02001408 } },
953 { 0x00a020c0, 0x00a020c0, 0x00e020c0, 0x00e020c0, 0x00e020c0 } },
955 { 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000 } },
957 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
959 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
961 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
963 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
965 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
967 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
969 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
971 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
973 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
975 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
977 { 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000 } },
979 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
981 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
983 { 0x00100000, 0x00100000, 0x00100000, 0x00100000, 0x00100000 } },
985 { 0x00020000, 0x00020000, 0x00020000, 0x00020000, 0x00020000 } },
987 { 0x00730000, 0x00730000, 0x00730000, 0x00730000, 0x00730000 } },
989 { 0x00f80000, 0x00f80000, 0x00f80000, 0x00f80000, 0x00f80000 } },
991 { 0x00e70000, 0x00e70000, 0x00e70000, 0x00e70000, 0x00e70000 } },
993 { 0x00140000, 0x00140000, 0x00140000, 0x00140000, 0x00140000 } },
995 { 0x00910040, 0x00910040, 0x00910040, 0x00910040, 0x00910040 } },
997 { 0x0007001a, 0x0007001a, 0x0007001a, 0x0007001a, 0x0007001a } },
999 { 0x00410000, 0x00410000, 0x00410000, 0x00410000, 0x00410000 } },
1001 { 0x00810000, 0x00810000, 0x00810060, 0x00810060, 0x00810060 } },
1003 { 0x00020800, 0x00020800, 0x00020803, 0x00020803, 0x00020803 } },
1005 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1007 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1009 { 0x00001660, 0x00001660, 0x00001660, 0x00001660, 0x00001660 } },
1011 { 0x00001688, 0x00001688, 0x00001688, 0x00001688, 0x00001688 } },
1013 { 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001 } },
1015 { 0x00006400, 0x00006400, 0x00006400, 0x00006400, 0x00006400 } },
1017 { 0x00000800, 0x00000800, 0x00000800, 0x00000800, 0x00000800 } },
1019 { 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e } },
1023 * TODO: Handle the few differences with swan during
1024 * bank modification and get rid of this
1026 static const struct ath5k_ini_rfbuffer rfb_2317[] = {
1028 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
1029 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
1031 { 0x02001408, 0x02011408, 0x02001408, 0x02001408, 0x02011408 } },
1033 { 0x00a020c0, 0x00a020c0, 0x00e020c0, 0x00e020c0, 0x00e020c0 } },
1035 { 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000 } },
1037 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1039 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1041 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1043 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1045 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1047 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1049 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1051 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1053 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1055 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1057 { 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000 } },
1059 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1061 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1063 { 0x00100000, 0x00100000, 0x00100000, 0x00100000, 0x00100000 } },
1065 { 0x00020000, 0x00020000, 0x00020000, 0x00020000, 0x00020000 } },
1067 { 0x00730000, 0x00730000, 0x00730000, 0x00730000, 0x00730000 } },
1069 { 0x00f80000, 0x00f80000, 0x00f80000, 0x00f80000, 0x00f80000 } },
1071 { 0x00e70000, 0x00e70000, 0x00e70000, 0x00e70000, 0x00e70000 } },
1073 { 0x00140100, 0x00140100, 0x00140100, 0x00140100, 0x00140100 } },
1075 { 0x00910040, 0x00910040, 0x00910040, 0x00910040, 0x00910040 } },
1077 { 0x0007001a, 0x0007001a, 0x0007001a, 0x0007001a, 0x0007001a } },
1079 { 0x00410000, 0x00410000, 0x00410000, 0x00410000, 0x00410000 } },
1081 { 0x00810000, 0x00810000, 0x00810060, 0x00810060, 0x00810060 } },
1083 { 0x00020800, 0x00020800, 0x00020803, 0x00020803, 0x00020803 } },
1085 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1087 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1089 { 0x00001660, 0x00001660, 0x00001660, 0x00001660, 0x00001660 } },
1091 { 0x00009688, 0x00009688, 0x00009688, 0x00009688, 0x00009688 } },
1093 { 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001 } },
1095 { 0x00006400, 0x00006400, 0x00006400, 0x00006400, 0x00006400 } },
1097 { 0x00000800, 0x00000800, 0x00000800, 0x00000800, 0x00000800 } },
1099 { 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e } },
1103 * TODO: Handle the few differences with swan during
1104 * bank modification and get rid of this
1107 static const struct ath5k_ini_rfbuffer rfb_2417[] = {
1109 /* mode a/XR mode aTurbo mode b mode g mode gTurbo */
1110 { 0x00000020, 0x00000020, 0x00000020, 0x00000020, 0x00000020 } },
1112 { 0x02001408, 0x02001408, 0x02001408, 0x02001408, 0x02001408 } },
1114 { 0x00a020c0, 0x00a020c0, 0x00e020c0, 0x00e020c0, 0x00e020c0 } },
1116 { 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000 } },
1118 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1120 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1122 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1124 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1126 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1128 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1130 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1132 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1134 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1136 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1138 { 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000, 0x002a0000 } },
1140 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1142 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1144 { 0x00100000, 0x00100000, 0x00100000, 0x00100000, 0x00100000 } },
1146 { 0x00020000, 0x00020000, 0x00020000, 0x00020000, 0x00020000 } },
1148 { 0x00730000, 0x00730000, 0x00730000, 0x00730000, 0x00730000 } },
1150 { 0x00f80000, 0x00f80000, 0x00f80000, 0x00f80000, 0x00f80000 } },
1152 { 0x00e70000, 0x00e70000, 0x80e70000, 0x80e70000, 0x00e70000 } },
1154 { 0x00140000, 0x00140000, 0x00140000, 0x00140000, 0x00140000 } },
1156 { 0x00910040, 0x00910040, 0x00910040, 0x00910040, 0x00910040 } },
1158 { 0x0007001a, 0x0007001a, 0x0207001a, 0x0207001a, 0x0007001a } },
1160 { 0x00410000, 0x00410000, 0x00410000, 0x00410000, 0x00410000 } },
1162 { 0x00810000, 0x00810000, 0x00810060, 0x00810060, 0x00810060 } },
1164 { 0x00020800, 0x00020800, 0x00020803, 0x00020803, 0x00020803 } },
1166 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1168 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1170 { 0x00001660, 0x00001660, 0x00001660, 0x00001660, 0x00001660 } },
1172 { 0x00001688, 0x00001688, 0x00001688, 0x00001688, 0x00001688 } },
1174 { 0x00000001, 0x00000001, 0x00000001, 0x00000001, 0x00000001 } },
1176 { 0x00006400, 0x00006400, 0x00006400, 0x00006400, 0x00006400 } },
1178 { 0x00000800, 0x00000800, 0x00000800, 0x00000800, 0x00000800 } },
1180 { 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e, 0x0000000e } },