wifi: rtw89: mac: abstract register definition of firmware boot debug

The registers of firmware boot debug are different between WiFi 6 and 7
chips. Add field to abstract it accordingly.

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260712034506.53209-3-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih
2026-07-12 11:45:00 +08:00
parent b45b22bbe9
commit 07c26ead36
4 changed files with 6 additions and 2 deletions

View File

@@ -1939,13 +1939,14 @@ static void rtw89_fw_prog_cnt_dump(struct rtw89_dev *rtwdev)
static void rtw89_fw_dl_fail_dump(struct rtw89_dev *rtwdev)
{
const struct rtw89_mac_gen_def *mac = rtwdev->chip->mac_def;
u32 val32;
val32 = rtw89_read32(rtwdev, R_AX_WCPU_FW_CTRL);
rtw89_err(rtwdev, "[ERR]fwdl 0x1E0 = 0x%x\n", val32);
val32 = rtw89_read32(rtwdev, R_AX_BOOT_DBG);
rtw89_err(rtwdev, "[ERR]fwdl 0x83F0 = 0x%x\n", val32);
val32 = rtw89_read32(rtwdev, mac->boot_dbg);
rtw89_err(rtwdev, "[ERR]fwdl 0x%x = 0x%x\n", mac->boot_dbg, val32);
rtw89_fw_prog_cnt_dump(rtwdev);
}

View File

@@ -7445,6 +7445,7 @@ const struct rtw89_mac_gen_def rtw89_mac_gen_ax = {
.agg_len_ht = R_AX_AGG_LEN_HT_0,
.ps_status = R_AX_PPWRBIT_SETTING,
.mu_gid = &rtw89_mac_mu_gid_addr_ax,
.boot_dbg = R_AX_BOOT_DBG,
.muedca_ctrl = {
.addr = R_AX_MUEDCA_EN,

View File

@@ -1067,6 +1067,7 @@ struct rtw89_mac_gen_def {
u32 agg_len_ht;
u32 ps_status;
const struct rtw89_mac_mu_gid_addr *mu_gid;
u32 boot_dbg;
struct rtw89_reg_def muedca_ctrl;
struct rtw89_reg_def bfee_ctrl;

View File

@@ -3284,6 +3284,7 @@ const struct rtw89_mac_gen_def rtw89_mac_gen_be = {
.agg_len_ht = R_BE_AGG_LEN_HT_0,
.ps_status = R_BE_WMTX_POWER_BE_BIT_CTL,
.mu_gid = &rtw89_mac_mu_gid_addr_be,
.boot_dbg = R_BE_BOOT_DBG,
.muedca_ctrl = {
.addr = R_BE_MUEDCA_EN,