kernel/modules: add kmod-switch-rtl8367b
authorVitaly Chekryzhev <13hakta@gmail.com>
Sat, 29 Oct 2016 12:28:05 +0000 (17:28 +0500)
committerMathias Kresin <dev@kresin.me>
Thu, 17 Nov 2016 19:01:21 +0000 (20:01 +0100)
Add build option for RTL8367R/VB switches.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
package/kernel/linux/modules/netdevices.mk

index 1ee58011300d52bbc72083b87287f373126575f1..787dd40efc9a7d2448fbc5c91e5ceff7fcade85b 100644 (file)
@@ -272,6 +272,22 @@ endef
 $(eval $(call KernelPackage,switch-rtl8366s))
 
 
+define KernelPackage/switch-rtl8367b
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Realtek RTL8367R/B switch support
+  DEPENDS:=+kmod-switch-rtl8366-smi
+  KCONFIG:=CONFIG_RTL8367B_PHY
+  FILES:=$(LINUX_DIR)/drivers/net/phy/rtl8367b.ko
+  AUTOLOAD:=$(call AutoLoad,43,rtl8367b)
+endef
+
+define KernelPackage/switch-rtl8367b/description
+ Realtek RTL8367R/B switch support
+endef
+
+$(eval $(call KernelPackage,switch-rtl8367b))
+
+
 define KernelPackage/natsemi
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=National Semiconductor DP8381x series