wlan-ap-Telecominfraproject/patches/ipq807x/0009-Add-RTL8367C-S-compile-option.patch
Ken 5c84541011 ipq807x: Add WF-186w support
Add WF-186w support

Signed-off-by: Ken <xshi@actiontec.com>
2023-04-10 14:25:48 +02:00

48 lines
1.5 KiB
Diff

From df7b592c06c29014ad804e16785e563dd34ff6d1 Mon Sep 17 00:00:00 2001
From: Ken <xshi@actiontec.com>
Date: Thu, 16 Mar 2023 22:29:41 +0800
Subject: [PATCH] Add RTL8367C/S switch compile option
---
package/kernel/linux/modules/netdevices.mk | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk
index 0df00feed5..44a91d3d87 100644
--- a/package/kernel/linux/modules/netdevices.mk
+++ b/package/kernel/linux/modules/netdevices.mk
@@ -323,7 +323,7 @@ define KernelPackage/switch-rtl8366-smi
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Realtek RTL8366 SMI switch interface support
DEPENDS:=@GPIO_SUPPORT +kmod-swconfig +(TARGET_armvirt||TARGET_bcm27xx_bcm2708||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
@@ -382,6 +382,21 @@ endef
$(eval $(call KernelPackage,switch-rtl8367b))
+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/natsemi
SUBMENU:=$(NETWORK_DEVICES_MENU)
--
2.34.1