summaryrefslogtreecommitdiffstats
path: root/target/linux/armsr
diff options
context:
space:
mode:
authorMathew McBride <matt@traverse.com.au>2023-08-09 07:20:07 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2023-08-15 15:55:00 +0200
commit0018b335313ec7d866bf9e22273b620759e29598 (patch)
tree7cad72178e429b1dc03beef31e931c03ab628181 /target/linux/armsr
parent7c5bdff9c472a3f008ac15cc1ccb81cd23b20e1f (diff)
downloadopenwrt-0018b335313ec7d866bf9e22273b620759e29598.tar.gz
openwrt-0018b335313ec7d866bf9e22273b620759e29598.tar.bz2
openwrt-0018b335313ec7d866bf9e22273b620759e29598.zip
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@traverse.com.au>
Diffstat (limited to 'target/linux/armsr')
-rw-r--r--target/linux/armsr/modules.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/target/linux/armsr/modules.mk b/target/linux/armsr/modules.mk
index 4cf3d357d0..446b1483d2 100644
--- a/target/linux/armsr/modules.mk
+++ b/target/linux/armsr/modules.mk
@@ -267,10 +267,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 \