rtw88: 8822c: add SW DPK support
authorTzu-En Huang <tehuang@realtek.com>
Mon, 9 Sep 2019 07:16:08 +0000 (15:16 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Sep 2019 15:03:19 +0000 (18:03 +0300)
commit5227c2ee453d2f778192d8bb0f1a6072892aaa8e
tree264eb59f063305c8e731b7163c2c1b8083f4313e
parent1ac3294bf75e8a15122277ba3fd3ef58e4647a4a
rtw88: 8822c: add SW DPK support

Power amplifiers are not linear components, and require DPK to
reduce its nonlinearity. DPK is called Digital Pre-distortion
Calibration, can be used to compensate the output of power.

DPK tracking is in charge of tracking the thermal changes. And
it then shifts the power curve accordingly, which makes the
power output remains linear even if the PA works in different
temperature.

To perform DPK, the parameter table should also be updated.
And the table will be applied when device is powered on.
Then DPK will reference the values to calibrate.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/coex.c
drivers/net/wireless/realtek/rtw88/coex.h
drivers/net/wireless/realtek/rtw88/main.h
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/reg.h
drivers/net/wireless/realtek/rtw88/rtw8822b.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.h
drivers/net/wireless/realtek/rtw88/rtw8822c_table.c
drivers/net/wireless/realtek/rtw88/rtw8822c_table.h