rtlwifi: btcoex: add rfe_type parameter to btcoex
btcoex configure antenna by rfe_type that is RF type programmed in efuse. Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
b2283dad6b
commit
188b6b092e
|
@ -207,6 +207,14 @@ u8 rtl_get_hwpg_package_type(struct rtl_priv *rtlpriv)
|
||||||
return rtlhal->package_type;
|
return rtlhal->package_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static
|
||||||
|
u8 rtl_get_hwpg_rfe_type(struct rtl_priv *rtlpriv)
|
||||||
|
{
|
||||||
|
struct rtl_hal *rtlhal = rtl_hal(rtlpriv);
|
||||||
|
|
||||||
|
return rtlhal->rfe_type;
|
||||||
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
bool halbtc_is_hw_mailbox_exist(struct btc_coexist *btcoexist)
|
bool halbtc_is_hw_mailbox_exist(struct btc_coexist *btcoexist)
|
||||||
{
|
{
|
||||||
|
@ -1308,6 +1316,8 @@ bool exhalbtc_bind_bt_coex_withadapter(void *adapter)
|
||||||
RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,
|
RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,
|
||||||
"[BTCoex], Package Type = Non-TFBGA\n");
|
"[BTCoex], Package Type = Non-TFBGA\n");
|
||||||
|
|
||||||
|
btcoexist->board_info.rfe_type = rtl_get_hwpg_rfe_type(rtlpriv);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,6 +151,8 @@ struct btc_board_info {
|
||||||
u8 btdm_ant_pos;
|
u8 btdm_ant_pos;
|
||||||
u8 single_ant_path; /* current used for 8723b only, 1=>s0, 0=>s1 */
|
u8 single_ant_path; /* current used for 8723b only, 1=>s0, 0=>s1 */
|
||||||
bool tfbga_package;
|
bool tfbga_package;
|
||||||
|
|
||||||
|
u8 rfe_type;
|
||||||
};
|
};
|
||||||
|
|
||||||
enum btc_dbg_opcode {
|
enum btc_dbg_opcode {
|
||||||
|
|
Loading…
Reference in a new issue