Commit 8d101b15 authored by Ping-Ke Shih's avatar Ping-Ke Shih Committed by Kalle Valo

wifi: rtw88: 8822ce: refine power parameters for RFE type 5

Refine the power parameters for better step response especially at high
current ramp case that is caused by power inductor variation.
Signed-off-by: default avatarPing-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240103070155.119488-1-pkshih@realtek.com
parent 6aeaa379
...@@ -1450,6 +1450,7 @@ static void rtw_pci_phy_cfg(struct rtw_dev *rtwdev) ...@@ -1450,6 +1450,7 @@ static void rtw_pci_phy_cfg(struct rtw_dev *rtwdev)
{ {
struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv; struct rtw_pci *rtwpci = (struct rtw_pci *)rtwdev->priv;
const struct rtw_chip_info *chip = rtwdev->chip; const struct rtw_chip_info *chip = rtwdev->chip;
struct rtw_efuse *efuse = &rtwdev->efuse;
struct pci_dev *pdev = rtwpci->pdev; struct pci_dev *pdev = rtwpci->pdev;
const struct rtw_intf_phy_para *para; const struct rtw_intf_phy_para *para;
u16 cut; u16 cut;
...@@ -1498,6 +1499,9 @@ static void rtw_pci_phy_cfg(struct rtw_dev *rtwdev) ...@@ -1498,6 +1499,9 @@ static void rtw_pci_phy_cfg(struct rtw_dev *rtwdev)
rtw_err(rtwdev, "failed to set PCI cap, ret = %d\n", rtw_err(rtwdev, "failed to set PCI cap, ret = %d\n",
ret); ret);
} }
if (chip->id == RTW_CHIP_TYPE_8822C && efuse->rfe_option == 5)
rtw_write32_mask(rtwdev, REG_ANAPARSW_MAC_0, BIT_CF_L_V2, 0x1);
} }
static int __maybe_unused rtw_pci_suspend(struct device *dev) static int __maybe_unused rtw_pci_suspend(struct device *dev)
......
...@@ -557,6 +557,9 @@ ...@@ -557,6 +557,9 @@
#define REG_RFE_INV16 0x0cbe #define REG_RFE_INV16 0x0cbe
#define BIT_RFE_BUF_EN BIT(3) #define BIT_RFE_BUF_EN BIT(3)
#define REG_ANAPARSW_MAC_0 0x1010
#define BIT_CF_L_V2 GENMASK(29, 28)
#define REG_ANAPAR_XTAL_0 0x1040 #define REG_ANAPAR_XTAL_0 0x1040
#define BIT_XCAP_0 GENMASK(23, 10) #define BIT_XCAP_0 GENMASK(23, 10)
#define REG_CPU_DMEM_CON 0x1080 #define REG_CPU_DMEM_CON 0x1080
......
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