rtw88: set power trim according to efuse PG values
authorTzu-En Huang <tehuang@realtek.com>
Mon, 20 Apr 2020 10:52:07 +0000 (18:52 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 21 Apr 2020 13:00:21 +0000 (16:00 +0300)
commit5ad4d8957b69f3ebf95ac02212c388bda75aeb30
tree443f49d512d6a42c726eca673398856716d75901
parentab0a031ecf2908c77833caebf0c86bab5e9f12b7
rtw88: set power trim according to efuse PG values

8822C devices have power trim, thermal and PA bias values
programmed in efuse. Driver should configure the RF components
according to the values.

If the power trim is not configured, then the devices might have
distortion on the output tx power.

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>
Link: https://lore.kernel.org/r/20200420105207.31899-1-yhchuang@realtek.com
drivers/net/wireless/realtek/rtw88/efuse.c
drivers/net/wireless/realtek/rtw88/efuse.h
drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.h