Commit 6cf2086f authored by Tzu-En Huang's avatar Tzu-En Huang Committed by Kalle Valo

rtw88: 8821c: add dig related settings

To improve user experience in field, we need DIG to adjust RX initial
gain depends on field situation.

Define the register addresses for 8821c.
Reviewed-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarTzu-En Huang <tehuang@realtek.com>
Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200616091625.26489-4-yhchuang@realtek.com
parent ad5f411b
...@@ -579,6 +579,10 @@ static const struct rtw_rfe_def rtw8821c_rfe_defs[] = { ...@@ -579,6 +579,10 @@ static const struct rtw_rfe_def rtw8821c_rfe_defs[] = {
[0] = RTW_DEF_RFE(8821c, 0, 0), [0] = RTW_DEF_RFE(8821c, 0, 0),
}; };
static struct rtw_hw_reg rtw8821c_dig[] = {
[0] = { .addr = 0xc50, .mask = 0x7f },
};
static const struct rtw_ltecoex_addr rtw8821c_ltecoex_addr = { static const struct rtw_ltecoex_addr rtw8821c_ltecoex_addr = {
.ctrl = LTECOEX_ACCESS_CTRL, .ctrl = LTECOEX_ACCESS_CTRL,
.wdata = LTECOEX_WRITE_DATA, .wdata = LTECOEX_WRITE_DATA,
...@@ -660,6 +664,7 @@ struct rtw_chip_info rtw8821c_hw_spec = { ...@@ -660,6 +664,7 @@ struct rtw_chip_info rtw8821c_hw_spec = {
.csi_buf_pg_num = 0, .csi_buf_pg_num = 0,
.band = RTW_BAND_2G | RTW_BAND_5G, .band = RTW_BAND_2G | RTW_BAND_5G,
.page_size = 128, .page_size = 128,
.dig_min = 0x1c,
.ht_supported = true, .ht_supported = true,
.vht_supported = true, .vht_supported = true,
.lps_deep_mode_supported = BIT(LPS_DEEP_MODE_LCLK), .lps_deep_mode_supported = BIT(LPS_DEEP_MODE_LCLK),
...@@ -670,6 +675,7 @@ struct rtw_chip_info rtw8821c_hw_spec = { ...@@ -670,6 +675,7 @@ struct rtw_chip_info rtw8821c_hw_spec = {
.rqpn_table = rqpn_table_8821c, .rqpn_table = rqpn_table_8821c,
.prioq_addrs = &prioq_addrs_8821c, .prioq_addrs = &prioq_addrs_8821c,
.intf_table = &phy_para_table_8821c, .intf_table = &phy_para_table_8821c,
.dig = rtw8821c_dig,
.rf_base_addr = {0x2800, 0x2c00}, .rf_base_addr = {0x2800, 0x2c00},
.rf_sipi_addr = {0xc90, 0xe90}, .rf_sipi_addr = {0xc90, 0xe90},
.ltecoex_addr = &rtw8821c_ltecoex_addr, .ltecoex_addr = &rtw8821c_ltecoex_addr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment