]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: armsr: introduce kmods for 'new' network devices
authorMathew McBride <matt@traverse.com.au>
Tue, 6 Jan 2026 06:41:15 +0000 (17:41 +1100)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 25 May 2026 20:12:03 +0000 (22:12 +0200)
These devices were prompted by the first configuration cycle
on kernel 6.18:
- sun55i (Allwinner A523) ethernet (dwmac flavour)
- Renesas GBETH Ethernet controller (dwmac flavour)
- Renesas RZN1 MIIC controller / PCS

Signed-off-by: Mathew McBride <matt@traverse.com.au>
Link: https://github.com/openwrt/openwrt/pull/21433
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/armsr/modules.mk

index 4759efac0094683c5e347df0bfe276a09416ae41..b54996ca3d92c1370c860d987afec955e3bb907c 100644 (file)
@@ -221,6 +221,17 @@ endef
 
 $(eval $(call KernelPackage,dwmac-imx))
 
+define KernelPackage/dwmac-sun55i
+  SUBMENU=$(NETWORK_DEVICES_MENU)
+  TITLE:=Allwinner A523 (sun55i) Ethernet
+  DEPENDS:=@LINUX_6_18 +kmod-stmmac-core +kmod-of-mdio +kmod-mdio-bus-mux
+  KCONFIG:=CONFIG_DWMAC_SUN55I
+  FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-sun55i.ko
+  AUTOLOAD=$(call AutoLoad,45,dwmac-sun55i)
+endef
+
+$(eval $(call KernelPackage,dwmac-sun55i))
+
 define KernelPackage/dwmac-sun8i
   SUBMENU=$(NETWORK_DEVICES_MENU)
   TITLE:=Allwinner H3/A83T/A64 (sun8i) Ethernet
@@ -243,6 +254,17 @@ endef
 
 $(eval $(call KernelPackage,dwmac-rockchip))
 
+define KernelPackage/dwmac-renesas-gbeth
+  SUBMENU=$(NETWORK_DEVICES_MENU)
+  TITLE:=Renesas GBETH Ethernet
+  DEPENDS:=@LINUX_6_18 +kmod-stmmac-core +kmod-of-mdio +LINUX_6_18:kmod-renesas-rzn-pcs
+  KCONFIG:=CONFIG_DWMAC_RENESAS_GBETH
+  FILES=$(LINUX_DIR)/drivers/net/ethernet/stmicro/stmmac/dwmac-renesas-gbeth.ko
+  AUTOLOAD=$(call AutoLoad,45,dwmac-renesas-gbeth)
+endef
+
+$(eval $(call KernelPackage,dwmac-renesas-gbeth))
+
 define KernelPackage/mdio-thunder
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Marvell (Cavium) Thunder MDIO controller
@@ -307,6 +329,17 @@ endef
  
 $(eval $(call KernelPackage,renesas-net-avb))
 
+define KernelPackage/renesas-rzn-pcs
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Renesas RZ/N and RZ/T2H MII controller
+  DEPENDS:=@LINUX_6_18
+  KCONFIG:=CONFIG_PCS_RZN1_MIIC
+  FILES=$(LINUX_DIR)/drivers/net/pcs/pcs-rzn1-miic.ko
+  AUTOLOAD:=$(call AutoProbe,pcs-rzn1-miic)
+endef
+
+$(eval $(call KernelPackage,renesas-rzn-pcs))
+
 define KernelPackage/wdt-sp805
   SUBMENU:=$(OTHER_MENU)
   TITLE:=ARM SP805 Watchdog