Lines Matching +full:dual +full:- +full:radio

1 // SPDX-License-Identifier: GPL-2.0
13 struct rtl_hal *rtlhal = &rtlpriv->rtlhal; in rtl92du_phy_enable_anotherphy()
21 rtlhal->during_mac0init_radiob = false; in rtl92du_phy_enable_anotherphy()
22 rtlhal->during_mac1init_radioa = false; in rtl92du_phy_enable_anotherphy()
53 struct rtl_hal *rtlhal = &rtlpriv->rtlhal; in rtl92du_phy_powerdown_anotherphy()
59 rtlhal->during_mac0init_radiob = false; in rtl92du_phy_powerdown_anotherphy()
60 rtlhal->during_mac1init_radioa = false; in rtl92du_phy_powerdown_anotherphy()
64 * enabled, not power down radio A. in rtl92du_phy_powerdown_anotherphy()
69 /* power down RF radio A according to YuNan's advice. */ in rtl92du_phy_powerdown_anotherphy()
82 struct rtl_hal *rtlhal = &rtlpriv->rtlhal; in rtl92du_phy_rf6052_config()
83 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl92du_phy_rf6052_config()
90 if (rtlphy->rf_type == RF_1T1R) in rtl92du_phy_rf6052_config()
91 rtlphy->num_total_rfpath = 1; in rtl92du_phy_rf6052_config()
93 rtlphy->num_total_rfpath = 2; in rtl92du_phy_rf6052_config()
97 * Dual PHY mode: MAC0 use radio_a config 1st phy path_A, in rtl92du_phy_rf6052_config()
101 if (rtlhal->macphymode == DUALMAC_DUALPHY) { in rtl92du_phy_rf6052_config()
102 if (rtlhal->current_bandtype == BAND_ON_2_4G && in rtl92du_phy_rf6052_config()
103 rtlhal->interfaceindex == 0) { in rtl92du_phy_rf6052_config()
106 rtlphy->num_total_rfpath = 2; in rtl92du_phy_rf6052_config()
114 } else if (rtlhal->current_bandtype == BAND_ON_5G && in rtl92du_phy_rf6052_config()
115 rtlhal->interfaceindex == 1) { in rtl92du_phy_rf6052_config()
118 rtlphy->num_total_rfpath = 2; in rtl92du_phy_rf6052_config()
126 } else if (rtlhal->interfaceindex == 1) { in rtl92du_phy_rf6052_config()
132 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92du_phy_rf6052_config()
136 rtlhal->during_mac1init_radioa = true; in rtl92du_phy_rf6052_config()
139 rtlhal->during_mac1init_radioa = false; in rtl92du_phy_rf6052_config()
143 rtlphy->num_total_rfpath = 1; in rtl92du_phy_rf6052_config()
148 rtlhal->during_mac0init_radiob = false; in rtl92du_phy_rf6052_config()
150 rtlhal->during_mac0init_radiob = true; in rtl92du_phy_rf6052_config()
155 rtlphy->num_total_rfpath = 1; in rtl92du_phy_rf6052_config()
159 pphyreg = &rtlphy->phyreg_def[rfpath]; in rtl92du_phy_rf6052_config()
164 u4_regvalue = rtl_get_bbreg(hw, pphyreg->rfintfs, in rtl92du_phy_rf6052_config()
169 u4_regvalue = rtl_get_bbreg(hw, pphyreg->rfintfs, in rtl92du_phy_rf6052_config()
174 rtl_set_bbreg(hw, pphyreg->rfintfe, BRFSI_RFENV << 16, 0x1); in rtl92du_phy_rf6052_config()
176 rtl_set_bbreg(hw, pphyreg->rfintfo, BRFSI_RFENV, 0x1); in rtl92du_phy_rf6052_config()
180 rtl_set_bbreg(hw, pphyreg->rfhssi_para2, in rtl92du_phy_rf6052_config()
183 rtl_set_bbreg(hw, pphyreg->rfhssi_para2, B3WIREDATALENGTH, 0x0); in rtl92du_phy_rf6052_config()
211 rtl_set_bbreg(hw, pphyreg->rfintfs, BRFSI_RFENV, in rtl92du_phy_rf6052_config()
216 rtl_set_bbreg(hw, pphyreg->rfintfs, BRFSI_RFENV << 16, in rtl92du_phy_rf6052_config()
223 "Radio[%d] Fail!!\n", rfpath); in rtl92du_phy_rf6052_config()
229 * not power down radio A. in rtl92du_phy_rf6052_config()
231 * not power down radio B. in rtl92du_phy_rf6052_config()
237 rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n"); in rtl92du_phy_rf6052_config()