linux-firmware: add 2G and 5G precal binaries for QCA99X0
authorDamien Mascord <tusker@tusker.org>
Tue, 13 Jul 2021 01:07:36 +0000 (11:07 +1000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 25 Jul 2021 11:52:38 +0000 (13:52 +0200)
Some devices (such as Extreme Networks WS-AP3959i-ROW) do not contain
precal binaries in ART, and the precal in the cards eeprom causes
firmware load errors.

These firmware files were previously in linux-firmware,
so these are adding them back and renaming to be cleaner.

Signed-off-by: Damien Mascord <tusker@tusker.org>
package/firmware/linux-firmware/qca_ath10k.mk

index 3bc942b10835e5e4a2b9bf8269e3cef9a8601f29..d30487441e03db523ece55def36f0d82a6850ae9 100644 (file)
@@ -9,6 +9,22 @@ define Download/qca99x0-board
 endef
 $(eval $(call Download,qca99x0-board))
 
+define Download/qca99x0-board-5g
+  URL:=https://github.com/kvalo/ath10k-firmware/raw/master/QCA99X0/hw2.0/
+  URL_FILE:=boardData_AR900B_CUS239_5G_v2_001.bin
+  FILE:=boardData_AR900B_CUS239_5G_v2_001.bin
+  HASH:=3bf7561ee373b369025dcd366d276d038a97d3397ccae41ce841d98a58b30aff
+endef
+$(eval $(call Download,qca99x0-board-5g))
+
+define Download/qca99x0-board-2g
+  URL:=https://github.com/kvalo/ath10k-firmware/raw/master/QCA99X0/hw2.0/
+  URL_FILE:=boardData_AR900B_CUS260_2G_v2_002.bin
+  FILE:=boardData_AR900B_CUS260_2G_v2_002.bin
+  HASH:=fd91ddf93a271633c28fb1831a1dc5e829c345fbf2aa8980e816585cf9b9e9ed
+endef
+$(eval $(call Download,qca99x0-board-2g))
+
 Package/ath10k-board-qca4019 = $(call Package/firmware-default,ath10k qca4019 board firmware)
 define Package/ath10k-board-qca4019/install
        $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
@@ -124,6 +140,25 @@ define Package/ath10k-board-qca99x0/install
                $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
 endef
 $(eval $(call BuildPackage,ath10k-board-qca99x0))
+
+Package/ath10k-board-qca99x0-2g = $(call Package/firmware-default,ath10k qca99x0 board 2g precal firmware)
+define Package/ath10k-board-qca99x0-2g/install
+       $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
+       $(INSTALL_DATA) \
+               $(DL_DIR)/boardData_AR900B_CUS260_2G_v2_002.bin \
+               $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2g-precal.bin
+endef
+$(eval $(call BuildPackage,ath10k-board-qca99x0-2g))
+
+Package/ath10k-board-qca99x0-5g = $(call Package/firmware-default,ath10k qca99x0 board 5g precal firmware)
+define Package/ath10k-board-qca99x0-5g/install
+       $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
+       $(INSTALL_DATA) \
+               $(DL_DIR)/boardData_AR900B_CUS239_5G_v2_001.bin \
+               $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-5g-precal.bin
+endef
+$(eval $(call BuildPackage,ath10k-board-qca99x0-5g))
+
 Package/ath10k-firmware-qca99x0 = $(call Package/firmware-default,ath10k qca99x0 firmware,+ath10k-board-qca99x0)
 define Package/ath10k-firmware-qca99x0/install
        $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0