[openwrt/openwrt] firmware: package firmware for built-in 2.5G PHY on MT7988
LEDE Commits
lede-commits at lists.infradead.org
Thu Feb 15 11:35:19 PST 2024
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/1e58ce7652c38580ef719cc8a8a795b87c531bcc
commit 1e58ce7652c38580ef719cc8a8a795b87c531bcc
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Jan 8 21:08:13 2024 +0000
firmware: package firmware for built-in 2.5G PHY on MT7988
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 at makrotopia.org>
---
package/firmware/linux-firmware/mediatek.mk | 9 +++++++++
target/linux/mediatek/image/filogic.mk | 2 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk
index a0eccb8f4d..bf6bef22a6 100644
--- a/package/firmware/linux-firmware/mediatek.mk
+++ b/package/firmware/linux-firmware/mediatek.mk
@@ -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))
diff --git a/target/linux/mediatek/image/filogic.mk b/target/linux/mediatek/image/filogic.mk
index 06777bc46e..8be0f07d06 100644
--- a/target/linux/mediatek/image/filogic.mk
+++ b/target/linux/mediatek/image/filogic.mk
@@ -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 | \
More information about the lede-commits
mailing list