mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
ath11k-firmware: add QCN6122 wifi firmware
This commit is contained in:
parent
6754876c3c
commit
76271e77fd
@ -47,6 +47,12 @@ $(Package/ath11k-firmware-default)
|
|||||||
TITLE:=IPQ8074 ath11k firmware
|
TITLE:=IPQ8074 ath11k firmware
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/ath11k-firmware-qcn6122
|
||||||
|
$(Package/ath11k-firmware-default)
|
||||||
|
TITLE:=QCN6122 ath11k firmware
|
||||||
|
DEPENDS:=ath11k-firmware-ipq5018
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/ath11k-firmware-qcn9074
|
define Package/ath11k-firmware-qcn9074
|
||||||
$(Package/ath11k-firmware-default)
|
$(Package/ath11k-firmware-default)
|
||||||
TITLE:=QCN9074 ath11k firmware
|
TITLE:=QCN9074 ath11k firmware
|
||||||
@ -89,6 +95,13 @@ define Package/ath11k-firmware-ipq8074/install
|
|||||||
$(1)/lib/firmware/IPQ8074/
|
$(1)/lib/firmware/IPQ8074/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/ath11k-firmware-qcn6122/install
|
||||||
|
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCN6122/hw1.0
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_BUILD_DIR)/ath11k-firmware/IPQ5018_QCN6122_QCN6122/hw1.0/2.7.0.1/WLAN.HK.2.7.0.1-01744-QCAHKSWPL_SILICONZ-1/qcn6122/* \
|
||||||
|
$(1)/lib/firmware/ath11k/QCN6122/hw1.0/
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/ath11k-firmware-qcn9074/install
|
define Package/ath11k-firmware-qcn9074/install
|
||||||
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCN9074/hw1.0
|
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCN9074/hw1.0
|
||||||
$(INSTALL_DATA) \
|
$(INSTALL_DATA) \
|
||||||
@ -101,4 +114,5 @@ endef
|
|||||||
$(eval $(call BuildPackage,ath11k-firmware-ipq5018))
|
$(eval $(call BuildPackage,ath11k-firmware-ipq5018))
|
||||||
$(eval $(call BuildPackage,ath11k-firmware-ipq6018))
|
$(eval $(call BuildPackage,ath11k-firmware-ipq6018))
|
||||||
$(eval $(call BuildPackage,ath11k-firmware-ipq8074))
|
$(eval $(call BuildPackage,ath11k-firmware-ipq8074))
|
||||||
|
$(eval $(call BuildPackage,ath11k-firmware-qcn6122))
|
||||||
$(eval $(call BuildPackage,ath11k-firmware-qcn9074))
|
$(eval $(call BuildPackage,ath11k-firmware-qcn9074))
|
||||||
|
@ -0,0 +1,32 @@
|
|||||||
|
--- a/drivers/net/wireless/ath/ath11k/ahb.c
|
||||||
|
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
|
||||||
|
@@ -1008,17 +1008,29 @@
|
||||||
|
goto err_iommu_free;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
|
||||||
|
ret = iommu_map(iommu_dom, ab_ahb->fw.msa_paddr,
|
||||||
|
ab_ahb->fw.msa_paddr, ab_ahb->fw.msa_size,
|
||||||
|
IOMMU_READ | IOMMU_WRITE);
|
||||||
|
+#else
|
||||||
|
+ ret = iommu_map(iommu_dom, ab_ahb->fw.msa_paddr,
|
||||||
|
+ ab_ahb->fw.msa_paddr, ab_ahb->fw.msa_size,
|
||||||
|
+ IOMMU_READ | IOMMU_WRITE, GFP_KERNEL);
|
||||||
|
+#endif
|
||||||
|
if (ret) {
|
||||||
|
ath11k_err(ab, "failed to map firmware region: %d\n", ret);
|
||||||
|
goto err_iommu_detach;
|
||||||
|
}
|
||||||
|
|
||||||
|
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
|
||||||
|
ret = iommu_map(iommu_dom, ab_ahb->fw.ce_paddr,
|
||||||
|
ab_ahb->fw.ce_paddr, ab_ahb->fw.ce_size,
|
||||||
|
IOMMU_READ | IOMMU_WRITE);
|
||||||
|
+#else
|
||||||
|
+ ret = iommu_map(iommu_dom, ab_ahb->fw.ce_paddr,
|
||||||
|
+ ab_ahb->fw.ce_paddr, ab_ahb->fw.ce_size,
|
||||||
|
+ IOMMU_READ | IOMMU_WRITE, GFP_KERNEL);
|
||||||
|
+#endif
|
||||||
|
if (ret) {
|
||||||
|
ath11k_err(ab, "failed to map firmware CE region: %d\n", ret);
|
||||||
|
goto err_iommu_unmap;
|
Loading…
Reference in New Issue
Block a user