aboutsummaryrefslogtreecommitdiffstats
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
commitcf9ca1514575370e4c26aca07d25f8c51808548a (patch)
treeafa167ace109b8a6a08d0be556060c88fb57a60a
parent813eb53612521c8cca8e745f0c80258a829c5c9d (diff)
downloadupstream-cf9ca1514575370e4c26aca07d25f8c51808548a.tar.gz
upstream-cf9ca1514575370e4c26aca07d25f8c51808548a.tar.bz2
upstream-cf9ca1514575370e4c26aca07d25f8c51808548a.zip
[at91] move i2c module to target modules.mk
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32910 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 9c8ef3d5a8..3f20bb8a44 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))
+