Files
wlan-ap/patches-24.10/0042-package-linux-Add-RTL8367C-S-switch-compile-option.patch
John Crispin f3cb3fe4d7 patches: carry forward RTL8367C/S switch support (0042)
Adds compile option for RTL8367C/S switch support.

Renumbered from patches/0054.

Signed-off-by: John Crispin <john@phrozen.org>
2025-10-19 00:00:00 +02:00

52 lines
1.8 KiB
Diff

From beda1294f3ce794287108a7a9d771c469759dd12 Mon Sep 17 00:00:00 2001
From: Ken <xshi@actiontec.com>
Date: Tue, 17 Oct 2023 11:01:25 +0800
Subject: [PATCH 42/55] package/linux: Add RTL8367C/S switch compile option
Adds kernel module support for Realtek RTL8367C/S managed switches, enabling configuration of these switches on devices that use them.
Signed-off-by: Ken <xshi@actiontec.com>
---
package/kernel/linux/modules/netdevices.mk | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index c60a947978..b64bd9db0d 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -7,6 +7,22 @@
NETWORK_DEVICES_MENU:=Network Devices
+define KernelPackage/switch-rtl8367c
+ SUBMENU:=$(NETWORK_DEVICES_MENU)
+ TITLE:=Realtek RTL8367C/S switch support
+ DEPENDS:=+kmod-switch-rtl8366-smi
+ KCONFIG:=CONFIG_RTL8367C_PHY=y
+ FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8367c.ko
+ AUTOLOAD:=$(call AutoLoad,43,rtl8367c,1)
+endef
+
+define KernelPackage/switch-rtl8367c/description
+ Realtek RTL8367C/S switch support
+endef
+
+$(eval $(call KernelPackage,switch-rtl8367c))
+
+
define KernelPackage/sis190
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=SiS 190 Fast/Gigabit Ethernet support
@@ -701,7 +717,7 @@ define KernelPackage/switch-rtl8366-smi
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Realtek RTL8366 SMI switch interface support
DEPENDS:=@GPIO_SUPPORT +kmod-swconfig +(TARGET_armsr||TARGET_bcm27xx_bcm2708||TARGET_loongarch64||TARGET_malta||TARGET_tegra):kmod-of-mdio
- KCONFIG:=CONFIG_RTL8366_SMI
+ KCONFIG:=CONFIG_RTL8366_SMI=y
FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8366_smi.ko
AUTOLOAD:=$(call AutoLoad,42,rtl8366_smi,1)
endef
--
2.34.1