]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: modules: package Microchip SparX-5 switchdev driver as a module
authorRobert Marko <robert.marko@sartura.hr>
Wed, 21 Jan 2026 14:26:53 +0000 (15:26 +0100)
committerRobert Marko <robimarko@gmail.com>
Wed, 21 Jan 2026 15:26:13 +0000 (16:26 +0100)
Package the Microchip SparX-5 switchdev driver as a module.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
(cherry picked from commit 9a4c6550a7d9766ffd6ab39ae09e1260320c83fb)

package/kernel/linux/modules/netdevices.mk

index 1565ed8f878bf401808552fb3e61837604899049..67c8f9823f8014faac371d318cf4885eb0a1ab62 100644 (file)
@@ -2344,3 +2344,20 @@ define KernelPackage/enc28j60/description
 endef
 
 $(eval $(call KernelPackage,enc28j60))
+
+define KernelPackage/sparx5-switch
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Sparx5 switch driver
+  DEPENDS:=@TARGET_microchipsw +kmod-phylink +kmod-ptp
+  KCONFIG:= \
+  CONFIG_SPARX5_SWITCH \
+  CONFIG_LAN969X_SWITCH=y
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/microchip/sparx5/sparx5-switch.ko
+  AUTOLOAD:=$(call AutoProbe,sparx5-switch,1)
+endef
+
+define KernelPackage/sparx5-switch/description
+  This driver supports the Sparx5 network switch device.
+endef
+
+$(eval $(call KernelPackage,sparx5-switch))