diff options
author | Andrew Powers-Holmes <aholmes@omnom.net> | 2022-11-01 17:06:32 +1100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-11-09 20:43:32 +0100 |
commit | 94d0cb9d2ec23fb15acd1fc17a351983f8771d13 (patch) | |
tree | 23f660c1a8315bc6fe2fe15de60155ba850eb752 | |
parent | ceb1451c10c1588fd009021c0226823a9959e266 (diff) | |
download | upstream-94d0cb9d2ec23fb15acd1fc17a351983f8771d13.tar.gz upstream-94d0cb9d2ec23fb15acd1fc17a351983f8771d13.tar.bz2 upstream-94d0cb9d2ec23fb15acd1fc17a351983f8771d13.zip |
mt76: add firmware package for mt7916
Add kernel package 'mt7916-firmware' with firmware files for MT7916E devices.
These share the same driver as the MT7915 chipset, but use their own firmware.
Tested using a pair of AsiaRF AW7916-NPD cards.
Signed-off-by: Andrew Powers-Holmes <aholmes@omnom.net>
-rw-r--r-- | package/kernel/mt76/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/package/kernel/mt76/Makefile b/package/kernel/mt76/Makefile index 628ea79ec9..5b71a91a3a 100644 --- a/package/kernel/mt76/Makefile +++ b/package/kernel/mt76/Makefile @@ -226,6 +226,12 @@ define KernelPackage/mt7915e AUTOLOAD:=$(call AutoProbe,mt7915e) endef +define KernelPackage/mt7916-firmware + $(KernelPackage/mt76-default) + DEPENDS+=+kmod-mt7915e + TITLE:=MediaTek MT7916 firmware +endef + define KernelPackage/mt7986-firmware $(KernelPackage/mt76-default) DEPENDS:=@TARGET_mediatek_filogic @@ -460,6 +466,15 @@ define KernelPackage/mt7915e/install $(1)/lib/firmware/mediatek endef +define KernelPackage/mt7916-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mediatek + cp \ + $(PKG_BUILD_DIR)/firmware/mt7916_wa.bin \ + $(PKG_BUILD_DIR)/firmware/mt7916_wm.bin \ + $(PKG_BUILD_DIR)/firmware/mt7916_rom_patch.bin \ + $(1)/lib/firmware/mediatek +endef + define KernelPackage/mt7986-firmware/install $(INSTALL_DIR) $(1)/lib/firmware/mediatek cp \ @@ -508,6 +523,7 @@ $(eval $(call KernelPackage,mt7663-usb-sdio)) $(eval $(call KernelPackage,mt7663u)) $(eval $(call KernelPackage,mt7663s)) $(eval $(call KernelPackage,mt7915e)) +$(eval $(call KernelPackage,mt7916-firmware)) $(eval $(call KernelPackage,mt7986-firmware)) $(eval $(call KernelPackage,mt7921-common)) $(eval $(call KernelPackage,mt7921u)) |