rtw88: 8723d: Add mac/bb/rf/agc/power_limit tables

Add corresponding parameter tables for 8723D devices.
Since 8723D devices currently have only one RFE type, there is
only one entry in rtw8723d_rfe_defs.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200420055054.14592-6-yhchuang@realtek.com
This commit is contained in:
Ping-Ke Shih 2020-04-20 13:50:51 +08:00 committed by Kalle Valo
parent e0c27cdbbd
commit 9874f6851e
3 changed files with 1207 additions and 0 deletions

View File

@ -431,6 +431,11 @@ static const struct rtw_rf_sipi_addr rtw8723d_rf_sipi_addr[] = {
.hssi_2 = 0x82c, .lssi_read_pi = 0x8bc}, .hssi_2 = 0x82c, .lssi_read_pi = 0x8bc},
}; };
static const struct rtw_rfe_def rtw8723d_rfe_defs[] = {
[0] = { .phy_pg_tbl = &rtw8723d_bb_pg_tbl,
.txpwr_lmt_tbl = &rtw8723d_txpwr_lmt_tbl,},
};
struct rtw_chip_info rtw8723d_hw_spec = { struct rtw_chip_info rtw8723d_hw_spec = {
.ops = &rtw8723d_ops, .ops = &rtw8723d_ops,
.id = RTW_CHIP_TYPE_8723D, .id = RTW_CHIP_TYPE_8723D,
@ -456,6 +461,12 @@ struct rtw_chip_info rtw8723d_hw_spec = {
.rf_sipi_addr = {0x840, 0x844}, .rf_sipi_addr = {0x840, 0x844},
.rf_sipi_read_addr = rtw8723d_rf_sipi_addr, .rf_sipi_read_addr = rtw8723d_rf_sipi_addr,
.fix_rf_phy_num = 2, .fix_rf_phy_num = 2,
.mac_tbl = &rtw8723d_mac_tbl,
.agc_tbl = &rtw8723d_agc_tbl,
.bb_tbl = &rtw8723d_bb_tbl,
.rf_tbl = {&rtw8723d_rf_a_tbl},
.rfe_defs = rtw8723d_rfe_defs,
.rfe_defs_size = ARRAY_SIZE(rtw8723d_rfe_defs),
}; };
EXPORT_SYMBOL(rtw8723d_hw_spec); EXPORT_SYMBOL(rtw8723d_hw_spec);

File diff suppressed because it is too large Load Diff

View File

@ -5,4 +5,11 @@
#ifndef __RTW8723D_TABLE_H__ #ifndef __RTW8723D_TABLE_H__
#define __RTW8723D_TABLE_H__ #define __RTW8723D_TABLE_H__
extern const struct rtw_table rtw8723d_mac_tbl;
extern const struct rtw_table rtw8723d_agc_tbl;
extern const struct rtw_table rtw8723d_bb_tbl;
extern const struct rtw_table rtw8723d_bb_pg_tbl;
extern const struct rtw_table rtw8723d_rf_a_tbl;
extern const struct rtw_table rtw8723d_txpwr_lmt_tbl;
#endif #endif