aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2022-09-09 20:29:10 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-09-09 21:08:37 +0100
commit2510a587a69101e0f2e7f73a84e1c348e0113d2a (patch)
treedcede54952abfc752561bb629c521ba8bc5f6c31 /package
parent6d1a398c5be046fc4217f61b1215da6291b9fd0f (diff)
downloadupstream-2510a587a69101e0f2e7f73a84e1c348e0113d2a.tar.gz
upstream-2510a587a69101e0f2e7f73a84e1c348e0113d2a.tar.bz2
upstream-2510a587a69101e0f2e7f73a84e1c348e0113d2a.zip
linux-firmware: package MediaTek MT792[12] Bluetooth firmware
btusb fails to start on MT792[12] hardware without the appropriate firmware being loaded first: [ 9.750285] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin failed with error -2 [ 9.765723] bluetooth hci0: Falling back to sysfs fallback for: mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin Package firmware for MediaTek MT792[12] Bluetooth from linux-firmware. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r--package/firmware/linux-firmware/mediatek.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk
index 18677bc748..9c8f68b889 100644
--- a/package/firmware/linux-firmware/mediatek.mk
+++ b/package/firmware/linux-firmware/mediatek.mk
@@ -50,3 +50,21 @@ define Package/mt7622bt-firmware/install
$(1)/lib/firmware/mediatek
endef
$(eval $(call BuildPackage,mt7622bt-firmware))
+
+Package/mt7921bt-firmware = $(call Package/firmware-default,mt7921bt firmware)
+define Package/mt7921bt-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ $(INSTALL_DATA) \
+ $(PKG_BUILD_DIR)/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin \
+ $(1)/lib/firmware/mediatek
+endef
+$(eval $(call BuildPackage,mt7921bt-firmware))
+
+Package/mt7922bt-firmware = $(call Package/firmware-default,mt7922bt firmware)
+define Package/mt7922bt-firmware/install
+ $(INSTALL_DIR) $(1)/lib/firmware/mediatek
+ $(INSTALL_DATA) \
+ $(PKG_BUILD_DIR)/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin \
+ $(1)/lib/firmware/mediatek
+endef
+$(eval $(call BuildPackage,mt7922bt-firmware))