Skip to content

Commit

Permalink
mt76: add support for MT7981
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  • Loading branch information
dangowrt authored and aiamadeus committed May 5, 2023
1 parent 081798a commit 4fc24cc
Show file tree
Hide file tree
Showing 2 changed files with 643 additions and 0 deletions.
16 changes: 16 additions & 0 deletions package/kernel/mt76/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,12 @@ define KernelPackage/mt7916-firmware
TITLE:=MediaTek MT7916 firmware
endef

define KernelPackage/mt7981-firmware
$(KernelPackage/mt76-default)
DEPENDS:=@TARGET_mediatek_filogic
TITLE:=MediaTek MT7981 firmware
endef

define KernelPackage/mt7986-firmware
$(KernelPackage/mt76-default)
DEPENDS:=@TARGET_mediatek_filogic
Expand Down Expand Up @@ -511,6 +517,15 @@ define KernelPackage/mt7916-firmware/install
$(1)/lib/firmware/mediatek
endef

define KernelPackage/mt7981-firmware/install
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
cp \
$(PKG_BUILD_DIR)/firmware/mt7981_wa.bin \
$(PKG_BUILD_DIR)/firmware/mt7981_wm.bin \
$(PKG_BUILD_DIR)/firmware/mt7981_rom_patch.bin \
$(1)/lib/firmware/mediatek
endef

define KernelPackage/mt7986-firmware/install
$(INSTALL_DIR) $(1)/lib/firmware/mediatek
cp \
Expand Down Expand Up @@ -570,6 +585,7 @@ $(eval $(call KernelPackage,mt7663s))
$(eval $(call KernelPackage,mt7915-firmware))
$(eval $(call KernelPackage,mt7915e))
$(eval $(call KernelPackage,mt7916-firmware))
$(eval $(call KernelPackage,mt7981-firmware))
$(eval $(call KernelPackage,mt7986-firmware))
$(eval $(call KernelPackage,mt7921-firmware))
$(eval $(call KernelPackage,mt7922-firmware))
Expand Down
Loading

0 comments on commit 4fc24cc

Please sign in to comment.