0001
0002
0003
0004
0005
0006 #define NPHY_TBL_ID_GAIN1 0
0007 #define NPHY_TBL_ID_GAIN2 1
0008 #define NPHY_TBL_ID_GAINBITS1 2
0009 #define NPHY_TBL_ID_GAINBITS2 3
0010 #define NPHY_TBL_ID_GAINLIMIT 4
0011 #define NPHY_TBL_ID_WRSSIGainLimit 5
0012 #define NPHY_TBL_ID_RFSEQ 7
0013 #define NPHY_TBL_ID_AFECTRL 8
0014 #define NPHY_TBL_ID_ANTSWCTRLLUT 9
0015 #define NPHY_TBL_ID_IQLOCAL 15
0016 #define NPHY_TBL_ID_NOISEVAR 16
0017 #define NPHY_TBL_ID_SAMPLEPLAY 17
0018 #define NPHY_TBL_ID_CORE1TXPWRCTL 26
0019 #define NPHY_TBL_ID_CORE2TXPWRCTL 27
0020 #define NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL 30
0021
0022 #define NPHY_TBL_ID_EPSILONTBL0 31
0023 #define NPHY_TBL_ID_SCALARTBL0 32
0024 #define NPHY_TBL_ID_EPSILONTBL1 33
0025 #define NPHY_TBL_ID_SCALARTBL1 34
0026
0027 #define NPHY_TO_BPHY_OFF 0xc00
0028
0029 #define NPHY_BandControl_currentBand 0x0001
0030 #define RFCC_CHIP0_PU 0x0400
0031 #define RFCC_POR_FORCE 0x0040
0032 #define RFCC_OE_POR_FORCE 0x0080
0033 #define NPHY_RfctrlIntc_override_OFF 0
0034 #define NPHY_RfctrlIntc_override_TRSW 1
0035 #define NPHY_RfctrlIntc_override_PA 2
0036 #define NPHY_RfctrlIntc_override_EXT_LNA_PU 3
0037 #define NPHY_RfctrlIntc_override_EXT_LNA_GAIN 4
0038 #define RIFS_ENABLE 0x80
0039 #define BPHY_BAND_SEL_UP20 0x10
0040 #define NPHY_MLenable 0x02
0041
0042 #define NPHY_RfseqMode_CoreActv_override 0x0001
0043 #define NPHY_RfseqMode_Trigger_override 0x0002
0044 #define NPHY_RfseqCoreActv_TxRxChain0 (0x11)
0045 #define NPHY_RfseqCoreActv_TxRxChain1 (0x22)
0046
0047 #define NPHY_RfseqTrigger_rx2tx 0x0001
0048 #define NPHY_RfseqTrigger_tx2rx 0x0002
0049 #define NPHY_RfseqTrigger_updategainh 0x0004
0050 #define NPHY_RfseqTrigger_updategainl 0x0008
0051 #define NPHY_RfseqTrigger_updategainu 0x0010
0052 #define NPHY_RfseqTrigger_reset2rx 0x0020
0053 #define NPHY_RfseqStatus_rx2tx 0x0001
0054 #define NPHY_RfseqStatus_tx2rx 0x0002
0055 #define NPHY_RfseqStatus_updategainh 0x0004
0056 #define NPHY_RfseqStatus_updategainl 0x0008
0057 #define NPHY_RfseqStatus_updategainu 0x0010
0058 #define NPHY_RfseqStatus_reset2rx 0x0020
0059 #define NPHY_ClassifierCtrl_cck_en 0x1
0060 #define NPHY_ClassifierCtrl_ofdm_en 0x2
0061 #define NPHY_ClassifierCtrl_waited_en 0x4
0062 #define NPHY_IQFlip_ADC1 0x0001
0063 #define NPHY_IQFlip_ADC2 0x0010
0064 #define NPHY_sampleCmd_STOP 0x0002
0065
0066 #define RX_GF_OR_MM 0x0004
0067 #define RX_GF_MM_AUTO 0x0100
0068
0069 #define NPHY_iqloCalCmdGctl_IQLO_CAL_EN 0x8000
0070
0071 #define NPHY_IqestCmd_iqstart 0x1
0072 #define NPHY_IqestCmd_iqMode 0x2
0073
0074 #define NPHY_TxPwrCtrlCmd_pwrIndex_init 0x40
0075 #define NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7 0x19
0076
0077 #define PRIM_SEL_UP20 0x8000
0078
0079 #define NPHY_RFSEQ_RX2TX 0x0
0080 #define NPHY_RFSEQ_TX2RX 0x1
0081 #define NPHY_RFSEQ_RESET2RX 0x2
0082 #define NPHY_RFSEQ_UPDATEGAINH 0x3
0083 #define NPHY_RFSEQ_UPDATEGAINL 0x4
0084 #define NPHY_RFSEQ_UPDATEGAINU 0x5
0085
0086 #define NPHY_RFSEQ_CMD_NOP 0x0
0087 #define NPHY_RFSEQ_CMD_RXG_FBW 0x1
0088 #define NPHY_RFSEQ_CMD_TR_SWITCH 0x2
0089 #define NPHY_RFSEQ_CMD_EXT_PA 0x3
0090 #define NPHY_RFSEQ_CMD_RXPD_TXPD 0x4
0091 #define NPHY_RFSEQ_CMD_TX_GAIN 0x5
0092 #define NPHY_RFSEQ_CMD_RX_GAIN 0x6
0093 #define NPHY_RFSEQ_CMD_SET_HPF_BW 0x7
0094 #define NPHY_RFSEQ_CMD_CLR_HIQ_DIS 0x8
0095 #define NPHY_RFSEQ_CMD_END 0xf
0096
0097 #define NPHY_REV3_RFSEQ_CMD_NOP 0x0
0098 #define NPHY_REV3_RFSEQ_CMD_RXG_FBW 0x1
0099 #define NPHY_REV3_RFSEQ_CMD_TR_SWITCH 0x2
0100 #define NPHY_REV3_RFSEQ_CMD_INT_PA_PU 0x3
0101 #define NPHY_REV3_RFSEQ_CMD_EXT_PA 0x4
0102 #define NPHY_REV3_RFSEQ_CMD_RXPD_TXPD 0x5
0103 #define NPHY_REV3_RFSEQ_CMD_TX_GAIN 0x6
0104 #define NPHY_REV3_RFSEQ_CMD_RX_GAIN 0x7
0105 #define NPHY_REV3_RFSEQ_CMD_CLR_HIQ_DIS 0x8
0106 #define NPHY_REV3_RFSEQ_CMD_SET_HPF_H_HPC 0x9
0107 #define NPHY_REV3_RFSEQ_CMD_SET_LPF_H_HPC 0xa
0108 #define NPHY_REV3_RFSEQ_CMD_SET_HPF_M_HPC 0xb
0109 #define NPHY_REV3_RFSEQ_CMD_SET_LPF_M_HPC 0xc
0110 #define NPHY_REV3_RFSEQ_CMD_SET_HPF_L_HPC 0xd
0111 #define NPHY_REV3_RFSEQ_CMD_SET_LPF_L_HPC 0xe
0112 #define NPHY_REV3_RFSEQ_CMD_CLR_RXRX_BIAS 0xf
0113 #define NPHY_REV3_RFSEQ_CMD_END 0x1f
0114
0115 #define NPHY_RSSI_SEL_W1 0x0
0116 #define NPHY_RSSI_SEL_W2 0x1
0117 #define NPHY_RSSI_SEL_NB 0x2
0118 #define NPHY_RSSI_SEL_IQ 0x3
0119 #define NPHY_RSSI_SEL_TSSI_2G 0x4
0120 #define NPHY_RSSI_SEL_TSSI_5G 0x5
0121 #define NPHY_RSSI_SEL_TBD 0x6
0122
0123 #define NPHY_RAIL_I 0x0
0124 #define NPHY_RAIL_Q 0x1
0125
0126 #define NPHY_FORCESIG_DECODEGATEDCLKS 0x8
0127
0128 #define NPHY_REV7_RfctrlOverride_cmd_rxrf_pu 0x0
0129 #define NPHY_REV7_RfctrlOverride_cmd_rx_pu 0x1
0130 #define NPHY_REV7_RfctrlOverride_cmd_tx_pu 0x2
0131 #define NPHY_REV7_RfctrlOverride_cmd_rxgain 0x3
0132 #define NPHY_REV7_RfctrlOverride_cmd_txgain 0x4
0133
0134 #define NPHY_REV7_RXGAINCODE_RFMXGAIN_MASK 0x000ff
0135 #define NPHY_REV7_RXGAINCODE_LPFGAIN_MASK 0x0ff00
0136 #define NPHY_REV7_RXGAINCODE_DVGAGAIN_MASK 0xf0000
0137
0138 #define NPHY_REV7_TXGAINCODE_TGAIN_MASK 0x7fff
0139 #define NPHY_REV7_TXGAINCODE_LPFGAIN_MASK 0x8000
0140 #define NPHY_REV7_TXGAINCODE_BIQ0GAIN_SHIFT 14
0141
0142 #define NPHY_REV7_RFCTRLOVERRIDE_ID0 0x0
0143 #define NPHY_REV7_RFCTRLOVERRIDE_ID1 0x1
0144 #define NPHY_REV7_RFCTRLOVERRIDE_ID2 0x2
0145
0146 #define NPHY_IqestIqAccLo(core) ((core == 0) ? 0x12c : 0x134)
0147
0148 #define NPHY_IqestIqAccHi(core) ((core == 0) ? 0x12d : 0x135)
0149
0150 #define NPHY_IqestipwrAccLo(core) ((core == 0) ? 0x12e : 0x136)
0151
0152 #define NPHY_IqestipwrAccHi(core) ((core == 0) ? 0x12f : 0x137)
0153
0154 #define NPHY_IqestqpwrAccLo(core) ((core == 0) ? 0x130 : 0x138)
0155
0156 #define NPHY_IqestqpwrAccHi(core) ((core == 0) ? 0x131 : 0x139)