ramips: add back the i2c-mt7621 module
authorJohn Crispin <john@phrozen.org>
Sun, 15 Jan 2017 19:45:14 +0000 (20:45 +0100)
committerJohn Crispin <john@phrozen.org>
Sun, 15 Jan 2017 19:45:59 +0000 (20:45 +0100)
mt7628/88 are still using this module.

Signed-off-by: John Crispin <john@phrozen.org>
target/linux/ramips/modules.mk

index c2b6f50624fd023880391d69a6e33dcdefe0291f..2bece6fc5c6831c4ff23a1daddf002fa7d74a08f 100644 (file)
@@ -58,6 +58,22 @@ endef
 $(eval $(call KernelPackage,i2c-ralink))
 
 
+I2C_MT7621_MODULES:= \
+  CONFIG_I2C_MT7621:drivers/i2c/busses/i2c-mt7621
+
+define KernelPackage/i2c-mt7628
+  $(call i2c_defaults,$(I2C_MT7621_MODULES),59)
+  TITLE:=MT7628/88 I2C Controller
+  DEPENDS:=kmod-i2c-core \
+       @(TARGET_ramips_mt7628||TARGET_ramips_mt7688)
+endef
+
+define KernelPackage/i2c-mt7628/description
+ Kernel modules for enable mt7621 i2c controller.
+endef
+
+$(eval $(call KernelPackage,i2c-mt7628))
+
 define KernelPackage/dma-ralink
   SUBMENU:=Other modules
   TITLE:=Ralink GDMA Engine