[openwrt/openwrt] kernel: modules: support Maxlinear GPHY
LEDE Commits
lede-commits at lists.infradead.org
Wed Jun 25 01:20:44 PDT 2025
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/597fc65a043f18ff019eb6ab42e53dd9346d88c2
commit 597fc65a043f18ff019eb6ab42e53dd9346d88c2
Author: Alexandru Gagniuc <mr.nuke.me at gmail.com>
AuthorDate: Wed May 14 23:51:59 2025 -0500
kernel: modules: support Maxlinear GPHY
Add support for Maxlinear GPHY module. Also add support for
kmod-polynomial, which is a dependency for this module.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18435
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
package/kernel/linux/modules/hwmon.mk | 9 +++++++++
package/kernel/linux/modules/netdevices.mk | 15 +++++++++++++++
2 files changed, 24 insertions(+)
diff --git a/package/kernel/linux/modules/hwmon.mk b/package/kernel/linux/modules/hwmon.mk
index 3e19a36cb0..a765976aac 100644
--- a/package/kernel/linux/modules/hwmon.mk
+++ b/package/kernel/linux/modules/hwmon.mk
@@ -746,3 +746,12 @@ endef
$(eval $(call KernelPackage,hwmon-adcxx))
+define KernelPackage/polynomial
+ TITLE:=polynomial support
+ KCONFIG:=CONFIG_POLYNOMIAL
+ HIDDEN:=1
+ FILES:=$(LINUX_DIR)/lib/polynomial.ko
+ AUTOLOAD:=$(call AutoProbe, polynomial)
+endef
+
+$(eval $(call KernelPackage,polynomial))
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 3a3e21116e..1ec1d449ed 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -255,6 +255,21 @@ endef
$(eval $(call KernelPackage,et131x))
+define KernelPackage/phy-maxlinear
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Maxlinear Ethernet PHY driver
+ KCONFIG:=CONFIG_MAXLINEAR_GPHY
+ DEPENDS:=+kmod-libphy +kmod-hwmon-core +kmod-polynomial
+ FILES:=$(LINUX_DIR)/drivers/net/phy/mxl-gpy.ko
+ AUTOLOAD:=$(call AutoLoad,18,mxl-gpy,1)
+endef
+
+define KernelPackage/phy-maxlinear/description
+ Support Maxlinear Ethernet PHYs.
+endef
+
+$(eval $(call KernelPackage,phy-maxlinear))
+
define KernelPackage/phy-microchip
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Microchip Ethernet PHY driver
More information about the lede-commits
mailing list