1*6dacafeaSSujith Manoharan /* 2*6dacafeaSSujith Manoharan * Copyright (c) 2015 Qualcomm Atheros Inc. 3*6dacafeaSSujith Manoharan * 4*6dacafeaSSujith Manoharan * Permission to use, copy, modify, and/or distribute this software for any 5*6dacafeaSSujith Manoharan * purpose with or without fee is hereby granted, provided that the above 6*6dacafeaSSujith Manoharan * copyright notice and this permission notice appear in all copies. 7*6dacafeaSSujith Manoharan * 8*6dacafeaSSujith Manoharan * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9*6dacafeaSSujith Manoharan * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10*6dacafeaSSujith Manoharan * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11*6dacafeaSSujith Manoharan * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12*6dacafeaSSujith Manoharan * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13*6dacafeaSSujith Manoharan * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14*6dacafeaSSujith Manoharan * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15*6dacafeaSSujith Manoharan */ 16*6dacafeaSSujith Manoharan 17*6dacafeaSSujith Manoharan #ifndef REG_AIC_H 18*6dacafeaSSujith Manoharan #define REG_AIC_H 19*6dacafeaSSujith Manoharan 20*6dacafeaSSujith Manoharan #define AR_SM_BASE 0xa200 21*6dacafeaSSujith Manoharan #define AR_SM1_BASE 0xb200 22*6dacafeaSSujith Manoharan #define AR_AGC_BASE 0x9e00 23*6dacafeaSSujith Manoharan 24*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_0_B0 (AR_SM_BASE + 0x4b0) 25*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_1_B0 (AR_SM_BASE + 0x4b4) 26*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_2_B0 (AR_SM_BASE + 0x4b8) 27*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_3_B0 (AR_SM_BASE + 0x4bc) 28*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_4_B0 (AR_SM_BASE + 0x4c0) 29*6dacafeaSSujith Manoharan 30*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STAT_0_B0 (AR_SM_BASE + 0x4c4) 31*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STAT_1_B0 (AR_SM_BASE + 0x4c8) 32*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STAT_2_B0 (AR_SM_BASE + 0x4cc) 33*6dacafeaSSujith Manoharan 34*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_0_B1 (AR_SM1_BASE + 0x4b0) 35*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_1_B1 (AR_SM1_BASE + 0x4b4) 36*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CTRL_4_B1 (AR_SM1_BASE + 0x4c0) 37*6dacafeaSSujith Manoharan 38*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STAT_0_B1 (AR_SM1_BASE + 0x4c4) 39*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STAT_1_B1 (AR_SM1_BASE + 0x4c8) 40*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STAT_2_B1 (AR_SM1_BASE + 0x4cc) 41*6dacafeaSSujith Manoharan 42*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_ADDR_B0 (AR_SM_BASE + 0x5f0) 43*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_DATA_B0 (AR_SM_BASE + 0x5f4) 44*6dacafeaSSujith Manoharan 45*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_ADDR_B1 (AR_SM1_BASE + 0x5f0) 46*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_DATA_B1 (AR_SM1_BASE + 0x5f4) 47*6dacafeaSSujith Manoharan 48*6dacafeaSSujith Manoharan #define AR_PHY_BT_COEX_4 (AR_AGC_BASE + 0x60) 49*6dacafeaSSujith Manoharan #define AR_PHY_BT_COEX_5 (AR_AGC_BASE + 0x64) 50*6dacafeaSSujith Manoharan 51*6dacafeaSSujith Manoharan /* AIC fields */ 52*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_ENABLE 0x80000000 53*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_ENABLE_S 31 54*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_MAX_HOP_COUNT 0x7F000000 55*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_MAX_HOP_COUNT_S 24 56*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_MIN_VALID_COUNT 0x00FE0000 57*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_MIN_VALID_COUNT_S 17 58*6dacafeaSSujith Manoharan #define AR_PHY_AIC_F_WLAN 0x0001FC00 59*6dacafeaSSujith Manoharan #define AR_PHY_AIC_F_WLAN_S 10 60*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_CH_VALID_RESET 0x00000200 61*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_CH_VALID_RESET_S 9 62*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ENABLE 0x00000100 63*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ENABLE_S 8 64*6dacafeaSSujith Manoharan #define AR_PHY_AIC_BTTX_PWR_THR 0x000000FE 65*6dacafeaSSujith Manoharan #define AR_PHY_AIC_BTTX_PWR_THR_S 1 66*6dacafeaSSujith Manoharan #define AR_PHY_AIC_ENABLE 0x00000001 67*6dacafeaSSujith Manoharan #define AR_PHY_AIC_ENABLE_S 0 68*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_BT_REF_DELAY 0x00F00000 69*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_BT_REF_DELAY_S 20 70*6dacafeaSSujith Manoharan #define AR_PHY_AIC_BT_IDLE_CFG 0x00080000 71*6dacafeaSSujith Manoharan #define AR_PHY_AIC_BT_IDLE_CFG_S 19 72*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STDBY_COND 0x00060000 73*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STDBY_COND_S 17 74*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STDBY_ROT_ATT_DB 0x0001F800 75*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STDBY_ROT_ATT_DB_S 11 76*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STDBY_COM_ATT_DB 0x00000700 77*6dacafeaSSujith Manoharan #define AR_PHY_AIC_STDBY_COM_ATT_DB_S 8 78*6dacafeaSSujith Manoharan #define AR_PHY_AIC_RSSI_MAX 0x000000F0 79*6dacafeaSSujith Manoharan #define AR_PHY_AIC_RSSI_MAX_S 4 80*6dacafeaSSujith Manoharan #define AR_PHY_AIC_RSSI_MIN 0x0000000F 81*6dacafeaSSujith Manoharan #define AR_PHY_AIC_RSSI_MIN_S 0 82*6dacafeaSSujith Manoharan #define AR_PHY_AIC_RADIO_DELAY 0x7F000000 83*6dacafeaSSujith Manoharan #define AR_PHY_AIC_RADIO_DELAY_S 24 84*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_STEP_SIZE_CORR 0x00F00000 85*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_STEP_SIZE_CORR_S 20 86*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ROT_IDX_CORR 0x000F8000 87*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ROT_IDX_CORR_S 15 88*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_CONV_CHECK_FACTOR 0x00006000 89*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_CONV_CHECK_FACTOR_S 13 90*6dacafeaSSujith Manoharan #define AR_PHY_AIC_ROT_IDX_COUNT_MAX 0x00001C00 91*6dacafeaSSujith Manoharan #define AR_PHY_AIC_ROT_IDX_COUNT_MAX_S 10 92*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_SYNTH_TOGGLE 0x00000200 93*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_SYNTH_TOGGLE_S 9 94*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_SYNTH_AFTER_BTRX 0x00000100 95*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_SYNTH_AFTER_BTRX_S 8 96*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_SYNTH_SETTLING 0x000000FF 97*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_SYNTH_SETTLING_S 0 98*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_MAX_HOP_COUNT 0x07F00000 99*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_MAX_HOP_COUNT_S 20 100*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_MIN_STALE_COUNT 0x000FE000 101*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_MIN_STALE_COUNT_S 13 102*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_PWR_EST_LONG 0x00001000 103*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_PWR_EST_LONG_S 12 104*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_PD_TALLY_SCALING 0x00000C00 105*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_PD_TALLY_SCALING_S 10 106*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_PERF_THR 0x000003E0 107*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_PERF_THR_S 5 108*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_TARGET_MAG_SETTING 0x00000018 109*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_TARGET_MAG_SETTING_S 3 110*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_PERF_CHECK_FACTOR 0x00000006 111*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_PERF_CHECK_FACTOR_S 1 112*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_PWR_EST_LONG 0x00000001 113*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_PWR_EST_LONG_S 0 114*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_DONE 0x80000000 115*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_DONE_S 31 116*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_ACTIVE 0x40000000 117*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_ACTIVE_S 30 118*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MEAS_COUNT 0x3F000000 119*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MEAS_COUNT_S 24 120*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ANT_ISO_EST 0x00FC0000 121*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ANT_ISO_EST_S 18 122*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_HOP_COUNT 0x0003F800 123*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_HOP_COUNT_S 11 124*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_VALID_COUNT 0x000007F0 125*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_VALID_COUNT_S 4 126*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_BT_TOO_WEAK_ERR 0x00000008 127*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_BT_TOO_WEAK_ERR_S 3 128*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_BT_TOO_STRONG_ERR 0x00000004 129*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_BT_TOO_STRONG_ERR_S 2 130*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_DONE 0x00000002 131*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_DONE_S 1 132*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ACTIVE 0x00000001 133*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ACTIVE_S 0 134*6dacafeaSSujith Manoharan 135*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MEAS_MAG_MIN 0xFFC00000 136*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MEAS_MAG_MIN_S 22 137*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_STALE_COUNT 0x003F8000 138*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_STALE_COUNT_S 15 139*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_HOP_COUNT 0x00007F00 140*6dacafeaSSujith Manoharan #define AR_PHY_AIC_MON_HOP_COUNT_S 8 141*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_AIC_SM 0x000000F8 142*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_AIC_SM_S 3 143*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SM 0x00000007 144*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SM_S 0 145*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_VALID 0x00000001 146*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_VALID_S 0 147*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_ROT_QUAD_ATT_DB 0x0000007E 148*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_ROT_QUAD_ATT_DB_S 1 149*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_VGA_QUAD_SIGN 0x00000080 150*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_VGA_QUAD_SIGN_S 7 151*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_ROT_DIR_ATT_DB 0x00003F00 152*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_ROT_DIR_ATT_DB_S 8 153*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_VGA_DIR_SIGN 0x00004000 154*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_VGA_DIR_SIGN_S 14 155*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_COM_ATT_6DB 0x00038000 156*6dacafeaSSujith Manoharan #define AR_PHY_AIC_SRAM_COM_ATT_6DB_S 15 157*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ROT_ATT_DB_EST_ISO 0x0000E000 158*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ROT_ATT_DB_EST_ISO_S 13 159*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_COM_ATT_DB_EST_ISO 0x00001E00 160*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_COM_ATT_DB_EST_ISO_S 9 161*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ISO_EST_INIT_SETTING 0x000001F8 162*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_ISO_EST_INIT_SETTING_S 3 163*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_COM_ATT_DB_BACKOFF 0x00000006 164*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_COM_ATT_DB_BACKOFF_S 1 165*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_COM_ATT_DB_FIXED 0x00000001 166*6dacafeaSSujith Manoharan #define AR_PHY_AIC_CAL_COM_ATT_DB_FIXED_S 0 167*6dacafeaSSujith Manoharan 168*6dacafeaSSujith Manoharan #endif /* REG_AIC_H */ 169