summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-07-29 13:20:51 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-07-29 13:20:51 +0000
commitd1ab4df0d6d739be388a13718985a42fb2c3a315 (patch)
treef23755c9c0f92bda53401de4b4d659035ee6fc6a /target
parente29d26e56fb2a49eab9e1d4e2ef525752d5aaff8 (diff)
downloadmtk-20170518-d1ab4df0d6d739be388a13718985a42fb2c3a315.zip
mtk-20170518-d1ab4df0d6d739be388a13718985a42fb2c3a315.tar.gz
mtk-20170518-d1ab4df0d6d739be388a13718985a42fb2c3a315.tar.bz2
move i2c module to target modules.mk
SVN-Revision: 32910
Diffstat (limited to 'target')
-rw-r--r--target/linux/at91/modules.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/at91/modules.mk b/target/linux/at91/modules.mk
index 9c8ef3d..3f20bb8 100644
--- a/target/linux/at91/modules.mk
+++ b/target/linux/at91/modules.mk
@@ -49,3 +49,20 @@ define KernelPackage/at91-adc/description
endef
$(eval $(call KernelPackage,at91-adc))
+
+
+I2C_AT91_MODULES:=\
+ CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91
+
+define KernelPackage/at91-i2c
+ $(call i2c_defaults,$(I2C_AT91_MODULES),55)
+ TITLE:=I2C (TWI) master driver for Atmel AT91
+ DEPENDS:=@TARGET_at91 +kmod-i2c-core
+endef
+
+define KernelPackage/at91-i2c/description
+ Kernel module to use the I2C (TWI) master driver for Atmel AT91
+endef
+
+$(eval $(call KernelPackage,at91-i2c))
+