wifi: rtw89: 8852b: add functions to control BB to assist RF calibrations
authorPing-Ke Shih <pkshih@realtek.com>
Sun, 9 Oct 2022 12:54:02 +0000 (20:54 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 12 Oct 2022 04:34:57 +0000 (07:34 +0300)
commit572fd2ab377b123e52b442d015f9605409a21ad9
treebdf5cddca67ca49751171948685bd0c56b72f1c4
parent8915a256538d0e81fe02c5f68368e5787df261d5
wifi: rtw89: 8852b: add functions to control BB to assist RF calibrations

When we are going to do RF calibrations, they need BB helpers to control
TX PLCP, power, path and mode. Also, it they need helpers to backup and
restore some registers before and after RF calibrations. Then, use flow of
RF calibrations will be like backup registers, configure calibration,
configure TX parameters, measure calibration result, and finally restore
registers.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20221009125403.19662-9-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852b.c
drivers/net/wireless/realtek/rtw89/rtw8852b.h