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

1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
16 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_enable_anotherphy()
23 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_enable_anotherphy()
24 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_enable_anotherphy()
47 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_powerdown_anotherphy()
53 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_powerdown_anotherphy()
54 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_powerdown_anotherphy()
57 * enabled, not power down radio A. */ in rtl92d_phy_powerdown_anotherphy()
61 /* power down RF radio A according to YuNan's advice. */ in rtl92d_phy_powerdown_anotherphy()
71 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92d_phy_rf6052_config()
73 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_rf6052_config()
81 if (rtlphy->rf_type == RF_1T1R) in rtl92d_phy_rf6052_config()
82 rtlphy->num_total_rfpath = 1; in rtl92d_phy_rf6052_config()
84 rtlphy->num_total_rfpath = 2; in rtl92d_phy_rf6052_config()
88 /* Dual PHY mode:MAC0 use radio_a config 1st phy path_A, */ in rtl92d_phy_rf6052_config()
91 if (rtlhal->macphymode == DUALMAC_DUALPHY) { in rtl92d_phy_rf6052_config()
92 if (rtlhal->current_bandtype == BAND_ON_2_4G && in rtl92d_phy_rf6052_config()
93 rtlhal->interfaceindex == 0) { in rtl92d_phy_rf6052_config()
97 rtlphy->num_total_rfpath = 2; in rtl92d_phy_rf6052_config()
104 } else if (rtlhal->current_bandtype == BAND_ON_5G && in rtl92d_phy_rf6052_config()
105 rtlhal->interfaceindex == 1) { in rtl92d_phy_rf6052_config()
109 rtlphy->num_total_rfpath = 2; in rtl92d_phy_rf6052_config()
116 } else if (rtlhal->interfaceindex == 1) { in rtl92d_phy_rf6052_config()
122 for (rfpath = 0; rfpath < rtlphy->num_total_rfpath; rfpath++) { in rtl92d_phy_rf6052_config()
126 rtlhal->during_mac1init_radioa = true; in rtl92d_phy_rf6052_config()
129 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_rf6052_config()
133 rtlphy->num_total_rfpath = 1; in rtl92d_phy_rf6052_config()
138 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_rf6052_config()
140 rtlhal->during_mac0init_radiob = true; in rtl92d_phy_rf6052_config()
145 rtlphy->num_total_rfpath = 1; in rtl92d_phy_rf6052_config()
148 pphyreg = &rtlphy->phyreg_def[rfpath]; in rtl92d_phy_rf6052_config()
152 u4_regvalue = rtl_get_bbreg(hw, pphyreg->rfintfs, in rtl92d_phy_rf6052_config()
157 u4_regvalue = rtl_get_bbreg(hw, pphyreg->rfintfs, in rtl92d_phy_rf6052_config()
161 rtl_set_bbreg(hw, pphyreg->rfintfe, BRFSI_RFENV << 16, 0x1); in rtl92d_phy_rf6052_config()
163 rtl_set_bbreg(hw, pphyreg->rfintfo, BRFSI_RFENV, 0x1); in rtl92d_phy_rf6052_config()
167 rtl_set_bbreg(hw, pphyreg->rfhssi_para2, in rtl92d_phy_rf6052_config()
171 rtl_set_bbreg(hw, pphyreg->rfhssi_para2, B3WIREDATALENGTH, 0x0); in rtl92d_phy_rf6052_config()
197 rtl_set_bbreg(hw, pphyreg->rfintfs, BRFSI_RFENV, in rtl92d_phy_rf6052_config()
202 rtl_set_bbreg(hw, pphyreg->rfintfs, BRFSI_RFENV << 16, in rtl92d_phy_rf6052_config()
208 "Radio[%d] Fail!!\n", rfpath); in rtl92d_phy_rf6052_config()
215 * not power down radio A. */ in rtl92d_phy_rf6052_config()
217 * not power down radio B. */ in rtl92d_phy_rf6052_config()
222 rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n"); in rtl92d_phy_rf6052_config()