mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			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
 | |
| 
 | 
