mirror of
https://github.com/LiBwrt-op/ipq50xx.git
synced 2025-12-16 15:01:44 +00:00
Add QCN6122 platform support. QCN6122 is a hybrid bus type device which is enumerated as a PCIe device by Q6 and enumerates as AHB device on host. It uses qgic interrupts to notify events to host driver. Used qgic api to convert MSI interrupt to qgic interrupt. Added qmi message to learn bar address from QCN6122. The patch set is refactored and based on below downstream patch: https://git.codelinaro.org/clo/qsdk/oss/system/feeds/wlan-open/-/blob/NHSS.QSDK.12.4.5.r2/mac80211/patches/232-ath11k-qcn6122-support.patch Signed-off-by: Sowmiya Sree Elavalagan <ssreeela@codeaurora.org> Signed-off-by: Ziyang Huang <hzyitc@outlook.com> Signed-off-by: George Moussalem <george.moussalem@outlook.com
24 lines
658 B
Diff
24 lines
658 B
Diff
--- a/drivers/net/wireless/ath/ath11k/ahb.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
|
|
@@ -37,6 +37,9 @@ static const struct of_device_id ath11k_
|
|
{ .compatible = "qcom,ipq5018-wifi",
|
|
.data = (void *)ATH11K_HW_IPQ5018_HW10,
|
|
},
|
|
+ { .compatible = "qcom,qcn6122-wifi",
|
|
+ .data = (void *)ATH11K_HW_QCN6122_HW10,
|
|
+ },
|
|
{ }
|
|
};
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/ce.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/ce.c
|
|
@@ -217,7 +217,7 @@ const struct ce_attr ath11k_host_ce_conf
|
|
.flags = CE_ATTR_FLAGS,
|
|
.src_nentries = 0,
|
|
.src_sz_max = 2048,
|
|
- .dest_nentries = 32,
|
|
+ .dest_nentries = 128,
|
|
.recv_cb = ath11k_htc_rx_completion_handler,
|
|
},
|
|
|