Path: blob/main/sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/phyreg_n.h
178703 views
// SPDX-License-Identifier: ISC1/*2* Copyright (c) 2010 Broadcom Corporation3*/45#define NPHY_TBL_ID_GAIN1 06#define NPHY_TBL_ID_GAIN2 17#define NPHY_TBL_ID_GAINBITS1 28#define NPHY_TBL_ID_GAINBITS2 39#define NPHY_TBL_ID_GAINLIMIT 410#define NPHY_TBL_ID_WRSSIGainLimit 511#define NPHY_TBL_ID_RFSEQ 712#define NPHY_TBL_ID_AFECTRL 813#define NPHY_TBL_ID_ANTSWCTRLLUT 914#define NPHY_TBL_ID_IQLOCAL 1515#define NPHY_TBL_ID_NOISEVAR 1616#define NPHY_TBL_ID_SAMPLEPLAY 1717#define NPHY_TBL_ID_CORE1TXPWRCTL 2618#define NPHY_TBL_ID_CORE2TXPWRCTL 2719#define NPHY_TBL_ID_CMPMETRICDATAWEIGHTTBL 302021#define NPHY_TBL_ID_EPSILONTBL0 3122#define NPHY_TBL_ID_SCALARTBL0 3223#define NPHY_TBL_ID_EPSILONTBL1 3324#define NPHY_TBL_ID_SCALARTBL1 342526#define NPHY_TO_BPHY_OFF 0xc002728#define NPHY_BandControl_currentBand 0x000129#define RFCC_CHIP0_PU 0x040030#define RFCC_POR_FORCE 0x004031#define RFCC_OE_POR_FORCE 0x008032#define NPHY_RfctrlIntc_override_OFF 033#define NPHY_RfctrlIntc_override_TRSW 134#define NPHY_RfctrlIntc_override_PA 235#define NPHY_RfctrlIntc_override_EXT_LNA_PU 336#define NPHY_RfctrlIntc_override_EXT_LNA_GAIN 437#define RIFS_ENABLE 0x8038#define BPHY_BAND_SEL_UP20 0x1039#define NPHY_MLenable 0x024041#define NPHY_RfseqMode_CoreActv_override 0x000142#define NPHY_RfseqMode_Trigger_override 0x000243#define NPHY_RfseqCoreActv_TxRxChain0 (0x11)44#define NPHY_RfseqCoreActv_TxRxChain1 (0x22)4546#define NPHY_RfseqTrigger_rx2tx 0x000147#define NPHY_RfseqTrigger_tx2rx 0x000248#define NPHY_RfseqTrigger_updategainh 0x000449#define NPHY_RfseqTrigger_updategainl 0x000850#define NPHY_RfseqTrigger_updategainu 0x001051#define NPHY_RfseqTrigger_reset2rx 0x002052#define NPHY_RfseqStatus_rx2tx 0x000153#define NPHY_RfseqStatus_tx2rx 0x000254#define NPHY_RfseqStatus_updategainh 0x000455#define NPHY_RfseqStatus_updategainl 0x000856#define NPHY_RfseqStatus_updategainu 0x001057#define NPHY_RfseqStatus_reset2rx 0x002058#define NPHY_ClassifierCtrl_cck_en 0x159#define NPHY_ClassifierCtrl_ofdm_en 0x260#define NPHY_ClassifierCtrl_waited_en 0x461#define NPHY_IQFlip_ADC1 0x000162#define NPHY_IQFlip_ADC2 0x001063#define NPHY_sampleCmd_STOP 0x00026465#define RX_GF_OR_MM 0x000466#define RX_GF_MM_AUTO 0x01006768#define NPHY_iqloCalCmdGctl_IQLO_CAL_EN 0x80006970#define NPHY_IqestCmd_iqstart 0x171#define NPHY_IqestCmd_iqMode 0x27273#define NPHY_TxPwrCtrlCmd_pwrIndex_init 0x4074#define NPHY_TxPwrCtrlCmd_pwrIndex_init_rev7 0x197576#define PRIM_SEL_UP20 0x80007778#define NPHY_RFSEQ_RX2TX 0x079#define NPHY_RFSEQ_TX2RX 0x180#define NPHY_RFSEQ_RESET2RX 0x281#define NPHY_RFSEQ_UPDATEGAINH 0x382#define NPHY_RFSEQ_UPDATEGAINL 0x483#define NPHY_RFSEQ_UPDATEGAINU 0x58485#define NPHY_RFSEQ_CMD_NOP 0x086#define NPHY_RFSEQ_CMD_RXG_FBW 0x187#define NPHY_RFSEQ_CMD_TR_SWITCH 0x288#define NPHY_RFSEQ_CMD_EXT_PA 0x389#define NPHY_RFSEQ_CMD_RXPD_TXPD 0x490#define NPHY_RFSEQ_CMD_TX_GAIN 0x591#define NPHY_RFSEQ_CMD_RX_GAIN 0x692#define NPHY_RFSEQ_CMD_SET_HPF_BW 0x793#define NPHY_RFSEQ_CMD_CLR_HIQ_DIS 0x894#define NPHY_RFSEQ_CMD_END 0xf9596#define NPHY_REV3_RFSEQ_CMD_NOP 0x097#define NPHY_REV3_RFSEQ_CMD_RXG_FBW 0x198#define NPHY_REV3_RFSEQ_CMD_TR_SWITCH 0x299#define NPHY_REV3_RFSEQ_CMD_INT_PA_PU 0x3100#define NPHY_REV3_RFSEQ_CMD_EXT_PA 0x4101#define NPHY_REV3_RFSEQ_CMD_RXPD_TXPD 0x5102#define NPHY_REV3_RFSEQ_CMD_TX_GAIN 0x6103#define NPHY_REV3_RFSEQ_CMD_RX_GAIN 0x7104#define NPHY_REV3_RFSEQ_CMD_CLR_HIQ_DIS 0x8105#define NPHY_REV3_RFSEQ_CMD_SET_HPF_H_HPC 0x9106#define NPHY_REV3_RFSEQ_CMD_SET_LPF_H_HPC 0xa107#define NPHY_REV3_RFSEQ_CMD_SET_HPF_M_HPC 0xb108#define NPHY_REV3_RFSEQ_CMD_SET_LPF_M_HPC 0xc109#define NPHY_REV3_RFSEQ_CMD_SET_HPF_L_HPC 0xd110#define NPHY_REV3_RFSEQ_CMD_SET_LPF_L_HPC 0xe111#define NPHY_REV3_RFSEQ_CMD_CLR_RXRX_BIAS 0xf112#define NPHY_REV3_RFSEQ_CMD_END 0x1f113114#define NPHY_RSSI_SEL_W1 0x0115#define NPHY_RSSI_SEL_W2 0x1116#define NPHY_RSSI_SEL_NB 0x2117#define NPHY_RSSI_SEL_IQ 0x3118#define NPHY_RSSI_SEL_TSSI_2G 0x4119#define NPHY_RSSI_SEL_TSSI_5G 0x5120#define NPHY_RSSI_SEL_TBD 0x6121122#define NPHY_RAIL_I 0x0123#define NPHY_RAIL_Q 0x1124125#define NPHY_FORCESIG_DECODEGATEDCLKS 0x8126127#define NPHY_REV7_RfctrlOverride_cmd_rxrf_pu 0x0128#define NPHY_REV7_RfctrlOverride_cmd_rx_pu 0x1129#define NPHY_REV7_RfctrlOverride_cmd_tx_pu 0x2130#define NPHY_REV7_RfctrlOverride_cmd_rxgain 0x3131#define NPHY_REV7_RfctrlOverride_cmd_txgain 0x4132133#define NPHY_REV7_RXGAINCODE_RFMXGAIN_MASK 0x000ff134#define NPHY_REV7_RXGAINCODE_LPFGAIN_MASK 0x0ff00135#define NPHY_REV7_RXGAINCODE_DVGAGAIN_MASK 0xf0000136137#define NPHY_REV7_TXGAINCODE_TGAIN_MASK 0x7fff138#define NPHY_REV7_TXGAINCODE_LPFGAIN_MASK 0x8000139#define NPHY_REV7_TXGAINCODE_BIQ0GAIN_SHIFT 14140141#define NPHY_REV7_RFCTRLOVERRIDE_ID0 0x0142#define NPHY_REV7_RFCTRLOVERRIDE_ID1 0x1143#define NPHY_REV7_RFCTRLOVERRIDE_ID2 0x2144145#define NPHY_IqestIqAccLo(core) ((core == 0) ? 0x12c : 0x134)146147#define NPHY_IqestIqAccHi(core) ((core == 0) ? 0x12d : 0x135)148149#define NPHY_IqestipwrAccLo(core) ((core == 0) ? 0x12e : 0x136)150151#define NPHY_IqestipwrAccHi(core) ((core == 0) ? 0x12f : 0x137)152153#define NPHY_IqestqpwrAccLo(core) ((core == 0) ? 0x130 : 0x138)154155#define NPHY_IqestqpwrAccHi(core) ((core == 0) ? 0x131 : 0x139)156157158