summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-07-25 15:50:13 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-07-25 15:50:13 +0000
commita282e37c094fa3f634c2418a69069722dd439261 (patch)
tree1f36af7a00010b987a5e24846c996beb0b9df34a /target
parentaccbc200457dcbe823e10affe1a30997fcdfce9f (diff)
downloadmtk-20170518-a282e37c094fa3f634c2418a69069722dd439261.zip
mtk-20170518-a282e37c094fa3f634c2418a69069722dd439261.tar.gz
mtk-20170518-a282e37c094fa3f634c2418a69069722dd439261.tar.bz2
move i2c driver to target modules.mk
SVN-Revision: 32855
Diffstat (limited to 'target')
-rw-r--r--target/linux/octeon/modules.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/octeon/modules.mk b/target/linux/octeon/modules.mk
index a4552580..999535c 100644
--- a/target/linux/octeon/modules.mk
+++ b/target/linux/octeon/modules.mk
@@ -37,3 +37,19 @@ define KernelPackage/usb-octeon/description
endef
$(eval $(call KernelPackage,usb-octeon))
+
+I2C_OCTEON_MODULES:=\
+ CONFIG_I2C_OCTEON:drivers/i2c/busses/i2c-octeon
+
+define KernelPackage/octeon-i2c
+ $(call i2c_defaults,$(I2C_OCTEON_MODULES),59)
+ TITLE:=I2C master driver for Cavium Octeon
+ DEPENDS:=@TARGET_octeon +kmod-i2c-core
+endef
+
+define KernelPackage/octeon-i2c/description
+ Kernel module to use the I2C master driver on Cavium Octeon
+endef
+
+$(eval $(call KernelPackage,octeon-i2c))
+