diff options
author | Yuan-Han Zhang <yuanhan1020@realtek.com> | 2022-03-17 06:55:33 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-03-17 15:20:06 +0100 |
commit | 8379fa611536759e5c75b8447e317db447137d3b (patch) | |
tree | 413af52f852ebdd53ee0c15124ba5ade0e5ef594 /drivers/net/wireless/realtek/rtw89/mac.h | |
parent | rtw89: modify dcfo_comp to share with chips (diff) | |
download | linux-8379fa611536759e5c75b8447e317db447137d3b.tar.xz linux-8379fa611536759e5c75b8447e317db447137d3b.zip |
rtw89: 8852c: add write/read crystal function in CFO tracking
The CFO tracking algorithm is the same, but control methods are different.
Set parameters via xtal serial interfaces (SI).
Signed-off-by: Yuan-Han Zhang <yuanhan1020@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/20220317055543.40514-3-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtw89/mac.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/mac.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw89/mac.h b/drivers/net/wireless/realtek/rtw89/mac.h index 2f707c817fa7..680b0eea3174 100644 --- a/drivers/net/wireless/realtek/rtw89/mac.h +++ b/drivers/net/wireless/realtek/rtw89/mac.h @@ -884,7 +884,9 @@ int rtw89_mac_get_tx_retry_limit(struct rtw89_dev *rtwdev, enum rtw89_mac_xtal_si_offset { XTAL_SI_XTAL_SC_XI = 0x04, +#define XTAL_SC_XI_MASK GENMASK(7, 0) XTAL_SI_XTAL_SC_XO = 0x05, +#define XTAL_SC_XO_MASK GENMASK(7, 0) XTAL_SI_PWR_CUT = 0x10, #define XTAL_SI_SMALL_PWR_CUT BIT(0) #define XTAL_SI_BIG_PWR_CUT BIT(1) |