kernel/modules: add kmod-mdio-gpio module
authorMartin Schiller <ms@dev.tdt.de>
Wed, 26 Jul 2017 09:51:05 +0000 (11:51 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 9 Jun 2018 20:39:17 +0000 (22:39 +0200)
Add kernel module package for kmod-mdio-gpio.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
package/kernel/linux/modules/netdevices.mk

index 0da8bcdf5679c1805fbc131e0349836eec099224..372cb47c60e2834f9226b7a797f5e4522dfb63e0 100644 (file)
@@ -110,6 +110,26 @@ endef
 $(eval $(call KernelPackage,mii))
 
 
+define KernelPackage/mdio-gpio
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:= Supports GPIO lib-based MDIO busses
+  DEPENDS:=+kmod-libphy @GPIO_SUPPORT
+  KCONFIG:= \
+       CONFIG_MDIO_BITBANG \
+       CONFIG_MDIO_GPIO
+  FILES:= \
+       $(LINUX_DIR)/drivers/net/phy/mdio-gpio.ko \
+       $(LINUX_DIR)/drivers/net/phy/mdio-bitbang.ko
+  AUTOLOAD:=$(call AutoProbe,mdio-gpio)
+endef
+
+define KernelPackage/mdio-gpio/description
+ Supports GPIO lib-based MDIO busses
+endef
+
+$(eval $(call KernelPackage,mdio-gpio))
+
+
 define KernelPackage/et131x
   SUBMENU:=$(NETWORK_DEVICES_MENU)
   TITLE:=Agere ET131x Gigabit Ethernet driver