summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew MacIntyre2025-12-29 12:38:10 +0000
committerHauke Mehrtens2026-01-12 23:19:52 +0000
commit8d407de4910712213afff1919830b3fe5c33e1b4 (patch)
treedb41438c098ebb34f72e4006c517c855c8c7e4fa
parent31daacadd4d3e27feb94465350c82df3c5ace815 (diff)
downloadopenwrt-8d407de4910712213afff1919830b3fe5c33e1b4.tar.gz
kernel: add kmod-phy-motorcomm
The Motorcomm YT8821 2.5G PHY is being used in some devices as an alternative to devices like the RTL8221B. Package it as a kmod so it can be used as a device package rather than requiring changes to the target kernel config. Signed-off-by: Andrew MacIntyre <andymac@pcug.org.au> Link: https://github.com/openwrt/openwrt/pull/21399 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 96a133737433eca069e26b1730ea5a895b8f2fd8)
-rw-r--r--package/kernel/linux/modules/netdevices.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 11d7b32c27..1565ed8f87 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -621,6 +621,23 @@ endef
$(eval $(call KernelPackage,phy-aquantia))
+
+define KernelPackage/phy-motorcomm
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Motorcomm Ethernet PHYs
+ DEPENDS:=+kmod-libphy
+ KCONFIG:=CONFIG_MOTORCOMM_PHY
+ FILES:=$(LINUX_DIR)/drivers/net/phy/motorcomm.ko
+ AUTOLOAD:=$(call AutoLoad,18,motorcomm,1)
+endef
+
+define KernelPackage/phy-motorcomm/description
+ Supports the Motorcomm 8511/8521/8531/8531S/8821 Ethernet PHYs
+endef
+
+$(eval $(call KernelPackage,phy-motorcomm))
+
+
define KernelPackage/dsa
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Distributed Switch Architecture support