1203c4805SLuis R. Rodriguez /* 2203c4805SLuis R. Rodriguez * RF Buffer handling functions 3203c4805SLuis R. Rodriguez * 4203c4805SLuis R. Rodriguez * Copyright (c) 2009 Nick Kossifidis <mickflemm@gmail.com> 5203c4805SLuis R. Rodriguez * 6203c4805SLuis R. Rodriguez * Permission to use, copy, modify, and distribute this software for any 7203c4805SLuis R. Rodriguez * purpose with or without fee is hereby granted, provided that the above 8203c4805SLuis R. Rodriguez * copyright notice and this permission notice appear in all copies. 9203c4805SLuis R. Rodriguez * 10203c4805SLuis R. Rodriguez * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11203c4805SLuis R. Rodriguez * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12203c4805SLuis R. Rodriguez * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13203c4805SLuis R. Rodriguez * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14203c4805SLuis R. Rodriguez * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15203c4805SLuis R. Rodriguez * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16203c4805SLuis R. Rodriguez * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17203c4805SLuis R. Rodriguez * 18203c4805SLuis R. Rodriguez */ 19203c4805SLuis R. Rodriguez 20203c4805SLuis R. Rodriguez 21203c4805SLuis R. Rodriguez /* 22203c4805SLuis R. Rodriguez * There are some special registers on the RF chip 23203c4805SLuis R. Rodriguez * that control various operation settings related mostly to 24203c4805SLuis R. Rodriguez * the analog parts (channel, gain adjustment etc). 25203c4805SLuis R. Rodriguez * 26203c4805SLuis R. Rodriguez * We don't write on those registers directly but 27203c4805SLuis R. Rodriguez * we send a data packet on the chip, using a special register, 28203c4805SLuis R. Rodriguez * that holds all the settings we need. After we've sent the 29203c4805SLuis R. Rodriguez * data packet, we write on another special register to notify hw 30203c4805SLuis R. Rodriguez * to apply the settings. This is done so that control registers 31a180a130SBob Copeland * can be dynamically programmed during operation and the settings 32203c4805SLuis R. Rodriguez * are applied faster on the hw. 33203c4805SLuis R. Rodriguez * 34203c4805SLuis R. Rodriguez * We call each data packet an "RF Bank" and all the data we write 35203c4805SLuis R. Rodriguez * (all RF Banks) "RF Buffer". This file holds initial RF Buffer 36203c4805SLuis R. Rodriguez * data for the different RF chips, and various info to match RF 37203c4805SLuis R. Rodriguez * Buffer offsets with specific RF registers so that we can access 38203c4805SLuis R. Rodriguez * them. We tweak these settings on rfregs_init function. 39203c4805SLuis R. Rodriguez * 40203c4805SLuis R. Rodriguez * Also check out reg.h and U.S. Patent 6677779 B1 (about buffer 41203c4805SLuis R. Rodriguez * registers and control registers): 42203c4805SLuis R. Rodriguez * 43203c4805SLuis R. Rodriguez * http://www.google.com/patents?id=qNURAAAAEBAJ 44203c4805SLuis R. Rodriguez */ 45203c4805SLuis R. Rodriguez 46203c4805SLuis R. Rodriguez 47203c4805SLuis R. Rodriguez /* 48203c4805SLuis R. Rodriguez * Struct to hold default mode specific RF 49203c4805SLuis R. Rodriguez * register values (RF Banks) 50203c4805SLuis R. Rodriguez */ 51203c4805SLuis R. Rodriguez struct ath5k_ini_rfbuffer { 52203c4805SLuis R. Rodriguez u8 rfb_bank; /* RF Bank number */ 53203c4805SLuis R. Rodriguez u16 rfb_ctrl_register; /* RF Buffer control register */ 54*8c2b418aSNick Kossifidis u32 rfb_mode_data[3]; /* RF Buffer data for each mode */ 55203c4805SLuis R. Rodriguez }; 56203c4805SLuis R. Rodriguez 57203c4805SLuis R. Rodriguez /* 58203c4805SLuis R. Rodriguez * Struct to hold RF Buffer field 59203c4805SLuis R. Rodriguez * infos used to access certain RF 60203c4805SLuis R. Rodriguez * analog registers 61203c4805SLuis R. Rodriguez */ 62203c4805SLuis R. Rodriguez struct ath5k_rfb_field { 63203c4805SLuis R. Rodriguez u8 len; /* Field length */ 64203c4805SLuis R. Rodriguez u16 pos; /* Offset on the raw packet */ 65203c4805SLuis R. Rodriguez u8 col; /* Column -used for shifting */ 66203c4805SLuis R. Rodriguez }; 67203c4805SLuis R. Rodriguez 68203c4805SLuis R. Rodriguez /* 69203c4805SLuis R. Rodriguez * RF analog register definition 70203c4805SLuis R. Rodriguez */ 71203c4805SLuis R. Rodriguez struct ath5k_rf_reg { 72203c4805SLuis R. Rodriguez u8 bank; /* RF Buffer Bank number */ 73203c4805SLuis R. Rodriguez u8 index; /* Register's index on rf_regs_idx */ 74203c4805SLuis R. Rodriguez struct ath5k_rfb_field field; /* RF Buffer field for this register */ 75203c4805SLuis R. Rodriguez }; 76203c4805SLuis R. Rodriguez 77203c4805SLuis R. Rodriguez /* Map RF registers to indexes 78203c4805SLuis R. Rodriguez * We do this to handle common bits and make our 79203c4805SLuis R. Rodriguez * life easier by using an index for each register 80203c4805SLuis R. Rodriguez * instead of a full rfb_field */ 81203c4805SLuis R. Rodriguez enum ath5k_rf_regs_idx { 82203c4805SLuis R. Rodriguez /* BANK 6 */ 83203c4805SLuis R. Rodriguez AR5K_RF_OB_2GHZ = 0, 84203c4805SLuis R. Rodriguez AR5K_RF_OB_5GHZ, 85203c4805SLuis R. Rodriguez AR5K_RF_DB_2GHZ, 86203c4805SLuis R. Rodriguez AR5K_RF_DB_5GHZ, 87203c4805SLuis R. Rodriguez AR5K_RF_FIXED_BIAS_A, 88203c4805SLuis R. Rodriguez AR5K_RF_FIXED_BIAS_B, 89203c4805SLuis R. Rodriguez AR5K_RF_PWD_XPD, 90203c4805SLuis R. Rodriguez AR5K_RF_XPD_SEL, 91203c4805SLuis R. Rodriguez AR5K_RF_XPD_GAIN, 92203c4805SLuis R. Rodriguez AR5K_RF_PD_GAIN_LO, 93203c4805SLuis R. Rodriguez AR5K_RF_PD_GAIN_HI, 94203c4805SLuis R. Rodriguez AR5K_RF_HIGH_VC_CP, 95203c4805SLuis R. Rodriguez AR5K_RF_MID_VC_CP, 96203c4805SLuis R. Rodriguez AR5K_RF_LOW_VC_CP, 97203c4805SLuis R. Rodriguez AR5K_RF_PUSH_UP, 98203c4805SLuis R. Rodriguez AR5K_RF_PAD2GND, 99203c4805SLuis R. Rodriguez AR5K_RF_XB2_LVL, 100203c4805SLuis R. Rodriguez AR5K_RF_XB5_LVL, 101203c4805SLuis R. Rodriguez AR5K_RF_PWD_ICLOBUF_2G, 102203c4805SLuis R. Rodriguez AR5K_RF_PWD_84, 103203c4805SLuis R. Rodriguez AR5K_RF_PWD_90, 104203c4805SLuis R. Rodriguez AR5K_RF_PWD_130, 105203c4805SLuis R. Rodriguez AR5K_RF_PWD_131, 106203c4805SLuis R. Rodriguez AR5K_RF_PWD_132, 107203c4805SLuis R. Rodriguez AR5K_RF_PWD_136, 108203c4805SLuis R. Rodriguez AR5K_RF_PWD_137, 109203c4805SLuis R. Rodriguez AR5K_RF_PWD_138, 110203c4805SLuis R. Rodriguez AR5K_RF_PWD_166, 111203c4805SLuis R. Rodriguez AR5K_RF_PWD_167, 112203c4805SLuis R. Rodriguez AR5K_RF_DERBY_CHAN_SEL_MODE, 113203c4805SLuis R. Rodriguez /* BANK 7 */ 114203c4805SLuis R. Rodriguez AR5K_RF_GAIN_I, 115203c4805SLuis R. Rodriguez AR5K_RF_PLO_SEL, 116203c4805SLuis R. Rodriguez AR5K_RF_RFGAIN_SEL, 117203c4805SLuis R. Rodriguez AR5K_RF_RFGAIN_STEP, 118203c4805SLuis R. Rodriguez AR5K_RF_WAIT_S, 119203c4805SLuis R. Rodriguez AR5K_RF_WAIT_I, 120203c4805SLuis R. Rodriguez AR5K_RF_MAX_TIME, 121203c4805SLuis R. Rodriguez AR5K_RF_MIXVGA_OVR, 122203c4805SLuis R. Rodriguez AR5K_RF_MIXGAIN_OVR, 123203c4805SLuis R. Rodriguez AR5K_RF_MIXGAIN_STEP, 124203c4805SLuis R. Rodriguez AR5K_RF_PD_DELAY_A, 125203c4805SLuis R. Rodriguez AR5K_RF_PD_DELAY_B, 126203c4805SLuis R. Rodriguez AR5K_RF_PD_DELAY_XR, 127203c4805SLuis R. Rodriguez AR5K_RF_PD_PERIOD_A, 128203c4805SLuis R. Rodriguez AR5K_RF_PD_PERIOD_B, 129203c4805SLuis R. Rodriguez AR5K_RF_PD_PERIOD_XR, 130203c4805SLuis R. Rodriguez }; 131203c4805SLuis R. Rodriguez 132203c4805SLuis R. Rodriguez 133203c4805SLuis R. Rodriguez /*******************\ 134203c4805SLuis R. Rodriguez * RF5111 (Sombrero) * 135203c4805SLuis R. Rodriguez \*******************/ 136203c4805SLuis R. Rodriguez 137203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 138203c4805SLuis R. Rodriguez #define AR5K_RF5111_OB_2GHZ { 3, 119, 0 } 139203c4805SLuis R. Rodriguez #define AR5K_RF5111_DB_2GHZ { 3, 122, 0 } 140203c4805SLuis R. Rodriguez 141203c4805SLuis R. Rodriguez #define AR5K_RF5111_OB_5GHZ { 3, 104, 0 } 142203c4805SLuis R. Rodriguez #define AR5K_RF5111_DB_5GHZ { 3, 107, 0 } 143203c4805SLuis R. Rodriguez 144203c4805SLuis R. Rodriguez #define AR5K_RF5111_PWD_XPD { 1, 95, 0 } 145203c4805SLuis R. Rodriguez #define AR5K_RF5111_XPD_GAIN { 4, 96, 0 } 146203c4805SLuis R. Rodriguez 147203c4805SLuis R. Rodriguez /* Access to PWD registers */ 148203c4805SLuis R. Rodriguez #define AR5K_RF5111_PWD(_n) { 1, (135 - _n), 3 } 149203c4805SLuis R. Rodriguez 150203c4805SLuis R. Rodriguez /* BANK 7 len pos col */ 151203c4805SLuis R. Rodriguez #define AR5K_RF5111_GAIN_I { 6, 29, 0 } 152203c4805SLuis R. Rodriguez #define AR5K_RF5111_PLO_SEL { 1, 4, 0 } 153203c4805SLuis R. Rodriguez #define AR5K_RF5111_RFGAIN_SEL { 1, 36, 0 } 154203c4805SLuis R. Rodriguez #define AR5K_RF5111_RFGAIN_STEP { 6, 37, 0 } 155203c4805SLuis R. Rodriguez /* Only on AR5212 BaseBand and up */ 156203c4805SLuis R. Rodriguez #define AR5K_RF5111_WAIT_S { 5, 19, 0 } 157203c4805SLuis R. Rodriguez #define AR5K_RF5111_WAIT_I { 5, 24, 0 } 158203c4805SLuis R. Rodriguez #define AR5K_RF5111_MAX_TIME { 2, 49, 0 } 159203c4805SLuis R. Rodriguez 160203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_5111[] = { 161203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF5111_OB_2GHZ}, 162203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF5111_DB_2GHZ}, 163203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_5GHZ, AR5K_RF5111_OB_5GHZ}, 164203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_5GHZ, AR5K_RF5111_DB_5GHZ}, 165203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_XPD, AR5K_RF5111_PWD_XPD}, 166203c4805SLuis R. Rodriguez {6, AR5K_RF_XPD_GAIN, AR5K_RF5111_XPD_GAIN}, 167203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_84, AR5K_RF5111_PWD(84)}, 168203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_90, AR5K_RF5111_PWD(90)}, 169203c4805SLuis R. Rodriguez {7, AR5K_RF_GAIN_I, AR5K_RF5111_GAIN_I}, 170203c4805SLuis R. Rodriguez {7, AR5K_RF_PLO_SEL, AR5K_RF5111_PLO_SEL}, 171203c4805SLuis R. Rodriguez {7, AR5K_RF_RFGAIN_SEL, AR5K_RF5111_RFGAIN_SEL}, 172203c4805SLuis R. Rodriguez {7, AR5K_RF_RFGAIN_STEP, AR5K_RF5111_RFGAIN_STEP}, 173203c4805SLuis R. Rodriguez {7, AR5K_RF_WAIT_S, AR5K_RF5111_WAIT_S}, 174203c4805SLuis R. Rodriguez {7, AR5K_RF_WAIT_I, AR5K_RF5111_WAIT_I}, 175203c4805SLuis R. Rodriguez {7, AR5K_RF_MAX_TIME, AR5K_RF5111_MAX_TIME} 176203c4805SLuis R. Rodriguez }; 177203c4805SLuis R. Rodriguez 178203c4805SLuis R. Rodriguez /* Default mode specific settings */ 179203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_5111[] = { 180*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 181*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 182*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 183*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 184*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 185*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 186*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 187*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 188*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 189*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 190*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 191*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 192*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00380000, 0x00380000, 0x00380000 } }, 193*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 194*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 195*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x00000000, 0x000000c0, 0x00000080 } }, 196*8c2b418aSNick Kossifidis { 0, 0x989c, { 0x000400f9, 0x000400ff, 0x000400fd } }, 197*8c2b418aSNick Kossifidis { 0, 0x98d4, { 0x00000000, 0x00000004, 0x00000004 } }, 198*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 199*8c2b418aSNick Kossifidis { 2, 0x98d4, { 0x00000010, 0x00000010, 0x00000010 } }, 200*8c2b418aSNick Kossifidis { 3, 0x98d8, { 0x00601068, 0x00601068, 0x00601068 } }, 201*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 202*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 203*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 204*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 205*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 206*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 207*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x04000000, 0x04000000, 0x04000000 } }, 208*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 209*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 210*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 211*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x0a000000, 0x00000000 } }, 212*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x003800c0, 0x023800c0, 0x003800c0 } }, 213*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020006, 0x00000006, 0x00020006 } }, 214*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000089, 0x00000089, 0x00000089 } }, 215*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000000a0, 0x000000a0, 0x000000a0 } }, 216*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00040007, 0x00040007, 0x00040007 } }, 217*8c2b418aSNick Kossifidis { 6, 0x98d4, { 0x0000001a, 0x0000001a, 0x0000001a } }, 218*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000040, 0x00000040, 0x00000040 } }, 219*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000010, 0x00000010, 0x00000010 } }, 220*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000008, 0x00000008, 0x00000008 } }, 221*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x0000004f, 0x0000004f, 0x0000004f } }, 222*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000f1, 0x00000061, 0x000000f1 } }, 223*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x0000904f, 0x0000904c, 0x0000904f } }, 224*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x0000125a, 0x0000129a, 0x0000125a } }, 225*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000f, 0x0000000e } }, 226203c4805SLuis R. Rodriguez }; 227203c4805SLuis R. Rodriguez 228203c4805SLuis R. Rodriguez 229203c4805SLuis R. Rodriguez 230203c4805SLuis R. Rodriguez /***********************\ 231203c4805SLuis R. Rodriguez * RF5112/RF2112 (Derby) * 232203c4805SLuis R. Rodriguez \***********************/ 233203c4805SLuis R. Rodriguez 234203c4805SLuis R. Rodriguez /* BANK 7 (Common) len pos col */ 235203c4805SLuis R. Rodriguez #define AR5K_RF5112X_GAIN_I { 6, 14, 0 } 236203c4805SLuis R. Rodriguez #define AR5K_RF5112X_MIXVGA_OVR { 1, 36, 0 } 237203c4805SLuis R. Rodriguez #define AR5K_RF5112X_MIXGAIN_OVR { 2, 37, 0 } 238203c4805SLuis R. Rodriguez #define AR5K_RF5112X_MIXGAIN_STEP { 4, 32, 0 } 239203c4805SLuis R. Rodriguez #define AR5K_RF5112X_PD_DELAY_A { 4, 58, 0 } 240203c4805SLuis R. Rodriguez #define AR5K_RF5112X_PD_DELAY_B { 4, 62, 0 } 241203c4805SLuis R. Rodriguez #define AR5K_RF5112X_PD_DELAY_XR { 4, 66, 0 } 242203c4805SLuis R. Rodriguez #define AR5K_RF5112X_PD_PERIOD_A { 4, 70, 0 } 243203c4805SLuis R. Rodriguez #define AR5K_RF5112X_PD_PERIOD_B { 4, 74, 0 } 244203c4805SLuis R. Rodriguez #define AR5K_RF5112X_PD_PERIOD_XR { 4, 78, 0 } 245203c4805SLuis R. Rodriguez 246203c4805SLuis R. Rodriguez /* RFX112 (Derby 1) */ 247203c4805SLuis R. Rodriguez 248203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 249203c4805SLuis R. Rodriguez #define AR5K_RF5112_OB_2GHZ { 3, 269, 0 } 250203c4805SLuis R. Rodriguez #define AR5K_RF5112_DB_2GHZ { 3, 272, 0 } 251203c4805SLuis R. Rodriguez 252203c4805SLuis R. Rodriguez #define AR5K_RF5112_OB_5GHZ { 3, 261, 0 } 253203c4805SLuis R. Rodriguez #define AR5K_RF5112_DB_5GHZ { 3, 264, 0 } 254203c4805SLuis R. Rodriguez 255203c4805SLuis R. Rodriguez #define AR5K_RF5112_FIXED_BIAS_A { 1, 260, 0 } 256203c4805SLuis R. Rodriguez #define AR5K_RF5112_FIXED_BIAS_B { 1, 259, 0 } 257203c4805SLuis R. Rodriguez 258203c4805SLuis R. Rodriguez #define AR5K_RF5112_XPD_SEL { 1, 284, 0 } 259203c4805SLuis R. Rodriguez #define AR5K_RF5112_XPD_GAIN { 2, 252, 0 } 260203c4805SLuis R. Rodriguez 261203c4805SLuis R. Rodriguez /* Access to PWD registers */ 262203c4805SLuis R. Rodriguez #define AR5K_RF5112_PWD(_n) { 1, (302 - _n), 3 } 263203c4805SLuis R. Rodriguez 264203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_5112[] = { 265203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF5112_OB_2GHZ}, 266203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF5112_DB_2GHZ}, 267203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_5GHZ, AR5K_RF5112_OB_5GHZ}, 268203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_5GHZ, AR5K_RF5112_DB_5GHZ}, 269203c4805SLuis R. Rodriguez {6, AR5K_RF_FIXED_BIAS_A, AR5K_RF5112_FIXED_BIAS_A}, 270203c4805SLuis R. Rodriguez {6, AR5K_RF_FIXED_BIAS_B, AR5K_RF5112_FIXED_BIAS_B}, 271203c4805SLuis R. Rodriguez {6, AR5K_RF_XPD_SEL, AR5K_RF5112_XPD_SEL}, 272203c4805SLuis R. Rodriguez {6, AR5K_RF_XPD_GAIN, AR5K_RF5112_XPD_GAIN}, 273203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_130, AR5K_RF5112_PWD(130)}, 274203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_131, AR5K_RF5112_PWD(131)}, 275203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_132, AR5K_RF5112_PWD(132)}, 276203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_136, AR5K_RF5112_PWD(136)}, 277203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_137, AR5K_RF5112_PWD(137)}, 278203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_138, AR5K_RF5112_PWD(138)}, 279203c4805SLuis R. Rodriguez {7, AR5K_RF_GAIN_I, AR5K_RF5112X_GAIN_I}, 280203c4805SLuis R. Rodriguez {7, AR5K_RF_MIXVGA_OVR, AR5K_RF5112X_MIXVGA_OVR}, 281203c4805SLuis R. Rodriguez {7, AR5K_RF_MIXGAIN_OVR, AR5K_RF5112X_MIXGAIN_OVR}, 282203c4805SLuis R. Rodriguez {7, AR5K_RF_MIXGAIN_STEP, AR5K_RF5112X_MIXGAIN_STEP}, 283203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_DELAY_A, AR5K_RF5112X_PD_DELAY_A}, 284203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_DELAY_B, AR5K_RF5112X_PD_DELAY_B}, 285203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_DELAY_XR, AR5K_RF5112X_PD_DELAY_XR}, 286203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_PERIOD_A, AR5K_RF5112X_PD_PERIOD_A}, 287203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_PERIOD_B, AR5K_RF5112X_PD_PERIOD_B}, 288203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_PERIOD_XR, AR5K_RF5112X_PD_PERIOD_XR}, 289203c4805SLuis R. Rodriguez }; 290203c4805SLuis R. Rodriguez 291203c4805SLuis R. Rodriguez /* Default mode specific settings */ 292203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_5112[] = { 293*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 294*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 295*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x03060408, 0x03060408, 0x03060408 } }, 296*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a0c0c0, 0x00e0c0c0, 0x00e0c0c0 } }, 297*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00a00000, 0x00a00000, 0x00a00000 } }, 298*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000a0000, 0x000a0000, 0x000a0000 } }, 299*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 300*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 301*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00660000, 0x00660000, 0x00660000 } }, 302*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00db0000, 0x00db0000, 0x00db0000 } }, 303*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00f10000, 0x00f10000, 0x00f10000 } }, 304*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00120000, 0x00120000, 0x00120000 } }, 305*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00120000, 0x00120000, 0x00120000 } }, 306*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 307*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 308*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000c0000, 0x000c0000, 0x000c0000 } }, 309*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 310*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 311*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x008b0000, 0x008b0000, 0x008b0000 } }, 312*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00600000, 0x00600000, 0x00600000 } }, 313*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000c0000, 0x000c0000, 0x000c0000 } }, 314*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00840000, 0x00840000, 0x00840000 } }, 315*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00640000, 0x00640000, 0x00640000 } }, 316*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00200000, 0x00200000, 0x00200000 } }, 317*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00240000, 0x00240000, 0x00240000 } }, 318*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00250000, 0x00250000, 0x00250000 } }, 319*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00110000, 0x00110000, 0x00110000 } }, 320*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00110000, 0x00110000, 0x00110000 } }, 321*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00510000, 0x00510000, 0x00510000 } }, 322*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x1c040000, 0x1c040000, 0x1c040000 } }, 323*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000a0000, 0x000a0000, 0x000a0000 } }, 324*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00a10000, 0x00a10000, 0x00a10000 } }, 325*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00400000, 0x00400000, 0x00400000 } }, 326*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x03090000, 0x03090000, 0x03090000 } }, 327*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x06000000, 0x06000000, 0x06000000 } }, 328*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000000b0, 0x000000a8, 0x000000a8 } }, 329*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0000002e, 0x0000002e, 0x0000002e } }, 330*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x006c4a41, 0x006c4af1, 0x006c4a61 } }, 331*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0050892a, 0x0050892b, 0x0050892b } }, 332*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00842400, 0x00842400, 0x00842400 } }, 333*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00c69200, 0x00c69200, 0x00c69200 } }, 334*8c2b418aSNick Kossifidis { 6, 0x98d0, { 0x0002000c, 0x0002000c, 0x0002000c } }, 335*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000094, 0x00000094, 0x00000094 } }, 336*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000091, 0x00000091, 0x00000091 } }, 337*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x0000000a, 0x00000012, 0x00000012 } }, 338*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000080, 0x00000080, 0x00000080 } }, 339*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000c1, 0x000000c1, 0x000000c1 } }, 340*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000060, 0x00000060, 0x00000060 } }, 341*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000f0, 0x000000f0, 0x000000f0 } }, 342*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000022, 0x00000022, 0x00000022 } }, 343*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000092, 0x00000092, 0x00000092 } }, 344*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000d4, 0x000000d4, 0x000000d4 } }, 345*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000014cc, 0x000014cc, 0x000014cc } }, 346*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x0000048c, 0x0000048c, 0x0000048c } }, 347*8c2b418aSNick Kossifidis { 7, 0x98c4, { 0x00000003, 0x00000003, 0x00000003 } }, 348203c4805SLuis R. Rodriguez }; 349203c4805SLuis R. Rodriguez 350203c4805SLuis R. Rodriguez /* RFX112A (Derby 2) */ 351203c4805SLuis R. Rodriguez 352203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 353203c4805SLuis R. Rodriguez #define AR5K_RF5112A_OB_2GHZ { 3, 287, 0 } 354203c4805SLuis R. Rodriguez #define AR5K_RF5112A_DB_2GHZ { 3, 290, 0 } 355203c4805SLuis R. Rodriguez 356203c4805SLuis R. Rodriguez #define AR5K_RF5112A_OB_5GHZ { 3, 279, 0 } 357203c4805SLuis R. Rodriguez #define AR5K_RF5112A_DB_5GHZ { 3, 282, 0 } 358203c4805SLuis R. Rodriguez 359203c4805SLuis R. Rodriguez #define AR5K_RF5112A_FIXED_BIAS_A { 1, 278, 0 } 360203c4805SLuis R. Rodriguez #define AR5K_RF5112A_FIXED_BIAS_B { 1, 277, 0 } 361203c4805SLuis R. Rodriguez 362203c4805SLuis R. Rodriguez #define AR5K_RF5112A_XPD_SEL { 1, 302, 0 } 363203c4805SLuis R. Rodriguez #define AR5K_RF5112A_PDGAINLO { 2, 270, 0 } 364203c4805SLuis R. Rodriguez #define AR5K_RF5112A_PDGAINHI { 2, 257, 0 } 365203c4805SLuis R. Rodriguez 366203c4805SLuis R. Rodriguez /* Access to PWD registers */ 367203c4805SLuis R. Rodriguez #define AR5K_RF5112A_PWD(_n) { 1, (306 - _n), 3 } 368203c4805SLuis R. Rodriguez 369203c4805SLuis R. Rodriguez /* Voltage regulators */ 370203c4805SLuis R. Rodriguez #define AR5K_RF5112A_HIGH_VC_CP { 2, 90, 2 } 371203c4805SLuis R. Rodriguez #define AR5K_RF5112A_MID_VC_CP { 2, 92, 2 } 372203c4805SLuis R. Rodriguez #define AR5K_RF5112A_LOW_VC_CP { 2, 94, 2 } 373203c4805SLuis R. Rodriguez #define AR5K_RF5112A_PUSH_UP { 1, 254, 2 } 374203c4805SLuis R. Rodriguez 375203c4805SLuis R. Rodriguez /* Power consumption */ 376203c4805SLuis R. Rodriguez #define AR5K_RF5112A_PAD2GND { 1, 281, 1 } 377203c4805SLuis R. Rodriguez #define AR5K_RF5112A_XB2_LVL { 2, 1, 3 } 378203c4805SLuis R. Rodriguez #define AR5K_RF5112A_XB5_LVL { 2, 3, 3 } 379203c4805SLuis R. Rodriguez 380203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_5112a[] = { 381203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF5112A_OB_2GHZ}, 382203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF5112A_DB_2GHZ}, 383203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_5GHZ, AR5K_RF5112A_OB_5GHZ}, 384203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_5GHZ, AR5K_RF5112A_DB_5GHZ}, 385203c4805SLuis R. Rodriguez {6, AR5K_RF_FIXED_BIAS_A, AR5K_RF5112A_FIXED_BIAS_A}, 386203c4805SLuis R. Rodriguez {6, AR5K_RF_FIXED_BIAS_B, AR5K_RF5112A_FIXED_BIAS_B}, 387203c4805SLuis R. Rodriguez {6, AR5K_RF_XPD_SEL, AR5K_RF5112A_XPD_SEL}, 388203c4805SLuis R. Rodriguez {6, AR5K_RF_PD_GAIN_LO, AR5K_RF5112A_PDGAINLO}, 389203c4805SLuis R. Rodriguez {6, AR5K_RF_PD_GAIN_HI, AR5K_RF5112A_PDGAINHI}, 390203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_130, AR5K_RF5112A_PWD(130)}, 391203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_131, AR5K_RF5112A_PWD(131)}, 392203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_132, AR5K_RF5112A_PWD(132)}, 393203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_136, AR5K_RF5112A_PWD(136)}, 394203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_137, AR5K_RF5112A_PWD(137)}, 395203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_138, AR5K_RF5112A_PWD(138)}, 396203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_166, AR5K_RF5112A_PWD(166)}, 397203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_167, AR5K_RF5112A_PWD(167)}, 398203c4805SLuis R. Rodriguez {6, AR5K_RF_HIGH_VC_CP, AR5K_RF5112A_HIGH_VC_CP}, 399203c4805SLuis R. Rodriguez {6, AR5K_RF_MID_VC_CP, AR5K_RF5112A_MID_VC_CP}, 400203c4805SLuis R. Rodriguez {6, AR5K_RF_LOW_VC_CP, AR5K_RF5112A_LOW_VC_CP}, 401203c4805SLuis R. Rodriguez {6, AR5K_RF_PUSH_UP, AR5K_RF5112A_PUSH_UP}, 402203c4805SLuis R. Rodriguez {6, AR5K_RF_PAD2GND, AR5K_RF5112A_PAD2GND}, 403203c4805SLuis R. Rodriguez {6, AR5K_RF_XB2_LVL, AR5K_RF5112A_XB2_LVL}, 404203c4805SLuis R. Rodriguez {6, AR5K_RF_XB5_LVL, AR5K_RF5112A_XB5_LVL}, 405203c4805SLuis R. Rodriguez {7, AR5K_RF_GAIN_I, AR5K_RF5112X_GAIN_I}, 406203c4805SLuis R. Rodriguez {7, AR5K_RF_MIXVGA_OVR, AR5K_RF5112X_MIXVGA_OVR}, 407203c4805SLuis R. Rodriguez {7, AR5K_RF_MIXGAIN_OVR, AR5K_RF5112X_MIXGAIN_OVR}, 408203c4805SLuis R. Rodriguez {7, AR5K_RF_MIXGAIN_STEP, AR5K_RF5112X_MIXGAIN_STEP}, 409203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_DELAY_A, AR5K_RF5112X_PD_DELAY_A}, 410203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_DELAY_B, AR5K_RF5112X_PD_DELAY_B}, 411203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_DELAY_XR, AR5K_RF5112X_PD_DELAY_XR}, 412203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_PERIOD_A, AR5K_RF5112X_PD_PERIOD_A}, 413203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_PERIOD_B, AR5K_RF5112X_PD_PERIOD_B}, 414203c4805SLuis R. Rodriguez {7, AR5K_RF_PD_PERIOD_XR, AR5K_RF5112X_PD_PERIOD_XR}, 415203c4805SLuis R. Rodriguez }; 416203c4805SLuis R. Rodriguez 417203c4805SLuis R. Rodriguez /* Default mode specific settings */ 418203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_5112a[] = { 419*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 420*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 421*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x03060408, 0x03060408, 0x03060408 } }, 422*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 423*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0f000000, 0x0f000000, 0x0f000000 } }, 424*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 425*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00800000, 0x00800000, 0x00800000 } }, 426*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 427*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00010000, 0x00010000, 0x00010000 } }, 428*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 429*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00180000, 0x00180000, 0x00180000 } }, 430*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00600000, 0x006e0000, 0x006e0000 } }, 431*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00c70000, 0x00c70000, 0x00c70000 } }, 432*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x004b0000, 0x004b0000, 0x004b0000 } }, 433*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x04480000, 0x04480000, 0x04480000 } }, 434*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x004c0000, 0x004c0000, 0x004c0000 } }, 435*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00e40000, 0x00e40000, 0x00e40000 } }, 436*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 437*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00fc0000, 0x00fc0000, 0x00fc0000 } }, 438*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 439*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x043f0000, 0x043f0000, 0x043f0000 } }, 440*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000c0000, 0x000c0000, 0x000c0000 } }, 441*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x02190000, 0x02190000, 0x02190000 } }, 442*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00240000, 0x00240000, 0x00240000 } }, 443*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00b40000, 0x00b40000, 0x00b40000 } }, 444*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00990000, 0x00990000, 0x00990000 } }, 445*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00500000, 0x00500000, 0x00500000 } }, 446*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 447*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00120000, 0x00120000, 0x00120000 } }, 448*8c2b418aSNick Kossifidis { 6, 0x989c, { 0xc0320000, 0xc0320000, 0xc0320000 } }, 449*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x01740000, 0x01740000, 0x01740000 } }, 450*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00110000, 0x00110000, 0x00110000 } }, 451*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x86280000, 0x86280000, 0x86280000 } }, 452*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x31840000, 0x31840000, 0x31840000 } }, 453*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00f20080, 0x00f20080, 0x00f20080 } }, 454*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00270019, 0x00270019, 0x00270019 } }, 455*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000003, 0x00000003, 0x00000003 } }, 456*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 457*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000000b2, 0x000000b2, 0x000000b2 } }, 458*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00b02084, 0x00b02084, 0x00b02084 } }, 459*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x004125a4, 0x004125a4, 0x004125a4 } }, 460*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00119220, 0x00119220, 0x00119220 } }, 461*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x001a4800, 0x001a4800, 0x001a4800 } }, 462*8c2b418aSNick Kossifidis { 6, 0x98d8, { 0x000b0230, 0x000b0230, 0x000b0230 } }, 463*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000094, 0x00000094, 0x00000094 } }, 464*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000091, 0x00000091, 0x00000091 } }, 465*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000012, 0x00000012, 0x00000012 } }, 466*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000080, 0x00000080, 0x00000080 } }, 467*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000d9, 0x000000d9, 0x000000d9 } }, 468*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000060, 0x00000060, 0x00000060 } }, 469*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000f0, 0x000000f0, 0x000000f0 } }, 470*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000a2, 0x000000a2, 0x000000a2 } }, 471*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000052, 0x00000052, 0x00000052 } }, 472*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000000d4, 0x000000d4, 0x000000d4 } }, 473*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x000014cc, 0x000014cc, 0x000014cc } }, 474*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x0000048c, 0x0000048c, 0x0000048c } }, 475*8c2b418aSNick Kossifidis { 7, 0x98c4, { 0x00000003, 0x00000003, 0x00000003 } }, 476203c4805SLuis R. Rodriguez }; 477203c4805SLuis R. Rodriguez 478203c4805SLuis R. Rodriguez 479203c4805SLuis R. Rodriguez 480203c4805SLuis R. Rodriguez /******************\ 481203c4805SLuis R. Rodriguez * RF2413 (Griffin) * 482203c4805SLuis R. Rodriguez \******************/ 483203c4805SLuis R. Rodriguez 484203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 485203c4805SLuis R. Rodriguez #define AR5K_RF2413_OB_2GHZ { 3, 168, 0 } 486203c4805SLuis R. Rodriguez #define AR5K_RF2413_DB_2GHZ { 3, 165, 0 } 487203c4805SLuis R. Rodriguez 488203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_2413[] = { 489203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF2413_OB_2GHZ}, 490203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF2413_DB_2GHZ}, 491203c4805SLuis R. Rodriguez }; 492203c4805SLuis R. Rodriguez 493203c4805SLuis R. Rodriguez /* Default mode specific settings 494203c4805SLuis R. Rodriguez * XXX: a/aTurbo ??? 495203c4805SLuis R. Rodriguez */ 496203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_2413[] = { 497*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 498*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 499*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 500*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 501*8c2b418aSNick Kossifidis { 6, 0x989c, { 0xf0000000, 0xf0000000, 0xf0000000 } }, 502*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 503*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x03000000, 0x03000000, 0x03000000 } }, 504*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 505*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 506*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 507*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 508*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 509*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x40400000, 0x40400000, 0x40400000 } }, 510*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x65050000, 0x65050000, 0x65050000 } }, 511*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 512*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 513*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00420000, 0x00420000, 0x00420000 } }, 514*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00b50000, 0x00b50000, 0x00b50000 } }, 515*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00030000, 0x00030000, 0x00030000 } }, 516*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00f70000, 0x00f70000, 0x00f70000 } }, 517*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x009d0000, 0x009d0000, 0x009d0000 } }, 518*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00220000, 0x00220000, 0x00220000 } }, 519*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x04220000, 0x04220000, 0x04220000 } }, 520*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00230018, 0x00230018, 0x00230018 } }, 521*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00280000, 0x00280060, 0x00280060 } }, 522*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x005000c0, 0x005000c3, 0x005000c3 } }, 523*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0004007f, 0x0004007f, 0x0004007f } }, 524*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000458, 0x00000458, 0x00000458 } }, 525*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 526*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0000c000, 0x0000c000, 0x0000c000 } }, 527*8c2b418aSNick Kossifidis { 6, 0x98d8, { 0x00400230, 0x00400230, 0x00400230 } }, 528*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 529*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 530*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 531203c4805SLuis R. Rodriguez }; 532203c4805SLuis R. Rodriguez 533203c4805SLuis R. Rodriguez 534203c4805SLuis R. Rodriguez 535203c4805SLuis R. Rodriguez /***************************\ 536203c4805SLuis R. Rodriguez * RF2315/RF2316 (Cobra SoC) * 537203c4805SLuis R. Rodriguez \***************************/ 538203c4805SLuis R. Rodriguez 539203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 540203c4805SLuis R. Rodriguez #define AR5K_RF2316_OB_2GHZ { 3, 178, 0 } 541203c4805SLuis R. Rodriguez #define AR5K_RF2316_DB_2GHZ { 3, 175, 0 } 542203c4805SLuis R. Rodriguez 543203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_2316[] = { 544203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF2316_OB_2GHZ}, 545203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF2316_DB_2GHZ}, 546203c4805SLuis R. Rodriguez }; 547203c4805SLuis R. Rodriguez 548203c4805SLuis R. Rodriguez /* Default mode specific settings */ 549203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_2316[] = { 550*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 551*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 552*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 553*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 554*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 555*8c2b418aSNick Kossifidis { 6, 0x989c, { 0xc0000000, 0xc0000000, 0xc0000000 } }, 556*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0f000000, 0x0f000000, 0x0f000000 } }, 557*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x02000000, 0x02000000, 0x02000000 } }, 558*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 559*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 560*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 561*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 562*8c2b418aSNick Kossifidis { 6, 0x989c, { 0xf8000000, 0xf8000000, 0xf8000000 } }, 563*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 564*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x95150000, 0x95150000, 0x95150000 } }, 565*8c2b418aSNick Kossifidis { 6, 0x989c, { 0xc1000000, 0xc1000000, 0xc1000000 } }, 566*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 567*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00080000, 0x00080000, 0x00080000 } }, 568*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00d50000, 0x00d50000, 0x00d50000 } }, 569*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000e0000, 0x000e0000, 0x000e0000 } }, 570*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00dc0000, 0x00dc0000, 0x00dc0000 } }, 571*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00770000, 0x00770000, 0x00770000 } }, 572*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x008a0000, 0x008a0000, 0x008a0000 } }, 573*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x10880000, 0x10880000, 0x10880000 } }, 574*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x008c0060, 0x008c0060, 0x008c0060 } }, 575*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00a00000, 0x00a00080, 0x00a00080 } }, 576*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00400000, 0x0040000d, 0x0040000d } }, 577*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00110400, 0x00110400, 0x00110400 } }, 578*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000060, 0x00000060, 0x00000060 } }, 579*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000001, 0x00000001, 0x00000001 } }, 580*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000b00, 0x00000b00, 0x00000b00 } }, 581*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000be8, 0x00000be8, 0x00000be8 } }, 582*8c2b418aSNick Kossifidis { 6, 0x98c0, { 0x00010000, 0x00010000, 0x00010000 } }, 583*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 584*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 585*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 586203c4805SLuis R. Rodriguez }; 587203c4805SLuis R. Rodriguez 588203c4805SLuis R. Rodriguez 589203c4805SLuis R. Rodriguez 590203c4805SLuis R. Rodriguez /******************************\ 591203c4805SLuis R. Rodriguez * RF5413/RF5424 (Eagle/Condor) * 592203c4805SLuis R. Rodriguez \******************************/ 593203c4805SLuis R. Rodriguez 594203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 595203c4805SLuis R. Rodriguez #define AR5K_RF5413_OB_2GHZ { 3, 241, 0 } 596203c4805SLuis R. Rodriguez #define AR5K_RF5413_DB_2GHZ { 3, 238, 0 } 597203c4805SLuis R. Rodriguez 598203c4805SLuis R. Rodriguez #define AR5K_RF5413_OB_5GHZ { 3, 247, 0 } 599203c4805SLuis R. Rodriguez #define AR5K_RF5413_DB_5GHZ { 3, 244, 0 } 600203c4805SLuis R. Rodriguez 601203c4805SLuis R. Rodriguez #define AR5K_RF5413_PWD_ICLOBUF2G { 3, 131, 3 } 602203c4805SLuis R. Rodriguez #define AR5K_RF5413_DERBY_CHAN_SEL_MODE { 1, 291, 2 } 603203c4805SLuis R. Rodriguez 604203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_5413[] = { 605203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF5413_OB_2GHZ}, 606203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF5413_DB_2GHZ}, 607203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_5GHZ, AR5K_RF5413_OB_5GHZ}, 608203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_5GHZ, AR5K_RF5413_DB_5GHZ}, 609203c4805SLuis R. Rodriguez {6, AR5K_RF_PWD_ICLOBUF_2G, AR5K_RF5413_PWD_ICLOBUF2G}, 610203c4805SLuis R. Rodriguez {6, AR5K_RF_DERBY_CHAN_SEL_MODE, AR5K_RF5413_DERBY_CHAN_SEL_MODE}, 611203c4805SLuis R. Rodriguez }; 612203c4805SLuis R. Rodriguez 613203c4805SLuis R. Rodriguez /* Default mode specific settings */ 614203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_5413[] = { 615*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 616*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 617*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x00000008, 0x00000008, 0x00000008 } }, 618*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a000c0, 0x00e000c0, 0x00e000c0 } }, 619*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x33000000, 0x33000000, 0x33000000 } }, 620*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x01000000, 0x01000000, 0x01000000 } }, 621*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 622*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 623*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 624*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x1f000000, 0x1f000000, 0x1f000000 } }, 625*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 626*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00b80000, 0x00b80000, 0x00b80000 } }, 627*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00b70000, 0x00b70000, 0x00b70000 } }, 628*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00840000, 0x00840000, 0x00840000 } }, 629*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00980000, 0x00980000, 0x00980000 } }, 630*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00c00000, 0x00c00000, 0x00c00000 } }, 631*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 632*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 633*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 634*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 635*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00d70000, 0x00d70000, 0x00d70000 } }, 636*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00610000, 0x00610000, 0x00610000 } }, 637*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00fe0000, 0x00fe0000, 0x00fe0000 } }, 638*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00de0000, 0x00de0000, 0x00de0000 } }, 639*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x007f0000, 0x007f0000, 0x007f0000 } }, 640*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x043d0000, 0x043d0000, 0x043d0000 } }, 641*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00770000, 0x00770000, 0x00770000 } }, 642*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00440000, 0x00440000, 0x00440000 } }, 643*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00980000, 0x00980000, 0x00980000 } }, 644*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00100080, 0x00100080, 0x00100080 } }, 645*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0005c034, 0x0005c034, 0x0005c034 } }, 646*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x003100f0, 0x003100f0, 0x003100f0 } }, 647*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000c011f, 0x000c011f, 0x000c011f } }, 648*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00510040, 0x00510040, 0x00510040 } }, 649*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x005000da, 0x005000da, 0x005000da } }, 650*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 651*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00004044, 0x00004044, 0x00004044 } }, 652*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 653*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x000060c0, 0x000060c0, 0x000060c0 } }, 654*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00002c00, 0x00003600, 0x00003600 } }, 655*8c2b418aSNick Kossifidis { 6, 0x98c8, { 0x00000403, 0x00040403, 0x00040403 } }, 656*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 657*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 658*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 659203c4805SLuis R. Rodriguez }; 660203c4805SLuis R. Rodriguez 661203c4805SLuis R. Rodriguez 662203c4805SLuis R. Rodriguez 663203c4805SLuis R. Rodriguez /***************************\ 664203c4805SLuis R. Rodriguez * RF2425/RF2417 (Swan/Nala) * 665203c4805SLuis R. Rodriguez * AR2317 (Spider SoC) * 666203c4805SLuis R. Rodriguez \***************************/ 667203c4805SLuis R. Rodriguez 668203c4805SLuis R. Rodriguez /* BANK 6 len pos col */ 669203c4805SLuis R. Rodriguez #define AR5K_RF2425_OB_2GHZ { 3, 193, 0 } 670203c4805SLuis R. Rodriguez #define AR5K_RF2425_DB_2GHZ { 3, 190, 0 } 671203c4805SLuis R. Rodriguez 672203c4805SLuis R. Rodriguez static const struct ath5k_rf_reg rf_regs_2425[] = { 673203c4805SLuis R. Rodriguez {6, AR5K_RF_OB_2GHZ, AR5K_RF2425_OB_2GHZ}, 674203c4805SLuis R. Rodriguez {6, AR5K_RF_DB_2GHZ, AR5K_RF2425_DB_2GHZ}, 675203c4805SLuis R. Rodriguez }; 676203c4805SLuis R. Rodriguez 677203c4805SLuis R. Rodriguez /* Default mode specific settings 678203c4805SLuis R. Rodriguez * XXX: a/aTurbo ? 679203c4805SLuis R. Rodriguez */ 680203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_2425[] = { 681*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 682*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 683*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 684*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 685*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 686*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 687*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 688*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 689*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 690*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 691*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 692*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 693*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 694*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 695*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 696*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 697*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 698*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 699*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00100000, 0x00100000, 0x00100000 } }, 700*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020000, 0x00020000, 0x00020000 } }, 701*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 702*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00f80000, 0x00f80000, 0x00f80000 } }, 703*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00e70000, 0x00e70000, 0x00e70000 } }, 704*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00140000, 0x00140000, 0x00140000 } }, 705*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00910040, 0x00910040, 0x00910040 } }, 706*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0007001a, 0x0007001a, 0x0007001a } }, 707*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00410000, 0x00410000, 0x00410000 } }, 708*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00810000, 0x00810060, 0x00810060 } }, 709*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020800, 0x00020803, 0x00020803 } }, 710*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 711*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 712*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00001660, 0x00001660, 0x00001660 } }, 713*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00001688, 0x00001688, 0x00001688 } }, 714*8c2b418aSNick Kossifidis { 6, 0x98c4, { 0x00000001, 0x00000001, 0x00000001 } }, 715*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 716*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 717*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 718203c4805SLuis R. Rodriguez }; 719203c4805SLuis R. Rodriguez 720203c4805SLuis R. Rodriguez /* 721203c4805SLuis R. Rodriguez * TODO: Handle the few differences with swan during 722203c4805SLuis R. Rodriguez * bank modification and get rid of this 723203c4805SLuis R. Rodriguez */ 724203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_2317[] = { 725*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 726*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 727*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 728*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 729*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 730*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 731*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 732*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 733*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 734*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 735*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 736*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 737*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 738*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 739*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 740*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 741*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 742*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 743*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00100000, 0x00100000, 0x00100000 } }, 744*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020000, 0x00020000, 0x00020000 } }, 745*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 746*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00f80000, 0x00f80000, 0x00f80000 } }, 747*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00e70000, 0x00e70000, 0x00e70000 } }, 748*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00140100, 0x00140100, 0x00140100 } }, 749*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00910040, 0x00910040, 0x00910040 } }, 750*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0007001a, 0x0007001a, 0x0007001a } }, 751*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00410000, 0x00410000, 0x00410000 } }, 752*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00810000, 0x00810060, 0x00810060 } }, 753*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020800, 0x00020803, 0x00020803 } }, 754*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 755*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 756*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00001660, 0x00001660, 0x00001660 } }, 757*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00009688, 0x00009688, 0x00009688 } }, 758*8c2b418aSNick Kossifidis { 6, 0x98c4, { 0x00000001, 0x00000001, 0x00000001 } }, 759*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 760*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 761*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 762203c4805SLuis R. Rodriguez }; 763203c4805SLuis R. Rodriguez 764203c4805SLuis R. Rodriguez /* 765203c4805SLuis R. Rodriguez * TODO: Handle the few differences with swan during 766203c4805SLuis R. Rodriguez * bank modification and get rid of this 767203c4805SLuis R. Rodriguez * XXX: a/aTurbo ? 768203c4805SLuis R. Rodriguez */ 769203c4805SLuis R. Rodriguez static const struct ath5k_ini_rfbuffer rfb_2417[] = { 770*8c2b418aSNick Kossifidis /* BANK / C.R. A/XR B G */ 771*8c2b418aSNick Kossifidis { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 772*8c2b418aSNick Kossifidis { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 773*8c2b418aSNick Kossifidis { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 774*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 775*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 776*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 777*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 778*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 779*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 780*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 781*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 782*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 783*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 784*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 785*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 786*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 787*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 788*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00100000, 0x00100000, 0x00100000 } }, 789*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020000, 0x00020000, 0x00020000 } }, 790*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 791*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00f80000, 0x00f80000, 0x00f80000 } }, 792*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00e70000, 0x80e70000, 0x80e70000 } }, 793*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00140000, 0x00140000, 0x00140000 } }, 794*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00910040, 0x00910040, 0x00910040 } }, 795*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x0007001a, 0x0207001a, 0x0207001a } }, 796*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00410000, 0x00410000, 0x00410000 } }, 797*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00810000, 0x00810060, 0x00810060 } }, 798*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00020800, 0x00020803, 0x00020803 } }, 799*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 800*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 801*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00001660, 0x00001660, 0x00001660 } }, 802*8c2b418aSNick Kossifidis { 6, 0x989c, { 0x00001688, 0x00001688, 0x00001688 } }, 803*8c2b418aSNick Kossifidis { 6, 0x98c4, { 0x00000001, 0x00000001, 0x00000001 } }, 804*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 805*8c2b418aSNick Kossifidis { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 806*8c2b418aSNick Kossifidis { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 807203c4805SLuis R. Rodriguez }; 808