[openwrt/openwrt] kernel: add kmod-phy-microchip

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 8 14:26:27 PST 2022


chunkeey pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/d9ff9a4270de3f97124eac7ae9a5174c859f87cd

commit d9ff9a4270de3f97124eac7ae9a5174c859f87cd
Author: Christian Lamparter <chunkeey at gmail.com>
AuthorDate: Thu Dec 30 20:03:48 2021 +0100

    kernel: add kmod-phy-microchip
    
    phy drivers for Microchip's LAN88xx PHYs.
    This is needed for the "LAN7801" variant
    of the upstream lan78xx usb ethernet driver.
    
    Signed-off-by: Christian Lamparter <chunkeey at gmail.com>
---
 package/kernel/linux/modules/netdevices.mk | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 6bbaf21e4a..91f51f5be6 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -196,6 +196,21 @@ endef
 
 $(eval $(call KernelPackage,et131x))
 
+define KernelPackage/phy-microchip
+   SUBMENU:=$(NETWORK_DEVICES_MENU)
+   TITLE:=Microchip Ethernet PHY driver
+   KCONFIG:=CONFIG_MICROCHIP_PHY
+   DEPENDS:=+kmod-libphy
+   FILES:=$(LINUX_DIR)/drivers/net/phy/microchip.ko
+   AUTOLOAD:=$(call AutoLoad,18,microchip,1)
+endef
+
+define KernelPackage/phy-microchip/description
+   Supports the LAN88XX PHYs.
+endef
+
+$(eval $(call KernelPackage,phy-microchip))
+
 
 define KernelPackage/phylib-broadcom
    SUBMENU:=$(NETWORK_DEVICES_MENU)



More information about the lede-commits mailing list