rtw89: 8852c: add read/write rf register function
authorChung-Hsuan Hung <hsuan8331@realtek.com>
Thu, 17 Mar 2022 05:55:35 +0000 (13:55 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Mar 2022 14:20:27 +0000 (16:20 +0200)
commit84d0e33e51df7922933e48b48f6b1c5b76e5bbfc
tree3f8d960a7aa07489ca7260787f0e358ac6a66bf2
parenta9ffae8d3f9d263c128807838bd55ff68a83a3f5
rtw89: 8852c: add read/write rf register function

Using encoded address which BIT(16) is used to discriminate which region is
going to access. Illustrate the calling flow as below

rtw89_phy_write_rf_v1() -+-> rtw89_phy_write_rf()   // old interface
                         +-> rtw89_phy_write_rf_a() // new interface

Signed-off-by: Chung-Hsuan Hung <hsuan8331@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220317055543.40514-5-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h
drivers/net/wireless/realtek/rtw89/reg.h
drivers/net/wireless/realtek/rtw89/rtw8852c.c