rtw89: add config_rf_reg_v1 to configure RF parameter tables
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 17 Mar 2022 05:55:36 +0000 (13:55 +0800)
committerKalle Valo <kvalo@kernel.org>
Thu, 17 Mar 2022 14:20:38 +0000 (16:20 +0200)
commit2a5f2b32639a3e7276a3b5bb5d033806c4888820
tree010eedcbdf9a844b1077e1f8669ed5690a4c4201
parent84d0e33e51df7922933e48b48f6b1c5b76e5bbfc
rtw89: add config_rf_reg_v1 to configure RF parameter tables

The format of RF parameter is changed; it doesn't encode delay parameters
into table, but the delay coding becomes regular pair of register address
and value.

To help firmware to recover RF register settings, we need to download
these parameters to firmware. For v1 format, only download partial
parameters (ignore them with addr < 0x100).

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-6-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/phy.c
drivers/net/wireless/realtek/rtw89/phy.h