firmware: package firmware for built-in 2.5G PHY on MT7988
authorDaniel Golle <daniel@makrotopia.org>
Mon, 8 Jan 2024 21:08:13 +0000 (21:08 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 15 Feb 2024 19:30:08 +0000 (19:30 +0000)
Firmware for the built-in 2.5G Ethernet PHY of the MediaTek MT7988 SoC
is now part of linux-firmware, so we can package it.
Only a single file is needed with recent driver.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/firmware/linux-firmware/mediatek.mk
target/linux/mediatek/image/filogic.mk

index a0eccb8f4d5811744842d7e8d75dc9834e914e5e..bf6bef22a6416ce5a83a719ed53a56ce35ac6ad9 100644 (file)
@@ -87,3 +87,12 @@ define Package/mt7986-wo-firmware/install
                $(1)/lib/firmware/mediatek
 endef
 $(eval $(call BuildPackage,mt7986-wo-firmware))
+
+Package/mt7988-2p5g-phy-firmware = $(call Package/firmware-default,MT7988 built-in 2.5G Ethernet PHY firmware)
+define Package/mt7988-2p5g-phy-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/mediatek/mt7988
+       $(INSTALL_DATA) \
+               $(PKG_BUILD_DIR)/mediatek/mt7988/i2p5ge-phy-pmb.bin \
+               $(1)/lib/firmware/mediatek/mt7988
+endef
+$(eval $(call BuildPackage,mt7988-2p5g-phy-firmware))
index 06777bc46e6bf9e78a0bd4497c579fa062d3abc7..8be0f07d06a3c096581718814f3dc175e0295b2c 100644 (file)
@@ -661,7 +661,7 @@ define Device/mediatek_mt7988a-rfb
   DEVICE_DTS_DIR := $(DTS_DIR)/
   DEVICE_DTC_FLAGS := --pad 4096
   DEVICE_DTS_LOADADDR := 0x45f00000
-  DEVICE_PACKAGES := kmod-sfp
+  DEVICE_PACKAGES := mt7988-2p5g-phy-firmware kmod-sfp
   KERNEL_LOADADDR := 0x46000000
   KERNEL := kernel-bin | gzip
   KERNEL_INITRAMFS := kernel-bin | lzma | \