Skip to content

Commit d7c5b91

Browse files
Baochen QiangHangtian Zhu
authored andcommitted
UPSTREAM: wifi: ath12k: enable QCC2072 support
QCC2072 is a PCI based device that is very much like WCN7850, the major difference is that QCC2072 has only one phy hence does not support DBS. With previous patches handling such similarity and difference, it is now ready to finally enable supporting this device. Add QCC2072's ID to the PCI device ID table, to allow it getting probed hence enable support. Also populate some necessary parameters when probing. Tested-on: QCC2072 hw1.0 PCI WLAN.COL.1.0-01560-QCACOLSWPL_V1_TO_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3 Signed-off-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com> Reviewed-by: Vasanthakumar Thiagarajan <vasanthakumar.thiagarajan@oss.qualcomm.com> Link: https://patch.msgid.link/20260112-ath12k-support-qcc2072-v2-18-fc8ce1e43969@oss.qualcomm.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
1 parent 753d743 commit d7c5b91

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

  • drivers/net/wireless/ath/ath12k/wifi7

drivers/net/wireless/ath/ath12k/wifi7/pci.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#define QCN9274_DEVICE_ID 0x1109
2121
#define WCN7850_DEVICE_ID 0x1107
22+
#define QCC2072_DEVICE_ID 0x1112
2223

2324
#define ATH12K_PCI_W7_SOC_HW_VERSION_1 1
2425
#define ATH12K_PCI_W7_SOC_HW_VERSION_2 2
@@ -28,10 +29,12 @@
2829
#define TCSR_SOC_HW_VERSION_MINOR_MASK GENMASK(7, 4)
2930

3031
#define WINDOW_REG_ADDRESS 0x310c
32+
#define WINDOW_REG_ADDRESS_QCC2072 0x3278
3133

3234
static const struct pci_device_id ath12k_wifi7_pci_id_table[] = {
3335
{ PCI_VDEVICE(QCOM, QCN9274_DEVICE_ID) },
3436
{ PCI_VDEVICE(QCOM, WCN7850_DEVICE_ID) },
37+
{ PCI_VDEVICE(QCOM, QCC2072_DEVICE_ID) },
3538
{}
3639
};
3740

@@ -152,7 +155,16 @@ static int ath12k_wifi7_pci_probe(struct pci_dev *pdev,
152155
return -EOPNOTSUPP;
153156
}
154157
break;
155-
158+
case QCC2072_DEVICE_ID:
159+
ab->id.bdf_search = ATH12K_BDF_SEARCH_BUS_AND_BOARD;
160+
ab_pci->msi_config = &ath12k_wifi7_msi_config[0];
161+
ab->static_window_map = false;
162+
ab_pci->pci_ops = &ath12k_wifi7_pci_ops_wcn7850;
163+
ab_pci->window_reg_addr = WINDOW_REG_ADDRESS_QCC2072;
164+
ab->target_mem_mode = ATH12K_QMI_MEMORY_MODE_DEFAULT;
165+
/* there is only one version till now */
166+
ab->hw_rev = ATH12K_HW_QCC2072_HW10;
167+
break;
156168
default:
157169
dev_err(&pdev->dev, "Unknown Wi-Fi 7 PCI device found: 0x%x\n",
158170
pci_dev->device);

0 commit comments

Comments
 (0)