diff options
author | Yan-Hsuan Chuang <yhchuang@realtek.com> | 2019-06-14 09:24:11 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2019-06-25 07:08:58 +0200 |
commit | e1cc056c92f9ee64e7031c614fe85654c3b72dbe (patch) | |
tree | cbf0c20e4781f9dee85de9324b469f002dc085a9 /drivers/net/wireless/realtek/rtw88/rtw8822c.h | |
parent | rtw88: 8822c: disable rx clock gating before counter reset (diff) | |
download | linux-e1cc056c92f9ee64e7031c614fe85654c3b72dbe.tar.xz linux-e1cc056c92f9ee64e7031c614fe85654c3b72dbe.zip |
rtw88: 8822c: use more accurate ofdm fa counting
8822c used to count OFDM FA count by subtracting tx count from FA count.
But it need to substract more counters to be accurate.
However, we can count it by adding up all of the FA counters we want.
And it is simpler to add than list all of the components to substract.
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtw88/rtw8822c.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtw88/rtw8822c.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.h b/drivers/net/wireless/realtek/rtw88/rtw8822c.h index 33125e7de7af..06fbabc90e62 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.h +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.h @@ -188,6 +188,11 @@ struct rtw8822c_efuse { #define REG_CNT_CTRL 0x1eb4 #define BIT_ALL_CNT_RST BIT(25) #define REG_OFDM_FACNT 0x2d00 +#define REG_OFDM_FACNT1 0x2d04 +#define REG_OFDM_FACNT2 0x2d08 +#define REG_OFDM_FACNT3 0x2d0c +#define REG_OFDM_FACNT4 0x2d10 +#define REG_OFDM_FACNT5 0x2d20 #define REG_OFDM_TXCNT 0x2de0 #define REG_ORITXCODE2 0x4100 #define REG_3WIRE2 0x410c |