[openwrt/openwrt] armsr: armv8: package and select MDIO driver for Thunder SoC's

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 19 06:12:48 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/3c316f3e24458eb00c25fc610444186b21c8cf65

commit 3c316f3e24458eb00c25fc610444186b21c8cf65
Author: Mathew McBride <matt at traverse.com.au>
AuthorDate: Wed Aug 9 07:20:07 2023 +0000

    armsr: armv8: package and select MDIO driver for Thunder SoC's
    
    This MDIO driver was already being built, but not installed due
    to being selected by the ThunderX Ethernet driver.
    
    Signed-off-by: Mathew McBride <matt at traverse.com.au>
    (cherry picked from commit 0018b335313ec7d866bf9e22273b620759e29598)
---
 target/linux/armsr/modules.mk | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/target/linux/armsr/modules.mk b/target/linux/armsr/modules.mk
index 96f03470fb..c594017ec0 100644
--- a/target/linux/armsr/modules.mk
+++ b/target/linux/armsr/modules.mk
@@ -266,10 +266,22 @@ endef
 
 $(eval $(call KernelPackage,dwmac-rockchip))
 
+define KernelPackage/mdio-thunder
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Marvell (Cavium) Thunder MDIO controller
+  DEPENDS:=@(TARGET_armsr_armv8) +kmod-of-mdio
+  KCONFIG:=CONFIG_MDIO_THUNDER
+  FILES=$(LINUX_DIR)/drivers/net/mdio/mdio-cavium.ko \
+    $(LINUX_DIR)/drivers/net/mdio/mdio-thunder.ko
+  AUTOLOAD=$(call AutoLoad,30,mdio-cavium mdio-thunder)
+endef
+
+$(eval $(call KernelPackage,mdio-thunder))
+
 define KernelPackage/thunderx-net
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Marvell (Cavium) Thunder network drivers
-  DEPENDS:=@(TARGET_armsr_armv8) +kmod-phylink +kmod-of-mdio
+  DEPENDS:=@(TARGET_armsr_armv8) +kmod-phylink +kmod-mdio-thunder
   KCONFIG:=CONFIG_NET_VENDOR_CAVIUM \
     CONFIG_THUNDER_NIC_PF \
     CONFIG_THUNDER_NIC_VF \




More information about the lede-commits mailing list