diff options
author | Victor Hsu <hsuvictor@google.com> | 2022-09-02 13:04:55 +0000 |
---|---|---|
committer | Victor Hsu <hsuvictor@google.com> | 2022-09-05 09:02:38 +0000 |
commit | 6a5687ea7a8656bc694d9b40f03e6aefc714e562 (patch) | |
tree | 224b99367b723bbb4171a1cb7894fe44b452e1b1 | |
parent | c9dddc4e190c2314ac5724e9e603cfe182ec2b75 (diff) | |
download | cnss2-6a5687ea7a8656bc694d9b40f03e6aefc714e562.tar.gz |
cnss: Dump TLMM_OD_EN, WLAN_JTAG_ID, wlan secure boot registers.
Bug: 244411535
Signed-off-by: Victor Hsu <hsuvictor@google.com>
Change-Id: I02097343f8ab3e7cbfa442aa17cc10ccb09455fa
-rw-r--r-- | cnss2/pci.c | 15 | ||||
-rw-r--r-- | cnss2/reg.h | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/cnss2/pci.c b/cnss2/pci.c index 66a19fc..1559333 100644 --- a/cnss2/pci.c +++ b/cnss2/pci.c @@ -1366,6 +1366,8 @@ static void cnss_pci_dump_bl_sram_mem(struct cnss_pci_data *pci_priv) u32 mem_addr, val, pbl_log_max_size, sbl_log_max_size; u32 pbl_log_sram_start; u32 pbl_stage, sbl_log_start, sbl_log_size; + u32 tlmm_od_en, wlan_jtag_id, qfprom_raw_oem; + u32 wlan_secure_bootn, tlmm_pbl_boots_status; u32 pbl_wlan_boot_cfg, pbl_bootstrap_status; u32 pbl_bootstrap_status_reg = PBL_BOOTSTRAP_STATUS; u32 sbl_log_def_start = SRAM_START; @@ -1402,6 +1404,19 @@ static void cnss_pci_dump_bl_sram_mem(struct cnss_pci_data *pci_priv) if (cnss_pci_check_link_status(pci_priv)) return; + if (pci_priv->device_id == QCA6490_DEVICE_ID) { + cnss_pci_reg_read(pci_priv, TLMM_OD_EN, &tlmm_od_en); + cnss_pci_reg_read(pci_priv, WLAN_JTAG_ID, &wlan_jtag_id); + cnss_pci_reg_read(pci_priv, QFPROM_RAW_OEM_SECURE_ROW0_LSB, &qfprom_raw_oem); + cnss_pci_reg_read(pci_priv, WLAN_SECURE_BOOTN, &wlan_secure_bootn); + cnss_pci_reg_read(pci_priv, TLMM_PBL_BOOTSTRAP_STATUS, &tlmm_pbl_boots_status); + + cnss_pr_dbg("tlmm_od_en: 0x%08x wlan_jtag_id: 0x%08x qfprom_raw_oem: 0x%08x\n", + tlmm_od_en, wlan_jtag_id,qfprom_raw_oem); + cnss_pr_dbg("wlan_secure_bootn: 0x%08x tlmm_pbl_boots_status: 0x%08x\n", + wlan_secure_bootn, tlmm_pbl_boots_status); + + } cnss_pci_reg_read(pci_priv, TCSR_PBL_LOGGING_REG, &pbl_stage); cnss_pci_reg_read(pci_priv, PCIE_BHI_ERRDBG2_REG, &sbl_log_start); cnss_pci_reg_read(pci_priv, PCIE_BHI_ERRDBG3_REG, &sbl_log_size); diff --git a/cnss2/reg.h b/cnss2/reg.h index 9a3729e..4073d15 100644 --- a/cnss2/reg.h +++ b/cnss2/reg.h @@ -95,6 +95,12 @@ #define MANGO_PBL_BOOTSTRAP_STATUS 0x01A10008 #define TCSR_PBL_LOGGING_REG 0x01B000F8 +#define TLMM_OD_EN 0x1910020 +#define WLAN_JTAG_ID 0x1E22B3C +#define QFPROM_RAW_OEM_SECURE_ROW0_LSB 0x1E20010 +#define WLAN_SECURE_BOOTN 0x1E22B24 +#define TLMM_PBL_BOOTSTRAP_STATUS 0x1910008 + #define PCIE_BHI_ERRDBG2_REG 0x01E0E238 #define PCIE_BHI_ERRDBG3_REG 0x01E0E23C #define PBL_WLAN_BOOT_CFG 0x01E22B34 |