Files
wlan-ap/patches/0054-Add-RTL8367C-S-switch-compile-option.patch
John Crispin d329e3a9ca patches/: re-order and fold patches
Signed-off-by: John Crispin <john@phrozen.org>
2024-04-27 16:15:25 +02:00

49 lines
1.6 KiB
Diff

From 3b2752de74e9e47c1088575d90ef81474aec65c3 Mon Sep 17 00:00:00 2001
From: Ken <xshi@actiontec.com>
Date: Tue, 17 Oct 2023 11:01:25 +0800
Subject: [PATCH 54/68] Add RTL8367C/S switch compile option
---
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 b8f2466cb4..1905e79a4f 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
@@ -456,7 +472,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_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