diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2022-08-07 16:00:32 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-08-14 00:29:19 +0200 |
commit | 1c7a1673664a9353ea7102b3271210fce252b949 (patch) | |
tree | 8dfc459df07f2fd57c6138a771f76fe30eb5b39c /package/kernel/linux | |
parent | fd4a354f3ee6e9946b1551792cbd0514aa022c89 (diff) | |
download | upstream-1c7a1673664a9353ea7102b3271210fce252b949.tar.gz upstream-1c7a1673664a9353ea7102b3271210fce252b949.tar.bz2 upstream-1c7a1673664a9353ea7102b3271210fce252b949.zip |
kernel: kmod-phy-smsc: Add new PHY
This adds the SMSC PHY which is needed by the kmod-usb-net-smsc95xx
driver.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 5b016a88f92f25dd7d32438bce3a469f343f4009)
Diffstat (limited to 'package/kernel/linux')
-rw-r--r-- | package/kernel/linux/modules/netdevices.mk | 16 | ||||
-rw-r--r-- | package/kernel/linux/modules/usb.mk | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 72b8f5c82a..5ca1a141a8 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -292,6 +292,22 @@ endef $(eval $(call KernelPackage,phy-realtek)) +define KernelPackage/phy-smsc + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=SMSC PHY driver + KCONFIG:=CONFIG_SMSC_PHY + DEPENDS:=+kmod-libphy + FILES:=$(LINUX_DIR)/drivers/net/phy/smsc.ko + AUTOLOAD:=$(call AutoProbe,smsc) +endef + +define KernelPackage/phy-smsc/description + Currently supports the LAN83C185, LAN8187 and LAN8700 PHYs +endef + +$(eval $(call KernelPackage,phy-smsc)) + + define KernelPackage/swconfig SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=switch configuration API diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk index b84e6e61b9..1fc3541f10 100644 --- a/package/kernel/linux/modules/usb.mk +++ b/package/kernel/linux/modules/usb.mk @@ -1266,7 +1266,7 @@ $(eval $(call KernelPackage,usb-net-smsc75xx)) define KernelPackage/usb-net-smsc95xx TITLE:=SMSC LAN95XX based USB 2.0 10/100 ethernet devices - DEPENDS:=+LINUX_5_10:kmod-libphy + DEPENDS:=+LINUX_5_10:kmod-libphy +kmod-phy-smsc KCONFIG:=CONFIG_USB_NET_SMSC95XX FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/smsc95xx.ko AUTOLOAD:=$(call AutoProbe,smsc95xx) |