aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-08-07 15:57:15 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-08-14 00:29:19 +0200
commitfd4a354f3ee6e9946b1551792cbd0514aa022c89 (patch)
treefecee9c10550227d584cf604df236a8b335252b7
parent13d66ef33f57122b1e3042e48de76db8a42eab89 (diff)
downloadupstream-fd4a354f3ee6e9946b1551792cbd0514aa022c89.tar.gz
upstream-fd4a354f3ee6e9946b1551792cbd0514aa022c89.tar.bz2
upstream-fd4a354f3ee6e9946b1551792cbd0514aa022c89.zip
kernel: kmod-phy-ax88796b: Add new PHY
This adds the AX88796B PHY which is needed by the kmod-usb-net-asix driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 712ff388bcd0811256c07e8e1f4b92a007adaa7f)
-rw-r--r--package/kernel/linux/modules/netdevices.mk17
-rw-r--r--package/kernel/linux/modules/usb.mk2
2 files changed, 18 insertions, 1 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 6d263bdc34..72b8f5c82a 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -225,6 +225,23 @@ endef
$(eval $(call KernelPackage,phylib-broadcom))
+define KernelPackage/phy-ax88796b
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Asix PHY driver
+ KCONFIG:=CONFIG_AX88796B_PHY
+ DEPENDS:=+kmod-libphy
+ FILES:=$(LINUX_DIR)/drivers/net/phy/ax88796b.ko
+ AUTOLOAD:=$(call AutoProbe,ax88796b)
+endef
+
+define KernelPackage/phy-ax88796b/description
+ Currently supports the Asix Electronics PHY found in the X-Surf 100
+ AX88796B package.
+endef
+
+$(eval $(call KernelPackage,phy-ax88796b))
+
+
define KernelPackage/phy-broadcom
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Broadcom Ethernet PHY driver
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index c12150fc5c..b84e6e61b9 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -1138,7 +1138,7 @@ $(eval $(call KernelPackage,usb-net-aqc111))
define KernelPackage/usb-net-asix
TITLE:=Kernel module for USB-to-Ethernet Asix convertors
- DEPENDS:=+kmod-libphy
+ DEPENDS:=+kmod-libphy +kmod-phy-ax88796b
KCONFIG:=CONFIG_USB_NET_AX8817X
FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/asix.ko
AUTOLOAD:=$(call AutoProbe,asix)