162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * RF Buffer handling functions 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Copyright (c) 2009 Nick Kossifidis <mickflemm@gmail.com> 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Permission to use, copy, modify, and distribute this software for any 762306a36Sopenharmony_ci * purpose with or without fee is hereby granted, provided that the above 862306a36Sopenharmony_ci * copyright notice and this permission notice appear in all copies. 962306a36Sopenharmony_ci * 1062306a36Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1162306a36Sopenharmony_ci * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1262306a36Sopenharmony_ci * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1362306a36Sopenharmony_ci * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1462306a36Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1562306a36Sopenharmony_ci * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1662306a36Sopenharmony_ci * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1762306a36Sopenharmony_ci * 1862306a36Sopenharmony_ci */ 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ci/** 2262306a36Sopenharmony_ci * DOC: RF Buffer registers 2362306a36Sopenharmony_ci * 2462306a36Sopenharmony_ci * There are some special registers on the RF chip 2562306a36Sopenharmony_ci * that control various operation settings related mostly to 2662306a36Sopenharmony_ci * the analog parts (channel, gain adjustment etc). 2762306a36Sopenharmony_ci * 2862306a36Sopenharmony_ci * We don't write on those registers directly but 2962306a36Sopenharmony_ci * we send a data packet on the chip, using a special register, 3062306a36Sopenharmony_ci * that holds all the settings we need. After we've sent the 3162306a36Sopenharmony_ci * data packet, we write on another special register to notify hw 3262306a36Sopenharmony_ci * to apply the settings. This is done so that control registers 3362306a36Sopenharmony_ci * can be dynamically programmed during operation and the settings 3462306a36Sopenharmony_ci * are applied faster on the hw. 3562306a36Sopenharmony_ci * 3662306a36Sopenharmony_ci * We call each data packet an "RF Bank" and all the data we write 3762306a36Sopenharmony_ci * (all RF Banks) "RF Buffer". This file holds initial RF Buffer 3862306a36Sopenharmony_ci * data for the different RF chips, and various info to match RF 3962306a36Sopenharmony_ci * Buffer offsets with specific RF registers so that we can access 4062306a36Sopenharmony_ci * them. We tweak these settings on rfregs_init function. 4162306a36Sopenharmony_ci * 4262306a36Sopenharmony_ci * Also check out reg.h and U.S. Patent 6677779 B1 (about buffer 4362306a36Sopenharmony_ci * registers and control registers): 4462306a36Sopenharmony_ci * 4562306a36Sopenharmony_ci * https://www.google.com/patents?id=qNURAAAAEBAJ 4662306a36Sopenharmony_ci */ 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_ci 4962306a36Sopenharmony_ci/** 5062306a36Sopenharmony_ci * struct ath5k_ini_rfbuffer - Initial RF Buffer settings 5162306a36Sopenharmony_ci * @rfb_bank: RF Bank number 5262306a36Sopenharmony_ci * @rfb_ctrl_register: RF Buffer control register 5362306a36Sopenharmony_ci * @rfb_mode_data: RF Buffer data for each mode 5462306a36Sopenharmony_ci * 5562306a36Sopenharmony_ci * Struct to hold default mode specific RF 5662306a36Sopenharmony_ci * register values (RF Banks) for each chip. 5762306a36Sopenharmony_ci */ 5862306a36Sopenharmony_cistruct ath5k_ini_rfbuffer { 5962306a36Sopenharmony_ci u8 rfb_bank; 6062306a36Sopenharmony_ci u16 rfb_ctrl_register; 6162306a36Sopenharmony_ci u32 rfb_mode_data[3]; 6262306a36Sopenharmony_ci}; 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci/** 6562306a36Sopenharmony_ci * struct ath5k_rfb_field - An RF Buffer field (register/value) 6662306a36Sopenharmony_ci * @len: Field length 6762306a36Sopenharmony_ci * @pos: Offset on the raw packet 6862306a36Sopenharmony_ci * @col: Used for shifting 6962306a36Sopenharmony_ci * 7062306a36Sopenharmony_ci * Struct to hold RF Buffer field 7162306a36Sopenharmony_ci * infos used to access certain RF 7262306a36Sopenharmony_ci * analog registers 7362306a36Sopenharmony_ci */ 7462306a36Sopenharmony_cistruct ath5k_rfb_field { 7562306a36Sopenharmony_ci u8 len; 7662306a36Sopenharmony_ci u16 pos; 7762306a36Sopenharmony_ci u8 col; 7862306a36Sopenharmony_ci}; 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ci/** 8162306a36Sopenharmony_ci * struct ath5k_rf_reg - RF analog register definition 8262306a36Sopenharmony_ci * @bank: RF Buffer Bank number 8362306a36Sopenharmony_ci * @index: Register's index on ath5k_rf_regx_idx 8462306a36Sopenharmony_ci * @field: The &struct ath5k_rfb_field 8562306a36Sopenharmony_ci * 8662306a36Sopenharmony_ci * We use this struct to define the set of RF registers 8762306a36Sopenharmony_ci * on each chip that we want to tweak. Some RF registers 8862306a36Sopenharmony_ci * are common between different chip versions so this saves 8962306a36Sopenharmony_ci * us space and complexity because we can refer to an rf 9062306a36Sopenharmony_ci * register by it's index no matter what chip we work with 9162306a36Sopenharmony_ci * as long as it has that register. 9262306a36Sopenharmony_ci */ 9362306a36Sopenharmony_cistruct ath5k_rf_reg { 9462306a36Sopenharmony_ci u8 bank; 9562306a36Sopenharmony_ci u8 index; 9662306a36Sopenharmony_ci struct ath5k_rfb_field field; 9762306a36Sopenharmony_ci}; 9862306a36Sopenharmony_ci 9962306a36Sopenharmony_ci/** 10062306a36Sopenharmony_ci * enum ath5k_rf_regs_idx - Map RF registers to indexes 10162306a36Sopenharmony_ci * 10262306a36Sopenharmony_ci * We do this to handle common bits and make our 10362306a36Sopenharmony_ci * life easier by using an index for each register 10462306a36Sopenharmony_ci * instead of a full rfb_field 10562306a36Sopenharmony_ci */ 10662306a36Sopenharmony_cienum ath5k_rf_regs_idx { 10762306a36Sopenharmony_ci /* BANK 2 */ 10862306a36Sopenharmony_ci AR5K_RF_TURBO = 0, 10962306a36Sopenharmony_ci /* BANK 6 */ 11062306a36Sopenharmony_ci AR5K_RF_OB_2GHZ, 11162306a36Sopenharmony_ci AR5K_RF_OB_5GHZ, 11262306a36Sopenharmony_ci AR5K_RF_DB_2GHZ, 11362306a36Sopenharmony_ci AR5K_RF_DB_5GHZ, 11462306a36Sopenharmony_ci AR5K_RF_FIXED_BIAS_A, 11562306a36Sopenharmony_ci AR5K_RF_FIXED_BIAS_B, 11662306a36Sopenharmony_ci AR5K_RF_PWD_XPD, 11762306a36Sopenharmony_ci AR5K_RF_XPD_SEL, 11862306a36Sopenharmony_ci AR5K_RF_XPD_GAIN, 11962306a36Sopenharmony_ci AR5K_RF_PD_GAIN_LO, 12062306a36Sopenharmony_ci AR5K_RF_PD_GAIN_HI, 12162306a36Sopenharmony_ci AR5K_RF_HIGH_VC_CP, 12262306a36Sopenharmony_ci AR5K_RF_MID_VC_CP, 12362306a36Sopenharmony_ci AR5K_RF_LOW_VC_CP, 12462306a36Sopenharmony_ci AR5K_RF_PUSH_UP, 12562306a36Sopenharmony_ci AR5K_RF_PAD2GND, 12662306a36Sopenharmony_ci AR5K_RF_XB2_LVL, 12762306a36Sopenharmony_ci AR5K_RF_XB5_LVL, 12862306a36Sopenharmony_ci AR5K_RF_PWD_ICLOBUF_2G, 12962306a36Sopenharmony_ci AR5K_RF_PWD_84, 13062306a36Sopenharmony_ci AR5K_RF_PWD_90, 13162306a36Sopenharmony_ci AR5K_RF_PWD_130, 13262306a36Sopenharmony_ci AR5K_RF_PWD_131, 13362306a36Sopenharmony_ci AR5K_RF_PWD_132, 13462306a36Sopenharmony_ci AR5K_RF_PWD_136, 13562306a36Sopenharmony_ci AR5K_RF_PWD_137, 13662306a36Sopenharmony_ci AR5K_RF_PWD_138, 13762306a36Sopenharmony_ci AR5K_RF_PWD_166, 13862306a36Sopenharmony_ci AR5K_RF_PWD_167, 13962306a36Sopenharmony_ci AR5K_RF_DERBY_CHAN_SEL_MODE, 14062306a36Sopenharmony_ci /* BANK 7 */ 14162306a36Sopenharmony_ci AR5K_RF_GAIN_I, 14262306a36Sopenharmony_ci AR5K_RF_PLO_SEL, 14362306a36Sopenharmony_ci AR5K_RF_RFGAIN_SEL, 14462306a36Sopenharmony_ci AR5K_RF_RFGAIN_STEP, 14562306a36Sopenharmony_ci AR5K_RF_WAIT_S, 14662306a36Sopenharmony_ci AR5K_RF_WAIT_I, 14762306a36Sopenharmony_ci AR5K_RF_MAX_TIME, 14862306a36Sopenharmony_ci AR5K_RF_MIXVGA_OVR, 14962306a36Sopenharmony_ci AR5K_RF_MIXGAIN_OVR, 15062306a36Sopenharmony_ci AR5K_RF_MIXGAIN_STEP, 15162306a36Sopenharmony_ci AR5K_RF_PD_DELAY_A, 15262306a36Sopenharmony_ci AR5K_RF_PD_DELAY_B, 15362306a36Sopenharmony_ci AR5K_RF_PD_DELAY_XR, 15462306a36Sopenharmony_ci AR5K_RF_PD_PERIOD_A, 15562306a36Sopenharmony_ci AR5K_RF_PD_PERIOD_B, 15662306a36Sopenharmony_ci AR5K_RF_PD_PERIOD_XR, 15762306a36Sopenharmony_ci}; 15862306a36Sopenharmony_ci 15962306a36Sopenharmony_ci 16062306a36Sopenharmony_ci/*******************\ 16162306a36Sopenharmony_ci* RF5111 (Sombrero) * 16262306a36Sopenharmony_ci\*******************/ 16362306a36Sopenharmony_ci 16462306a36Sopenharmony_ci/* BANK 2 len pos col */ 16562306a36Sopenharmony_ci#define AR5K_RF5111_RF_TURBO { 1, 3, 0 } 16662306a36Sopenharmony_ci 16762306a36Sopenharmony_ci/* BANK 6 len pos col */ 16862306a36Sopenharmony_ci#define AR5K_RF5111_OB_2GHZ { 3, 119, 0 } 16962306a36Sopenharmony_ci#define AR5K_RF5111_DB_2GHZ { 3, 122, 0 } 17062306a36Sopenharmony_ci 17162306a36Sopenharmony_ci#define AR5K_RF5111_OB_5GHZ { 3, 104, 0 } 17262306a36Sopenharmony_ci#define AR5K_RF5111_DB_5GHZ { 3, 107, 0 } 17362306a36Sopenharmony_ci 17462306a36Sopenharmony_ci#define AR5K_RF5111_PWD_XPD { 1, 95, 0 } 17562306a36Sopenharmony_ci#define AR5K_RF5111_XPD_GAIN { 4, 96, 0 } 17662306a36Sopenharmony_ci 17762306a36Sopenharmony_ci/* Access to PWD registers */ 17862306a36Sopenharmony_ci#define AR5K_RF5111_PWD(_n) { 1, (135 - _n), 3 } 17962306a36Sopenharmony_ci 18062306a36Sopenharmony_ci/* BANK 7 len pos col */ 18162306a36Sopenharmony_ci#define AR5K_RF5111_GAIN_I { 6, 29, 0 } 18262306a36Sopenharmony_ci#define AR5K_RF5111_PLO_SEL { 1, 4, 0 } 18362306a36Sopenharmony_ci#define AR5K_RF5111_RFGAIN_SEL { 1, 36, 0 } 18462306a36Sopenharmony_ci#define AR5K_RF5111_RFGAIN_STEP { 6, 37, 0 } 18562306a36Sopenharmony_ci/* Only on AR5212 BaseBand and up */ 18662306a36Sopenharmony_ci#define AR5K_RF5111_WAIT_S { 5, 19, 0 } 18762306a36Sopenharmony_ci#define AR5K_RF5111_WAIT_I { 5, 24, 0 } 18862306a36Sopenharmony_ci#define AR5K_RF5111_MAX_TIME { 2, 49, 0 } 18962306a36Sopenharmony_ci 19062306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_5111[] = { 19162306a36Sopenharmony_ci {2, AR5K_RF_TURBO, AR5K_RF5111_RF_TURBO}, 19262306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF5111_OB_2GHZ}, 19362306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF5111_DB_2GHZ}, 19462306a36Sopenharmony_ci {6, AR5K_RF_OB_5GHZ, AR5K_RF5111_OB_5GHZ}, 19562306a36Sopenharmony_ci {6, AR5K_RF_DB_5GHZ, AR5K_RF5111_DB_5GHZ}, 19662306a36Sopenharmony_ci {6, AR5K_RF_PWD_XPD, AR5K_RF5111_PWD_XPD}, 19762306a36Sopenharmony_ci {6, AR5K_RF_XPD_GAIN, AR5K_RF5111_XPD_GAIN}, 19862306a36Sopenharmony_ci {6, AR5K_RF_PWD_84, AR5K_RF5111_PWD(84)}, 19962306a36Sopenharmony_ci {6, AR5K_RF_PWD_90, AR5K_RF5111_PWD(90)}, 20062306a36Sopenharmony_ci {7, AR5K_RF_GAIN_I, AR5K_RF5111_GAIN_I}, 20162306a36Sopenharmony_ci {7, AR5K_RF_PLO_SEL, AR5K_RF5111_PLO_SEL}, 20262306a36Sopenharmony_ci {7, AR5K_RF_RFGAIN_SEL, AR5K_RF5111_RFGAIN_SEL}, 20362306a36Sopenharmony_ci {7, AR5K_RF_RFGAIN_STEP, AR5K_RF5111_RFGAIN_STEP}, 20462306a36Sopenharmony_ci {7, AR5K_RF_WAIT_S, AR5K_RF5111_WAIT_S}, 20562306a36Sopenharmony_ci {7, AR5K_RF_WAIT_I, AR5K_RF5111_WAIT_I}, 20662306a36Sopenharmony_ci {7, AR5K_RF_MAX_TIME, AR5K_RF5111_MAX_TIME} 20762306a36Sopenharmony_ci}; 20862306a36Sopenharmony_ci 20962306a36Sopenharmony_ci/* Default mode specific settings */ 21062306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_5111[] = { 21162306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 21262306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21362306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21462306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21562306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21662306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21762306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21862306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 21962306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 22062306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 22162306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 22262306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 22362306a36Sopenharmony_ci { 0, 0x989c, { 0x00380000, 0x00380000, 0x00380000 } }, 22462306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 22562306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 22662306a36Sopenharmony_ci { 0, 0x989c, { 0x00000000, 0x000000c0, 0x00000080 } }, 22762306a36Sopenharmony_ci { 0, 0x989c, { 0x000400f9, 0x000400ff, 0x000400fd } }, 22862306a36Sopenharmony_ci { 0, 0x98d4, { 0x00000000, 0x00000004, 0x00000004 } }, 22962306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 23062306a36Sopenharmony_ci { 2, 0x98d4, { 0x00000010, 0x00000010, 0x00000010 } }, 23162306a36Sopenharmony_ci { 3, 0x98d8, { 0x00601068, 0x00601068, 0x00601068 } }, 23262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 23362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 23462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 23562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 23662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 23762306a36Sopenharmony_ci { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 23862306a36Sopenharmony_ci { 6, 0x989c, { 0x04000000, 0x04000000, 0x04000000 } }, 23962306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 24062306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 24162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 24262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x0a000000, 0x00000000 } }, 24362306a36Sopenharmony_ci { 6, 0x989c, { 0x003800c0, 0x023800c0, 0x003800c0 } }, 24462306a36Sopenharmony_ci { 6, 0x989c, { 0x00020006, 0x00000006, 0x00020006 } }, 24562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000089, 0x00000089, 0x00000089 } }, 24662306a36Sopenharmony_ci { 6, 0x989c, { 0x000000a0, 0x000000a0, 0x000000a0 } }, 24762306a36Sopenharmony_ci { 6, 0x989c, { 0x00040007, 0x00040007, 0x00040007 } }, 24862306a36Sopenharmony_ci { 6, 0x98d4, { 0x0000001a, 0x0000001a, 0x0000001a } }, 24962306a36Sopenharmony_ci { 7, 0x989c, { 0x00000040, 0x00000040, 0x00000040 } }, 25062306a36Sopenharmony_ci { 7, 0x989c, { 0x00000010, 0x00000010, 0x00000010 } }, 25162306a36Sopenharmony_ci { 7, 0x989c, { 0x00000008, 0x00000008, 0x00000008 } }, 25262306a36Sopenharmony_ci { 7, 0x989c, { 0x0000004f, 0x0000004f, 0x0000004f } }, 25362306a36Sopenharmony_ci { 7, 0x989c, { 0x000000f1, 0x00000061, 0x000000f1 } }, 25462306a36Sopenharmony_ci { 7, 0x989c, { 0x0000904f, 0x0000904c, 0x0000904f } }, 25562306a36Sopenharmony_ci { 7, 0x989c, { 0x0000125a, 0x0000129a, 0x0000125a } }, 25662306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000f, 0x0000000e } }, 25762306a36Sopenharmony_ci}; 25862306a36Sopenharmony_ci 25962306a36Sopenharmony_ci 26062306a36Sopenharmony_ci 26162306a36Sopenharmony_ci/***********************\ 26262306a36Sopenharmony_ci* RF5112/RF2112 (Derby) * 26362306a36Sopenharmony_ci\***********************/ 26462306a36Sopenharmony_ci 26562306a36Sopenharmony_ci/* BANK 2 (Common) len pos col */ 26662306a36Sopenharmony_ci#define AR5K_RF5112X_RF_TURBO { 1, 1, 2 } 26762306a36Sopenharmony_ci 26862306a36Sopenharmony_ci/* BANK 7 (Common) len pos col */ 26962306a36Sopenharmony_ci#define AR5K_RF5112X_GAIN_I { 6, 14, 0 } 27062306a36Sopenharmony_ci#define AR5K_RF5112X_MIXVGA_OVR { 1, 36, 0 } 27162306a36Sopenharmony_ci#define AR5K_RF5112X_MIXGAIN_OVR { 2, 37, 0 } 27262306a36Sopenharmony_ci#define AR5K_RF5112X_MIXGAIN_STEP { 4, 32, 0 } 27362306a36Sopenharmony_ci#define AR5K_RF5112X_PD_DELAY_A { 4, 58, 0 } 27462306a36Sopenharmony_ci#define AR5K_RF5112X_PD_DELAY_B { 4, 62, 0 } 27562306a36Sopenharmony_ci#define AR5K_RF5112X_PD_DELAY_XR { 4, 66, 0 } 27662306a36Sopenharmony_ci#define AR5K_RF5112X_PD_PERIOD_A { 4, 70, 0 } 27762306a36Sopenharmony_ci#define AR5K_RF5112X_PD_PERIOD_B { 4, 74, 0 } 27862306a36Sopenharmony_ci#define AR5K_RF5112X_PD_PERIOD_XR { 4, 78, 0 } 27962306a36Sopenharmony_ci 28062306a36Sopenharmony_ci/* RFX112 (Derby 1) */ 28162306a36Sopenharmony_ci 28262306a36Sopenharmony_ci/* BANK 6 len pos col */ 28362306a36Sopenharmony_ci#define AR5K_RF5112_OB_2GHZ { 3, 269, 0 } 28462306a36Sopenharmony_ci#define AR5K_RF5112_DB_2GHZ { 3, 272, 0 } 28562306a36Sopenharmony_ci 28662306a36Sopenharmony_ci#define AR5K_RF5112_OB_5GHZ { 3, 261, 0 } 28762306a36Sopenharmony_ci#define AR5K_RF5112_DB_5GHZ { 3, 264, 0 } 28862306a36Sopenharmony_ci 28962306a36Sopenharmony_ci#define AR5K_RF5112_FIXED_BIAS_A { 1, 260, 0 } 29062306a36Sopenharmony_ci#define AR5K_RF5112_FIXED_BIAS_B { 1, 259, 0 } 29162306a36Sopenharmony_ci 29262306a36Sopenharmony_ci#define AR5K_RF5112_XPD_SEL { 1, 284, 0 } 29362306a36Sopenharmony_ci#define AR5K_RF5112_XPD_GAIN { 2, 252, 0 } 29462306a36Sopenharmony_ci 29562306a36Sopenharmony_ci/* Access to PWD registers */ 29662306a36Sopenharmony_ci#define AR5K_RF5112_PWD(_n) { 1, (302 - _n), 3 } 29762306a36Sopenharmony_ci 29862306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_5112[] = { 29962306a36Sopenharmony_ci {2, AR5K_RF_TURBO, AR5K_RF5112X_RF_TURBO}, 30062306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF5112_OB_2GHZ}, 30162306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF5112_DB_2GHZ}, 30262306a36Sopenharmony_ci {6, AR5K_RF_OB_5GHZ, AR5K_RF5112_OB_5GHZ}, 30362306a36Sopenharmony_ci {6, AR5K_RF_DB_5GHZ, AR5K_RF5112_DB_5GHZ}, 30462306a36Sopenharmony_ci {6, AR5K_RF_FIXED_BIAS_A, AR5K_RF5112_FIXED_BIAS_A}, 30562306a36Sopenharmony_ci {6, AR5K_RF_FIXED_BIAS_B, AR5K_RF5112_FIXED_BIAS_B}, 30662306a36Sopenharmony_ci {6, AR5K_RF_XPD_SEL, AR5K_RF5112_XPD_SEL}, 30762306a36Sopenharmony_ci {6, AR5K_RF_XPD_GAIN, AR5K_RF5112_XPD_GAIN}, 30862306a36Sopenharmony_ci {6, AR5K_RF_PWD_130, AR5K_RF5112_PWD(130)}, 30962306a36Sopenharmony_ci {6, AR5K_RF_PWD_131, AR5K_RF5112_PWD(131)}, 31062306a36Sopenharmony_ci {6, AR5K_RF_PWD_132, AR5K_RF5112_PWD(132)}, 31162306a36Sopenharmony_ci {6, AR5K_RF_PWD_136, AR5K_RF5112_PWD(136)}, 31262306a36Sopenharmony_ci {6, AR5K_RF_PWD_137, AR5K_RF5112_PWD(137)}, 31362306a36Sopenharmony_ci {6, AR5K_RF_PWD_138, AR5K_RF5112_PWD(138)}, 31462306a36Sopenharmony_ci {7, AR5K_RF_GAIN_I, AR5K_RF5112X_GAIN_I}, 31562306a36Sopenharmony_ci {7, AR5K_RF_MIXVGA_OVR, AR5K_RF5112X_MIXVGA_OVR}, 31662306a36Sopenharmony_ci {7, AR5K_RF_MIXGAIN_OVR, AR5K_RF5112X_MIXGAIN_OVR}, 31762306a36Sopenharmony_ci {7, AR5K_RF_MIXGAIN_STEP, AR5K_RF5112X_MIXGAIN_STEP}, 31862306a36Sopenharmony_ci {7, AR5K_RF_PD_DELAY_A, AR5K_RF5112X_PD_DELAY_A}, 31962306a36Sopenharmony_ci {7, AR5K_RF_PD_DELAY_B, AR5K_RF5112X_PD_DELAY_B}, 32062306a36Sopenharmony_ci {7, AR5K_RF_PD_DELAY_XR, AR5K_RF5112X_PD_DELAY_XR}, 32162306a36Sopenharmony_ci {7, AR5K_RF_PD_PERIOD_A, AR5K_RF5112X_PD_PERIOD_A}, 32262306a36Sopenharmony_ci {7, AR5K_RF_PD_PERIOD_B, AR5K_RF5112X_PD_PERIOD_B}, 32362306a36Sopenharmony_ci {7, AR5K_RF_PD_PERIOD_XR, AR5K_RF5112X_PD_PERIOD_XR}, 32462306a36Sopenharmony_ci}; 32562306a36Sopenharmony_ci 32662306a36Sopenharmony_ci/* Default mode specific settings */ 32762306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_5112[] = { 32862306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 32962306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 33062306a36Sopenharmony_ci { 2, 0x98d0, { 0x03060408, 0x03060408, 0x03060408 } }, 33162306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a0c0c0, 0x00e0c0c0, 0x00e0c0c0 } }, 33262306a36Sopenharmony_ci { 6, 0x989c, { 0x00a00000, 0x00a00000, 0x00a00000 } }, 33362306a36Sopenharmony_ci { 6, 0x989c, { 0x000a0000, 0x000a0000, 0x000a0000 } }, 33462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 33562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 33662306a36Sopenharmony_ci { 6, 0x989c, { 0x00660000, 0x00660000, 0x00660000 } }, 33762306a36Sopenharmony_ci { 6, 0x989c, { 0x00db0000, 0x00db0000, 0x00db0000 } }, 33862306a36Sopenharmony_ci { 6, 0x989c, { 0x00f10000, 0x00f10000, 0x00f10000 } }, 33962306a36Sopenharmony_ci { 6, 0x989c, { 0x00120000, 0x00120000, 0x00120000 } }, 34062306a36Sopenharmony_ci { 6, 0x989c, { 0x00120000, 0x00120000, 0x00120000 } }, 34162306a36Sopenharmony_ci { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 34262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 34362306a36Sopenharmony_ci { 6, 0x989c, { 0x000c0000, 0x000c0000, 0x000c0000 } }, 34462306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 34562306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 34662306a36Sopenharmony_ci { 6, 0x989c, { 0x008b0000, 0x008b0000, 0x008b0000 } }, 34762306a36Sopenharmony_ci { 6, 0x989c, { 0x00600000, 0x00600000, 0x00600000 } }, 34862306a36Sopenharmony_ci { 6, 0x989c, { 0x000c0000, 0x000c0000, 0x000c0000 } }, 34962306a36Sopenharmony_ci { 6, 0x989c, { 0x00840000, 0x00840000, 0x00840000 } }, 35062306a36Sopenharmony_ci { 6, 0x989c, { 0x00640000, 0x00640000, 0x00640000 } }, 35162306a36Sopenharmony_ci { 6, 0x989c, { 0x00200000, 0x00200000, 0x00200000 } }, 35262306a36Sopenharmony_ci { 6, 0x989c, { 0x00240000, 0x00240000, 0x00240000 } }, 35362306a36Sopenharmony_ci { 6, 0x989c, { 0x00250000, 0x00250000, 0x00250000 } }, 35462306a36Sopenharmony_ci { 6, 0x989c, { 0x00110000, 0x00110000, 0x00110000 } }, 35562306a36Sopenharmony_ci { 6, 0x989c, { 0x00110000, 0x00110000, 0x00110000 } }, 35662306a36Sopenharmony_ci { 6, 0x989c, { 0x00510000, 0x00510000, 0x00510000 } }, 35762306a36Sopenharmony_ci { 6, 0x989c, { 0x1c040000, 0x1c040000, 0x1c040000 } }, 35862306a36Sopenharmony_ci { 6, 0x989c, { 0x000a0000, 0x000a0000, 0x000a0000 } }, 35962306a36Sopenharmony_ci { 6, 0x989c, { 0x00a10000, 0x00a10000, 0x00a10000 } }, 36062306a36Sopenharmony_ci { 6, 0x989c, { 0x00400000, 0x00400000, 0x00400000 } }, 36162306a36Sopenharmony_ci { 6, 0x989c, { 0x03090000, 0x03090000, 0x03090000 } }, 36262306a36Sopenharmony_ci { 6, 0x989c, { 0x06000000, 0x06000000, 0x06000000 } }, 36362306a36Sopenharmony_ci { 6, 0x989c, { 0x000000b0, 0x000000a8, 0x000000a8 } }, 36462306a36Sopenharmony_ci { 6, 0x989c, { 0x0000002e, 0x0000002e, 0x0000002e } }, 36562306a36Sopenharmony_ci { 6, 0x989c, { 0x006c4a41, 0x006c4af1, 0x006c4a61 } }, 36662306a36Sopenharmony_ci { 6, 0x989c, { 0x0050892a, 0x0050892b, 0x0050892b } }, 36762306a36Sopenharmony_ci { 6, 0x989c, { 0x00842400, 0x00842400, 0x00842400 } }, 36862306a36Sopenharmony_ci { 6, 0x989c, { 0x00c69200, 0x00c69200, 0x00c69200 } }, 36962306a36Sopenharmony_ci { 6, 0x98d0, { 0x0002000c, 0x0002000c, 0x0002000c } }, 37062306a36Sopenharmony_ci { 7, 0x989c, { 0x00000094, 0x00000094, 0x00000094 } }, 37162306a36Sopenharmony_ci { 7, 0x989c, { 0x00000091, 0x00000091, 0x00000091 } }, 37262306a36Sopenharmony_ci { 7, 0x989c, { 0x0000000a, 0x00000012, 0x00000012 } }, 37362306a36Sopenharmony_ci { 7, 0x989c, { 0x00000080, 0x00000080, 0x00000080 } }, 37462306a36Sopenharmony_ci { 7, 0x989c, { 0x000000c1, 0x000000c1, 0x000000c1 } }, 37562306a36Sopenharmony_ci { 7, 0x989c, { 0x00000060, 0x00000060, 0x00000060 } }, 37662306a36Sopenharmony_ci { 7, 0x989c, { 0x000000f0, 0x000000f0, 0x000000f0 } }, 37762306a36Sopenharmony_ci { 7, 0x989c, { 0x00000022, 0x00000022, 0x00000022 } }, 37862306a36Sopenharmony_ci { 7, 0x989c, { 0x00000092, 0x00000092, 0x00000092 } }, 37962306a36Sopenharmony_ci { 7, 0x989c, { 0x000000d4, 0x000000d4, 0x000000d4 } }, 38062306a36Sopenharmony_ci { 7, 0x989c, { 0x000014cc, 0x000014cc, 0x000014cc } }, 38162306a36Sopenharmony_ci { 7, 0x989c, { 0x0000048c, 0x0000048c, 0x0000048c } }, 38262306a36Sopenharmony_ci { 7, 0x98c4, { 0x00000003, 0x00000003, 0x00000003 } }, 38362306a36Sopenharmony_ci}; 38462306a36Sopenharmony_ci 38562306a36Sopenharmony_ci/* RFX112A (Derby 2) */ 38662306a36Sopenharmony_ci 38762306a36Sopenharmony_ci/* BANK 6 len pos col */ 38862306a36Sopenharmony_ci#define AR5K_RF5112A_OB_2GHZ { 3, 287, 0 } 38962306a36Sopenharmony_ci#define AR5K_RF5112A_DB_2GHZ { 3, 290, 0 } 39062306a36Sopenharmony_ci 39162306a36Sopenharmony_ci#define AR5K_RF5112A_OB_5GHZ { 3, 279, 0 } 39262306a36Sopenharmony_ci#define AR5K_RF5112A_DB_5GHZ { 3, 282, 0 } 39362306a36Sopenharmony_ci 39462306a36Sopenharmony_ci#define AR5K_RF5112A_FIXED_BIAS_A { 1, 278, 0 } 39562306a36Sopenharmony_ci#define AR5K_RF5112A_FIXED_BIAS_B { 1, 277, 0 } 39662306a36Sopenharmony_ci 39762306a36Sopenharmony_ci#define AR5K_RF5112A_XPD_SEL { 1, 302, 0 } 39862306a36Sopenharmony_ci#define AR5K_RF5112A_PDGAINLO { 2, 270, 0 } 39962306a36Sopenharmony_ci#define AR5K_RF5112A_PDGAINHI { 2, 257, 0 } 40062306a36Sopenharmony_ci 40162306a36Sopenharmony_ci/* Access to PWD registers */ 40262306a36Sopenharmony_ci#define AR5K_RF5112A_PWD(_n) { 1, (306 - _n), 3 } 40362306a36Sopenharmony_ci 40462306a36Sopenharmony_ci/* Voltage regulators */ 40562306a36Sopenharmony_ci#define AR5K_RF5112A_HIGH_VC_CP { 2, 90, 2 } 40662306a36Sopenharmony_ci#define AR5K_RF5112A_MID_VC_CP { 2, 92, 2 } 40762306a36Sopenharmony_ci#define AR5K_RF5112A_LOW_VC_CP { 2, 94, 2 } 40862306a36Sopenharmony_ci#define AR5K_RF5112A_PUSH_UP { 1, 254, 2 } 40962306a36Sopenharmony_ci 41062306a36Sopenharmony_ci/* Power consumption */ 41162306a36Sopenharmony_ci#define AR5K_RF5112A_PAD2GND { 1, 281, 1 } 41262306a36Sopenharmony_ci#define AR5K_RF5112A_XB2_LVL { 2, 1, 3 } 41362306a36Sopenharmony_ci#define AR5K_RF5112A_XB5_LVL { 2, 3, 3 } 41462306a36Sopenharmony_ci 41562306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_5112a[] = { 41662306a36Sopenharmony_ci {2, AR5K_RF_TURBO, AR5K_RF5112X_RF_TURBO}, 41762306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF5112A_OB_2GHZ}, 41862306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF5112A_DB_2GHZ}, 41962306a36Sopenharmony_ci {6, AR5K_RF_OB_5GHZ, AR5K_RF5112A_OB_5GHZ}, 42062306a36Sopenharmony_ci {6, AR5K_RF_DB_5GHZ, AR5K_RF5112A_DB_5GHZ}, 42162306a36Sopenharmony_ci {6, AR5K_RF_FIXED_BIAS_A, AR5K_RF5112A_FIXED_BIAS_A}, 42262306a36Sopenharmony_ci {6, AR5K_RF_FIXED_BIAS_B, AR5K_RF5112A_FIXED_BIAS_B}, 42362306a36Sopenharmony_ci {6, AR5K_RF_XPD_SEL, AR5K_RF5112A_XPD_SEL}, 42462306a36Sopenharmony_ci {6, AR5K_RF_PD_GAIN_LO, AR5K_RF5112A_PDGAINLO}, 42562306a36Sopenharmony_ci {6, AR5K_RF_PD_GAIN_HI, AR5K_RF5112A_PDGAINHI}, 42662306a36Sopenharmony_ci {6, AR5K_RF_PWD_130, AR5K_RF5112A_PWD(130)}, 42762306a36Sopenharmony_ci {6, AR5K_RF_PWD_131, AR5K_RF5112A_PWD(131)}, 42862306a36Sopenharmony_ci {6, AR5K_RF_PWD_132, AR5K_RF5112A_PWD(132)}, 42962306a36Sopenharmony_ci {6, AR5K_RF_PWD_136, AR5K_RF5112A_PWD(136)}, 43062306a36Sopenharmony_ci {6, AR5K_RF_PWD_137, AR5K_RF5112A_PWD(137)}, 43162306a36Sopenharmony_ci {6, AR5K_RF_PWD_138, AR5K_RF5112A_PWD(138)}, 43262306a36Sopenharmony_ci {6, AR5K_RF_PWD_166, AR5K_RF5112A_PWD(166)}, 43362306a36Sopenharmony_ci {6, AR5K_RF_PWD_167, AR5K_RF5112A_PWD(167)}, 43462306a36Sopenharmony_ci {6, AR5K_RF_HIGH_VC_CP, AR5K_RF5112A_HIGH_VC_CP}, 43562306a36Sopenharmony_ci {6, AR5K_RF_MID_VC_CP, AR5K_RF5112A_MID_VC_CP}, 43662306a36Sopenharmony_ci {6, AR5K_RF_LOW_VC_CP, AR5K_RF5112A_LOW_VC_CP}, 43762306a36Sopenharmony_ci {6, AR5K_RF_PUSH_UP, AR5K_RF5112A_PUSH_UP}, 43862306a36Sopenharmony_ci {6, AR5K_RF_PAD2GND, AR5K_RF5112A_PAD2GND}, 43962306a36Sopenharmony_ci {6, AR5K_RF_XB2_LVL, AR5K_RF5112A_XB2_LVL}, 44062306a36Sopenharmony_ci {6, AR5K_RF_XB5_LVL, AR5K_RF5112A_XB5_LVL}, 44162306a36Sopenharmony_ci {7, AR5K_RF_GAIN_I, AR5K_RF5112X_GAIN_I}, 44262306a36Sopenharmony_ci {7, AR5K_RF_MIXVGA_OVR, AR5K_RF5112X_MIXVGA_OVR}, 44362306a36Sopenharmony_ci {7, AR5K_RF_MIXGAIN_OVR, AR5K_RF5112X_MIXGAIN_OVR}, 44462306a36Sopenharmony_ci {7, AR5K_RF_MIXGAIN_STEP, AR5K_RF5112X_MIXGAIN_STEP}, 44562306a36Sopenharmony_ci {7, AR5K_RF_PD_DELAY_A, AR5K_RF5112X_PD_DELAY_A}, 44662306a36Sopenharmony_ci {7, AR5K_RF_PD_DELAY_B, AR5K_RF5112X_PD_DELAY_B}, 44762306a36Sopenharmony_ci {7, AR5K_RF_PD_DELAY_XR, AR5K_RF5112X_PD_DELAY_XR}, 44862306a36Sopenharmony_ci {7, AR5K_RF_PD_PERIOD_A, AR5K_RF5112X_PD_PERIOD_A}, 44962306a36Sopenharmony_ci {7, AR5K_RF_PD_PERIOD_B, AR5K_RF5112X_PD_PERIOD_B}, 45062306a36Sopenharmony_ci {7, AR5K_RF_PD_PERIOD_XR, AR5K_RF5112X_PD_PERIOD_XR}, 45162306a36Sopenharmony_ci}; 45262306a36Sopenharmony_ci 45362306a36Sopenharmony_ci/* Default mode specific settings */ 45462306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_5112a[] = { 45562306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 45662306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 45762306a36Sopenharmony_ci { 2, 0x98d0, { 0x03060408, 0x03060408, 0x03060408 } }, 45862306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 45962306a36Sopenharmony_ci { 6, 0x989c, { 0x0f000000, 0x0f000000, 0x0f000000 } }, 46062306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 46162306a36Sopenharmony_ci { 6, 0x989c, { 0x00800000, 0x00800000, 0x00800000 } }, 46262306a36Sopenharmony_ci { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 46362306a36Sopenharmony_ci { 6, 0x989c, { 0x00010000, 0x00010000, 0x00010000 } }, 46462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 46562306a36Sopenharmony_ci { 6, 0x989c, { 0x00180000, 0x00180000, 0x00180000 } }, 46662306a36Sopenharmony_ci { 6, 0x989c, { 0x00600000, 0x006e0000, 0x006e0000 } }, 46762306a36Sopenharmony_ci { 6, 0x989c, { 0x00c70000, 0x00c70000, 0x00c70000 } }, 46862306a36Sopenharmony_ci { 6, 0x989c, { 0x004b0000, 0x004b0000, 0x004b0000 } }, 46962306a36Sopenharmony_ci { 6, 0x989c, { 0x04480000, 0x04480000, 0x04480000 } }, 47062306a36Sopenharmony_ci { 6, 0x989c, { 0x004c0000, 0x004c0000, 0x004c0000 } }, 47162306a36Sopenharmony_ci { 6, 0x989c, { 0x00e40000, 0x00e40000, 0x00e40000 } }, 47262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 47362306a36Sopenharmony_ci { 6, 0x989c, { 0x00fc0000, 0x00fc0000, 0x00fc0000 } }, 47462306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 47562306a36Sopenharmony_ci { 6, 0x989c, { 0x043f0000, 0x043f0000, 0x043f0000 } }, 47662306a36Sopenharmony_ci { 6, 0x989c, { 0x000c0000, 0x000c0000, 0x000c0000 } }, 47762306a36Sopenharmony_ci { 6, 0x989c, { 0x02190000, 0x02190000, 0x02190000 } }, 47862306a36Sopenharmony_ci { 6, 0x989c, { 0x00240000, 0x00240000, 0x00240000 } }, 47962306a36Sopenharmony_ci { 6, 0x989c, { 0x00b40000, 0x00b40000, 0x00b40000 } }, 48062306a36Sopenharmony_ci { 6, 0x989c, { 0x00990000, 0x00990000, 0x00990000 } }, 48162306a36Sopenharmony_ci { 6, 0x989c, { 0x00500000, 0x00500000, 0x00500000 } }, 48262306a36Sopenharmony_ci { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 48362306a36Sopenharmony_ci { 6, 0x989c, { 0x00120000, 0x00120000, 0x00120000 } }, 48462306a36Sopenharmony_ci { 6, 0x989c, { 0xc0320000, 0xc0320000, 0xc0320000 } }, 48562306a36Sopenharmony_ci { 6, 0x989c, { 0x01740000, 0x01740000, 0x01740000 } }, 48662306a36Sopenharmony_ci { 6, 0x989c, { 0x00110000, 0x00110000, 0x00110000 } }, 48762306a36Sopenharmony_ci { 6, 0x989c, { 0x86280000, 0x86280000, 0x86280000 } }, 48862306a36Sopenharmony_ci { 6, 0x989c, { 0x31840000, 0x31840000, 0x31840000 } }, 48962306a36Sopenharmony_ci { 6, 0x989c, { 0x00f20080, 0x00f20080, 0x00f20080 } }, 49062306a36Sopenharmony_ci { 6, 0x989c, { 0x00270019, 0x00270019, 0x00270019 } }, 49162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000003, 0x00000003, 0x00000003 } }, 49262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 49362306a36Sopenharmony_ci { 6, 0x989c, { 0x000000b2, 0x000000b2, 0x000000b2 } }, 49462306a36Sopenharmony_ci { 6, 0x989c, { 0x00b02084, 0x00b02084, 0x00b02084 } }, 49562306a36Sopenharmony_ci { 6, 0x989c, { 0x004125a4, 0x004125a4, 0x004125a4 } }, 49662306a36Sopenharmony_ci { 6, 0x989c, { 0x00119220, 0x00119220, 0x00119220 } }, 49762306a36Sopenharmony_ci { 6, 0x989c, { 0x001a4800, 0x001a4800, 0x001a4800 } }, 49862306a36Sopenharmony_ci { 6, 0x98d8, { 0x000b0230, 0x000b0230, 0x000b0230 } }, 49962306a36Sopenharmony_ci { 7, 0x989c, { 0x00000094, 0x00000094, 0x00000094 } }, 50062306a36Sopenharmony_ci { 7, 0x989c, { 0x00000091, 0x00000091, 0x00000091 } }, 50162306a36Sopenharmony_ci { 7, 0x989c, { 0x00000012, 0x00000012, 0x00000012 } }, 50262306a36Sopenharmony_ci { 7, 0x989c, { 0x00000080, 0x00000080, 0x00000080 } }, 50362306a36Sopenharmony_ci { 7, 0x989c, { 0x000000d9, 0x000000d9, 0x000000d9 } }, 50462306a36Sopenharmony_ci { 7, 0x989c, { 0x00000060, 0x00000060, 0x00000060 } }, 50562306a36Sopenharmony_ci { 7, 0x989c, { 0x000000f0, 0x000000f0, 0x000000f0 } }, 50662306a36Sopenharmony_ci { 7, 0x989c, { 0x000000a2, 0x000000a2, 0x000000a2 } }, 50762306a36Sopenharmony_ci { 7, 0x989c, { 0x00000052, 0x00000052, 0x00000052 } }, 50862306a36Sopenharmony_ci { 7, 0x989c, { 0x000000d4, 0x000000d4, 0x000000d4 } }, 50962306a36Sopenharmony_ci { 7, 0x989c, { 0x000014cc, 0x000014cc, 0x000014cc } }, 51062306a36Sopenharmony_ci { 7, 0x989c, { 0x0000048c, 0x0000048c, 0x0000048c } }, 51162306a36Sopenharmony_ci { 7, 0x98c4, { 0x00000003, 0x00000003, 0x00000003 } }, 51262306a36Sopenharmony_ci}; 51362306a36Sopenharmony_ci 51462306a36Sopenharmony_ci 51562306a36Sopenharmony_ci 51662306a36Sopenharmony_ci/******************\ 51762306a36Sopenharmony_ci* RF2413 (Griffin) * 51862306a36Sopenharmony_ci\******************/ 51962306a36Sopenharmony_ci 52062306a36Sopenharmony_ci/* BANK 2 len pos col */ 52162306a36Sopenharmony_ci#define AR5K_RF2413_RF_TURBO { 1, 1, 2 } 52262306a36Sopenharmony_ci 52362306a36Sopenharmony_ci/* BANK 6 len pos col */ 52462306a36Sopenharmony_ci#define AR5K_RF2413_OB_2GHZ { 3, 168, 0 } 52562306a36Sopenharmony_ci#define AR5K_RF2413_DB_2GHZ { 3, 165, 0 } 52662306a36Sopenharmony_ci 52762306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_2413[] = { 52862306a36Sopenharmony_ci {2, AR5K_RF_TURBO, AR5K_RF2413_RF_TURBO}, 52962306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF2413_OB_2GHZ}, 53062306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF2413_DB_2GHZ}, 53162306a36Sopenharmony_ci}; 53262306a36Sopenharmony_ci 53362306a36Sopenharmony_ci/* Default mode specific settings 53462306a36Sopenharmony_ci * XXX: a/aTurbo ??? 53562306a36Sopenharmony_ci */ 53662306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_2413[] = { 53762306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 53862306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 53962306a36Sopenharmony_ci { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 54062306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 54162306a36Sopenharmony_ci { 6, 0x989c, { 0xf0000000, 0xf0000000, 0xf0000000 } }, 54262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 54362306a36Sopenharmony_ci { 6, 0x989c, { 0x03000000, 0x03000000, 0x03000000 } }, 54462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 54562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 54662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 54762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 54862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 54962306a36Sopenharmony_ci { 6, 0x989c, { 0x40400000, 0x40400000, 0x40400000 } }, 55062306a36Sopenharmony_ci { 6, 0x989c, { 0x65050000, 0x65050000, 0x65050000 } }, 55162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 55262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 55362306a36Sopenharmony_ci { 6, 0x989c, { 0x00420000, 0x00420000, 0x00420000 } }, 55462306a36Sopenharmony_ci { 6, 0x989c, { 0x00b50000, 0x00b50000, 0x00b50000 } }, 55562306a36Sopenharmony_ci { 6, 0x989c, { 0x00030000, 0x00030000, 0x00030000 } }, 55662306a36Sopenharmony_ci { 6, 0x989c, { 0x00f70000, 0x00f70000, 0x00f70000 } }, 55762306a36Sopenharmony_ci { 6, 0x989c, { 0x009d0000, 0x009d0000, 0x009d0000 } }, 55862306a36Sopenharmony_ci { 6, 0x989c, { 0x00220000, 0x00220000, 0x00220000 } }, 55962306a36Sopenharmony_ci { 6, 0x989c, { 0x04220000, 0x04220000, 0x04220000 } }, 56062306a36Sopenharmony_ci { 6, 0x989c, { 0x00230018, 0x00230018, 0x00230018 } }, 56162306a36Sopenharmony_ci { 6, 0x989c, { 0x00280000, 0x00280060, 0x00280060 } }, 56262306a36Sopenharmony_ci { 6, 0x989c, { 0x005000c0, 0x005000c3, 0x005000c3 } }, 56362306a36Sopenharmony_ci { 6, 0x989c, { 0x0004007f, 0x0004007f, 0x0004007f } }, 56462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000458, 0x00000458, 0x00000458 } }, 56562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 56662306a36Sopenharmony_ci { 6, 0x989c, { 0x0000c000, 0x0000c000, 0x0000c000 } }, 56762306a36Sopenharmony_ci { 6, 0x98d8, { 0x00400230, 0x00400230, 0x00400230 } }, 56862306a36Sopenharmony_ci { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 56962306a36Sopenharmony_ci { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 57062306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 57162306a36Sopenharmony_ci}; 57262306a36Sopenharmony_ci 57362306a36Sopenharmony_ci 57462306a36Sopenharmony_ci 57562306a36Sopenharmony_ci/***************************\ 57662306a36Sopenharmony_ci* RF2315/RF2316 (Cobra SoC) * 57762306a36Sopenharmony_ci\***************************/ 57862306a36Sopenharmony_ci 57962306a36Sopenharmony_ci/* BANK 2 len pos col */ 58062306a36Sopenharmony_ci#define AR5K_RF2316_RF_TURBO { 1, 1, 2 } 58162306a36Sopenharmony_ci 58262306a36Sopenharmony_ci/* BANK 6 len pos col */ 58362306a36Sopenharmony_ci#define AR5K_RF2316_OB_2GHZ { 3, 178, 0 } 58462306a36Sopenharmony_ci#define AR5K_RF2316_DB_2GHZ { 3, 175, 0 } 58562306a36Sopenharmony_ci 58662306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_2316[] = { 58762306a36Sopenharmony_ci {2, AR5K_RF_TURBO, AR5K_RF2316_RF_TURBO}, 58862306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF2316_OB_2GHZ}, 58962306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF2316_DB_2GHZ}, 59062306a36Sopenharmony_ci}; 59162306a36Sopenharmony_ci 59262306a36Sopenharmony_ci/* Default mode specific settings */ 59362306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_2316[] = { 59462306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 59562306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 59662306a36Sopenharmony_ci { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 59762306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 59862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 59962306a36Sopenharmony_ci { 6, 0x989c, { 0xc0000000, 0xc0000000, 0xc0000000 } }, 60062306a36Sopenharmony_ci { 6, 0x989c, { 0x0f000000, 0x0f000000, 0x0f000000 } }, 60162306a36Sopenharmony_ci { 6, 0x989c, { 0x02000000, 0x02000000, 0x02000000 } }, 60262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 60362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 60462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 60562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 60662306a36Sopenharmony_ci { 6, 0x989c, { 0xf8000000, 0xf8000000, 0xf8000000 } }, 60762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 60862306a36Sopenharmony_ci { 6, 0x989c, { 0x95150000, 0x95150000, 0x95150000 } }, 60962306a36Sopenharmony_ci { 6, 0x989c, { 0xc1000000, 0xc1000000, 0xc1000000 } }, 61062306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 61162306a36Sopenharmony_ci { 6, 0x989c, { 0x00080000, 0x00080000, 0x00080000 } }, 61262306a36Sopenharmony_ci { 6, 0x989c, { 0x00d50000, 0x00d50000, 0x00d50000 } }, 61362306a36Sopenharmony_ci { 6, 0x989c, { 0x000e0000, 0x000e0000, 0x000e0000 } }, 61462306a36Sopenharmony_ci { 6, 0x989c, { 0x00dc0000, 0x00dc0000, 0x00dc0000 } }, 61562306a36Sopenharmony_ci { 6, 0x989c, { 0x00770000, 0x00770000, 0x00770000 } }, 61662306a36Sopenharmony_ci { 6, 0x989c, { 0x008a0000, 0x008a0000, 0x008a0000 } }, 61762306a36Sopenharmony_ci { 6, 0x989c, { 0x10880000, 0x10880000, 0x10880000 } }, 61862306a36Sopenharmony_ci { 6, 0x989c, { 0x008c0060, 0x008c0060, 0x008c0060 } }, 61962306a36Sopenharmony_ci { 6, 0x989c, { 0x00a00000, 0x00a00080, 0x00a00080 } }, 62062306a36Sopenharmony_ci { 6, 0x989c, { 0x00400000, 0x0040000d, 0x0040000d } }, 62162306a36Sopenharmony_ci { 6, 0x989c, { 0x00110400, 0x00110400, 0x00110400 } }, 62262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000060, 0x00000060, 0x00000060 } }, 62362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000001, 0x00000001, 0x00000001 } }, 62462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000b00, 0x00000b00, 0x00000b00 } }, 62562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000be8, 0x00000be8, 0x00000be8 } }, 62662306a36Sopenharmony_ci { 6, 0x98c0, { 0x00010000, 0x00010000, 0x00010000 } }, 62762306a36Sopenharmony_ci { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 62862306a36Sopenharmony_ci { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 62962306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 63062306a36Sopenharmony_ci}; 63162306a36Sopenharmony_ci 63262306a36Sopenharmony_ci 63362306a36Sopenharmony_ci 63462306a36Sopenharmony_ci/******************************\ 63562306a36Sopenharmony_ci* RF5413/RF5424 (Eagle/Condor) * 63662306a36Sopenharmony_ci\******************************/ 63762306a36Sopenharmony_ci 63862306a36Sopenharmony_ci/* BANK 6 len pos col */ 63962306a36Sopenharmony_ci#define AR5K_RF5413_OB_2GHZ { 3, 241, 0 } 64062306a36Sopenharmony_ci#define AR5K_RF5413_DB_2GHZ { 3, 238, 0 } 64162306a36Sopenharmony_ci 64262306a36Sopenharmony_ci#define AR5K_RF5413_OB_5GHZ { 3, 247, 0 } 64362306a36Sopenharmony_ci#define AR5K_RF5413_DB_5GHZ { 3, 244, 0 } 64462306a36Sopenharmony_ci 64562306a36Sopenharmony_ci#define AR5K_RF5413_PWD_ICLOBUF2G { 3, 131, 3 } 64662306a36Sopenharmony_ci#define AR5K_RF5413_DERBY_CHAN_SEL_MODE { 1, 291, 2 } 64762306a36Sopenharmony_ci 64862306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_5413[] = { 64962306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF5413_OB_2GHZ}, 65062306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF5413_DB_2GHZ}, 65162306a36Sopenharmony_ci {6, AR5K_RF_OB_5GHZ, AR5K_RF5413_OB_5GHZ}, 65262306a36Sopenharmony_ci {6, AR5K_RF_DB_5GHZ, AR5K_RF5413_DB_5GHZ}, 65362306a36Sopenharmony_ci {6, AR5K_RF_PWD_ICLOBUF_2G, AR5K_RF5413_PWD_ICLOBUF2G}, 65462306a36Sopenharmony_ci {6, AR5K_RF_DERBY_CHAN_SEL_MODE, AR5K_RF5413_DERBY_CHAN_SEL_MODE}, 65562306a36Sopenharmony_ci}; 65662306a36Sopenharmony_ci 65762306a36Sopenharmony_ci/* Default mode specific settings */ 65862306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_5413[] = { 65962306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 66062306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 66162306a36Sopenharmony_ci { 2, 0x98d0, { 0x00000008, 0x00000008, 0x00000008 } }, 66262306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a000c0, 0x00e000c0, 0x00e000c0 } }, 66362306a36Sopenharmony_ci { 6, 0x989c, { 0x33000000, 0x33000000, 0x33000000 } }, 66462306a36Sopenharmony_ci { 6, 0x989c, { 0x01000000, 0x01000000, 0x01000000 } }, 66562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 66662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 66762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 66862306a36Sopenharmony_ci { 6, 0x989c, { 0x1f000000, 0x1f000000, 0x1f000000 } }, 66962306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 67062306a36Sopenharmony_ci { 6, 0x989c, { 0x00b80000, 0x00b80000, 0x00b80000 } }, 67162306a36Sopenharmony_ci { 6, 0x989c, { 0x00b70000, 0x00b70000, 0x00b70000 } }, 67262306a36Sopenharmony_ci { 6, 0x989c, { 0x00840000, 0x00840000, 0x00840000 } }, 67362306a36Sopenharmony_ci { 6, 0x989c, { 0x00980000, 0x00980000, 0x00980000 } }, 67462306a36Sopenharmony_ci { 6, 0x989c, { 0x00c00000, 0x00c00000, 0x00c00000 } }, 67562306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 67662306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 67762306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 67862306a36Sopenharmony_ci { 6, 0x989c, { 0x00ff0000, 0x00ff0000, 0x00ff0000 } }, 67962306a36Sopenharmony_ci { 6, 0x989c, { 0x00d70000, 0x00d70000, 0x00d70000 } }, 68062306a36Sopenharmony_ci { 6, 0x989c, { 0x00610000, 0x00610000, 0x00610000 } }, 68162306a36Sopenharmony_ci { 6, 0x989c, { 0x00fe0000, 0x00fe0000, 0x00fe0000 } }, 68262306a36Sopenharmony_ci { 6, 0x989c, { 0x00de0000, 0x00de0000, 0x00de0000 } }, 68362306a36Sopenharmony_ci { 6, 0x989c, { 0x007f0000, 0x007f0000, 0x007f0000 } }, 68462306a36Sopenharmony_ci { 6, 0x989c, { 0x043d0000, 0x043d0000, 0x043d0000 } }, 68562306a36Sopenharmony_ci { 6, 0x989c, { 0x00770000, 0x00770000, 0x00770000 } }, 68662306a36Sopenharmony_ci { 6, 0x989c, { 0x00440000, 0x00440000, 0x00440000 } }, 68762306a36Sopenharmony_ci { 6, 0x989c, { 0x00980000, 0x00980000, 0x00980000 } }, 68862306a36Sopenharmony_ci { 6, 0x989c, { 0x00100080, 0x00100080, 0x00100080 } }, 68962306a36Sopenharmony_ci { 6, 0x989c, { 0x0005c034, 0x0005c034, 0x0005c034 } }, 69062306a36Sopenharmony_ci { 6, 0x989c, { 0x003100f0, 0x003100f0, 0x003100f0 } }, 69162306a36Sopenharmony_ci { 6, 0x989c, { 0x000c011f, 0x000c011f, 0x000c011f } }, 69262306a36Sopenharmony_ci { 6, 0x989c, { 0x00510040, 0x00510040, 0x00510040 } }, 69362306a36Sopenharmony_ci { 6, 0x989c, { 0x005000da, 0x005000da, 0x005000da } }, 69462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 69562306a36Sopenharmony_ci { 6, 0x989c, { 0x00004044, 0x00004044, 0x00004044 } }, 69662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 69762306a36Sopenharmony_ci { 6, 0x989c, { 0x000060c0, 0x000060c0, 0x000060c0 } }, 69862306a36Sopenharmony_ci { 6, 0x989c, { 0x00002c00, 0x00003600, 0x00003600 } }, 69962306a36Sopenharmony_ci { 6, 0x98c8, { 0x00000403, 0x00040403, 0x00040403 } }, 70062306a36Sopenharmony_ci { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 70162306a36Sopenharmony_ci { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 70262306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 70362306a36Sopenharmony_ci}; 70462306a36Sopenharmony_ci 70562306a36Sopenharmony_ci 70662306a36Sopenharmony_ci 70762306a36Sopenharmony_ci/***************************\ 70862306a36Sopenharmony_ci* RF2425/RF2417 (Swan/Nala) * 70962306a36Sopenharmony_ci* AR2317 (Spider SoC) * 71062306a36Sopenharmony_ci\***************************/ 71162306a36Sopenharmony_ci 71262306a36Sopenharmony_ci/* BANK 2 len pos col */ 71362306a36Sopenharmony_ci#define AR5K_RF2425_RF_TURBO { 1, 1, 2 } 71462306a36Sopenharmony_ci 71562306a36Sopenharmony_ci/* BANK 6 len pos col */ 71662306a36Sopenharmony_ci#define AR5K_RF2425_OB_2GHZ { 3, 193, 0 } 71762306a36Sopenharmony_ci#define AR5K_RF2425_DB_2GHZ { 3, 190, 0 } 71862306a36Sopenharmony_ci 71962306a36Sopenharmony_cistatic const struct ath5k_rf_reg rf_regs_2425[] = { 72062306a36Sopenharmony_ci {2, AR5K_RF_TURBO, AR5K_RF2425_RF_TURBO}, 72162306a36Sopenharmony_ci {6, AR5K_RF_OB_2GHZ, AR5K_RF2425_OB_2GHZ}, 72262306a36Sopenharmony_ci {6, AR5K_RF_DB_2GHZ, AR5K_RF2425_DB_2GHZ}, 72362306a36Sopenharmony_ci}; 72462306a36Sopenharmony_ci 72562306a36Sopenharmony_ci/* Default mode specific settings 72662306a36Sopenharmony_ci */ 72762306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_2425[] = { 72862306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 72962306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 73062306a36Sopenharmony_ci { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 73162306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 73262306a36Sopenharmony_ci { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 73362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 73462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 73562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 73662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 73762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 73862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 73962306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 74062306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 74162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 74262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 74362306a36Sopenharmony_ci { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 74462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 74562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 74662306a36Sopenharmony_ci { 6, 0x989c, { 0x00100000, 0x00100000, 0x00100000 } }, 74762306a36Sopenharmony_ci { 6, 0x989c, { 0x00020000, 0x00020000, 0x00020000 } }, 74862306a36Sopenharmony_ci { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 74962306a36Sopenharmony_ci { 6, 0x989c, { 0x00f80000, 0x00f80000, 0x00f80000 } }, 75062306a36Sopenharmony_ci { 6, 0x989c, { 0x00e70000, 0x00e70000, 0x00e70000 } }, 75162306a36Sopenharmony_ci { 6, 0x989c, { 0x00140000, 0x00140000, 0x00140000 } }, 75262306a36Sopenharmony_ci { 6, 0x989c, { 0x00910040, 0x00910040, 0x00910040 } }, 75362306a36Sopenharmony_ci { 6, 0x989c, { 0x0007001a, 0x0007001a, 0x0007001a } }, 75462306a36Sopenharmony_ci { 6, 0x989c, { 0x00410000, 0x00410000, 0x00410000 } }, 75562306a36Sopenharmony_ci { 6, 0x989c, { 0x00810000, 0x00810060, 0x00810060 } }, 75662306a36Sopenharmony_ci { 6, 0x989c, { 0x00020800, 0x00020803, 0x00020803 } }, 75762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 75862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 75962306a36Sopenharmony_ci { 6, 0x989c, { 0x00001660, 0x00001660, 0x00001660 } }, 76062306a36Sopenharmony_ci { 6, 0x989c, { 0x00001688, 0x00001688, 0x00001688 } }, 76162306a36Sopenharmony_ci { 6, 0x98c4, { 0x00000001, 0x00000001, 0x00000001 } }, 76262306a36Sopenharmony_ci { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 76362306a36Sopenharmony_ci { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 76462306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 76562306a36Sopenharmony_ci}; 76662306a36Sopenharmony_ci 76762306a36Sopenharmony_ci/* 76862306a36Sopenharmony_ci * TODO: Handle the few differences with swan during 76962306a36Sopenharmony_ci * bank modification and get rid of this 77062306a36Sopenharmony_ci */ 77162306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_2317[] = { 77262306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 77362306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 77462306a36Sopenharmony_ci { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 77562306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 77662306a36Sopenharmony_ci { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 77762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 77862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 77962306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78062306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78762306a36Sopenharmony_ci { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 78862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 78962306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 79062306a36Sopenharmony_ci { 6, 0x989c, { 0x00100000, 0x00100000, 0x00100000 } }, 79162306a36Sopenharmony_ci { 6, 0x989c, { 0x00020000, 0x00020000, 0x00020000 } }, 79262306a36Sopenharmony_ci { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 79362306a36Sopenharmony_ci { 6, 0x989c, { 0x00f80000, 0x00f80000, 0x00f80000 } }, 79462306a36Sopenharmony_ci { 6, 0x989c, { 0x00e70000, 0x00e70000, 0x00e70000 } }, 79562306a36Sopenharmony_ci { 6, 0x989c, { 0x00140100, 0x00140100, 0x00140100 } }, 79662306a36Sopenharmony_ci { 6, 0x989c, { 0x00910040, 0x00910040, 0x00910040 } }, 79762306a36Sopenharmony_ci { 6, 0x989c, { 0x0007001a, 0x0007001a, 0x0007001a } }, 79862306a36Sopenharmony_ci { 6, 0x989c, { 0x00410000, 0x00410000, 0x00410000 } }, 79962306a36Sopenharmony_ci { 6, 0x989c, { 0x00810000, 0x00810060, 0x00810060 } }, 80062306a36Sopenharmony_ci { 6, 0x989c, { 0x00020800, 0x00020803, 0x00020803 } }, 80162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 80262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 80362306a36Sopenharmony_ci { 6, 0x989c, { 0x00001660, 0x00001660, 0x00001660 } }, 80462306a36Sopenharmony_ci { 6, 0x989c, { 0x00009688, 0x00009688, 0x00009688 } }, 80562306a36Sopenharmony_ci { 6, 0x98c4, { 0x00000001, 0x00000001, 0x00000001 } }, 80662306a36Sopenharmony_ci { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 80762306a36Sopenharmony_ci { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 80862306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 80962306a36Sopenharmony_ci}; 81062306a36Sopenharmony_ci 81162306a36Sopenharmony_ci/* 81262306a36Sopenharmony_ci * TODO: Handle the few differences with swan during 81362306a36Sopenharmony_ci * bank modification and get rid of this 81462306a36Sopenharmony_ci */ 81562306a36Sopenharmony_cistatic const struct ath5k_ini_rfbuffer rfb_2417[] = { 81662306a36Sopenharmony_ci /* BANK / C.R. A/XR B G */ 81762306a36Sopenharmony_ci { 1, 0x98d4, { 0x00000020, 0x00000020, 0x00000020 } }, 81862306a36Sopenharmony_ci { 2, 0x98d0, { 0x02001408, 0x02001408, 0x02001408 } }, 81962306a36Sopenharmony_ci { 3, 0x98dc, { 0x00a020c0, 0x00e020c0, 0x00e020c0 } }, 82062306a36Sopenharmony_ci { 6, 0x989c, { 0x10000000, 0x10000000, 0x10000000 } }, 82162306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82462306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82762306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82862306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 82962306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 83062306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 83162306a36Sopenharmony_ci { 6, 0x989c, { 0x002a0000, 0x002a0000, 0x002a0000 } }, 83262306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 83362306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 83462306a36Sopenharmony_ci { 6, 0x989c, { 0x00100000, 0x00100000, 0x00100000 } }, 83562306a36Sopenharmony_ci { 6, 0x989c, { 0x00020000, 0x00020000, 0x00020000 } }, 83662306a36Sopenharmony_ci { 6, 0x989c, { 0x00730000, 0x00730000, 0x00730000 } }, 83762306a36Sopenharmony_ci { 6, 0x989c, { 0x00f80000, 0x00f80000, 0x00f80000 } }, 83862306a36Sopenharmony_ci { 6, 0x989c, { 0x00e70000, 0x80e70000, 0x80e70000 } }, 83962306a36Sopenharmony_ci { 6, 0x989c, { 0x00140000, 0x00140000, 0x00140000 } }, 84062306a36Sopenharmony_ci { 6, 0x989c, { 0x00910040, 0x00910040, 0x00910040 } }, 84162306a36Sopenharmony_ci { 6, 0x989c, { 0x0007001a, 0x0207001a, 0x0207001a } }, 84262306a36Sopenharmony_ci { 6, 0x989c, { 0x00410000, 0x00410000, 0x00410000 } }, 84362306a36Sopenharmony_ci { 6, 0x989c, { 0x00810000, 0x00810060, 0x00810060 } }, 84462306a36Sopenharmony_ci { 6, 0x989c, { 0x00020800, 0x00020803, 0x00020803 } }, 84562306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 84662306a36Sopenharmony_ci { 6, 0x989c, { 0x00000000, 0x00000000, 0x00000000 } }, 84762306a36Sopenharmony_ci { 6, 0x989c, { 0x00001660, 0x00001660, 0x00001660 } }, 84862306a36Sopenharmony_ci { 6, 0x989c, { 0x00001688, 0x00001688, 0x00001688 } }, 84962306a36Sopenharmony_ci { 6, 0x98c4, { 0x00000001, 0x00000001, 0x00000001 } }, 85062306a36Sopenharmony_ci { 7, 0x989c, { 0x00006400, 0x00006400, 0x00006400 } }, 85162306a36Sopenharmony_ci { 7, 0x989c, { 0x00000800, 0x00000800, 0x00000800 } }, 85262306a36Sopenharmony_ci { 7, 0x98cc, { 0x0000000e, 0x0000000e, 0x0000000e } }, 85362306a36Sopenharmony_ci}; 854