[openwrt/openwrt] kernel: add mdio-bus-mux support
LEDE Commits
lede-commits at lists.infradead.org
Tue Jun 13 07:49:38 PDT 2023
ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/b1114c1a7a2b3ea2602d30d116cd6d72483659a2
commit b1114c1a7a2b3ea2602d30d116cd6d72483659a2
Author: Mathew McBride <matt at traverse.com.au>
AuthorDate: Mon Mar 20 04:16:04 2023 +0000
kernel: add mdio-bus-mux support
The MDIO bus multiplexing framework is used by some drivers
such as dwmac-sun8i.
As this is a per-driver requirement, set it to be hidden in the menu.
Signed-off-by: Mathew McBride <matt at traverse.com.au>
(cherry picked from commit 2dbeb607251b75b506dcc8f1294cd9ed0bac9694)
---
package/kernel/linux/modules/netsupport.mk | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index b739289809..580ebb2d1b 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -1359,6 +1359,21 @@ endef
$(eval $(call KernelPackage,mdio))
+define KernelPackage/mdio-bus-mux
+ SUBMENU:=$(NETWORK_SUPPORT_MENU)
+ TITLE:=MDIO bus multiplexers
+ KCONFIG:=CONFIG_MDIO_BUS_MUX
+ HIDDEN:=1
+ FILES:=$(LINUX_DIR)/drivers/net/mdio/mdio-mux.ko
+ AUTOLOAD:=$(call AutoLoad,32,mdio-mux)
+endef
+
+define KernelPackage/mdio/description
+ Kernel framework for MDIO bus multiplexers.
+endef
+
+$(eval $(call KernelPackage,mdio-bus-mux))
+
define KernelPackage/macsec
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=IEEE 802.1AE MAC-level encryption (MAC)
More information about the lede-commits
mailing list