OSDN Git Service

rtw88: add power tracking support
authorTzu-En Huang <tehuang@realtek.com>
Tue, 22 Oct 2019 10:04:17 +0000 (18:04 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 24 Oct 2019 05:46:21 +0000 (08:46 +0300)
commitc97ee3e0bea29827f4b44276fc792bd32977edb0
treeae45d57e2cb18ffe0fd585b8ac8120ef6cfd7b52
parent8575b534b0006dcfc539cbe079bcfbda52576fac
rtw88: add power tracking support

The temperature of the chip can affect the output power
of the RF components. Hence driver requires to compensate
the power by adjusting the power index recorded in the
power swing table.

And if the difference of current thermal value to the
default thermal value exceeds a threshold, the RF IQK
should be triggered to re-calibrate the characteristics
of the RF components, to keep the output IQ vectors of
the RF components orthogonal enough.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/fw.c
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/phy.h
drivers/net/wireless/realtek/rtw88/rtw8822b.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c