diff options
author | Chia-Yuan Li <leo.li@realtek.com> | 2022-08-19 08:48:09 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-09-02 10:35:51 +0200 |
commit | 8f308ae3342c57dca02bea97ec7a894417d13a0a (patch) | |
tree | 339abc86d4eed3bf4575a1c5a62b501ff4dfc105 /drivers/net/wireless/realtek/rtw89/reg.h | |
parent | wifi: rtw89: 8852c: set TBTT shift configuration (diff) | |
download | linux-8f308ae3342c57dca02bea97ec7a894417d13a0a.tar.xz linux-8f308ae3342c57dca02bea97ec7a894417d13a0a.zip |
wifi: rtw89: pci: fix PCI PHY auto adaption by using software restore
There is chance that PCI PHY auto adaption fail. When first time boot up,
software restore the right adaption value and close PHY auto adaption
mechanism.
Signed-off-by: Chia-Yuan Li <leo.li@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220819064811.37700-4-pkshih@realtek.com
Diffstat (limited to '')
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/reg.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/reg.h b/drivers/net/wireless/realtek/rtw89/reg.h index ef1f31693bee..38139fff0347 100644 --- a/drivers/net/wireless/realtek/rtw89/reg.h +++ b/drivers/net/wireless/realtek/rtw89/reg.h @@ -143,6 +143,18 @@ #define R_AX_PMC_DBG_CTRL2 0x00CC #define B_AX_SYSON_DIS_PMCR_AX_WRMSK BIT(2) +#define R_AX_PCIE_MIO_INTF 0x00E4 +#define B_AX_PCIE_MIO_ADDR_PAGE_V1_MASK GENMASK(20, 16) +#define B_AX_PCIE_MIO_BYIOREG BIT(13) +#define B_AX_PCIE_MIO_RE BIT(12) +#define B_AX_PCIE_MIO_WE_MASK GENMASK(11, 8) +#define MIO_WRITE_BYTE_ALL 0xF +#define B_AX_PCIE_MIO_ADDR_MASK GENMASK(7, 0) +#define MIO_ADDR_PAGE_MASK GENMASK(12, 8) + +#define R_AX_PCIE_MIO_INTD 0x00E8 +#define B_AX_PCIE_MIO_DATA_MASK GENMASK(31, 0) + #define R_AX_SYS_CFG1 0x00F0 #define B_AX_CHIP_VER_MASK GENMASK(15, 12) |