]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: ath12k: add ath12k_hw_version_map entry for IPQ5424
authorRaj Kumar Bhagat <raj.bhagat@oss.qualcomm.com>
Tue, 7 Apr 2026 05:26:30 +0000 (10:56 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 8 Apr 2026 00:28:21 +0000 (17:28 -0700)
Add a new ath12k_hw_version_map entry for the AHB based WiFi 7 device
IPQ5424.

Reuse most of the ath12k_hw_version_map fields such as hal_ops,
hal_desc_sz, tcl_to_wbm_rbm_map, and hal_params from IPQ5332. The
register addresses differ on IPQ5424, hence set hw_regs temporarily
to NULL and populated it in a subsequent patch.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.6-01243-QCAHKSWPL_SILICONZ-1
Tested-on: IPQ5332 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPL_SILICONZ-1
Tested-on: IPQ5424 hw1.0 AHB WLAN.WBE.1.6-01275-QCAHKSWPL_SILICONZ-1

Signed-off-by: Raj Kumar Bhagat <raj.bhagat@oss.qualcomm.com>
Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com>
Reviewed-by: Rameshkumar Sundaram <rameshkumar.sundaram@oss.qualcomm.com>
Link: https://patch.msgid.link/20260407-ath12k-ipq5424-v5-3-8e96aa660ec4@oss.qualcomm.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/wifi7/hal.c

index bd1753ca0db67210d838723c283a2c2241f46ba5..c2cc99a83f09cfbc37eff3bf094204a1d91dc19c 100644 (file)
@@ -50,6 +50,13 @@ static const struct ath12k_hw_version_map ath12k_wifi7_hw_ver_map[] = {
                .hal_params = &ath12k_hw_hal_params_wcn7850,
                .hw_regs = &qcc2072_regs,
        },
+       [ATH12K_HW_IPQ5424_HW10] = {
+               .hal_ops = &hal_qcn9274_ops,
+               .hal_desc_sz = sizeof(struct hal_rx_desc_qcn9274_compact),
+               .tcl_to_wbm_rbm_map = ath12k_hal_tcl_to_wbm_rbm_map_qcn9274,
+               .hal_params = &ath12k_hw_hal_params_ipq5332,
+               .hw_regs = NULL,
+       },
 };
 
 int ath12k_wifi7_hal_init(struct ath12k_base *ab)