brcm2708: package the i2c master driver module
authorFlorian Fainelli <florian@openwrt.org>
Wed, 10 Jul 2013 19:43:07 +0000 (19:43 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 10 Jul 2013 19:43:07 +0000 (19:43 +0000)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 37235

target/linux/brcm2708/modules.mk

index 7005c3a9d11b8b1869f8ea76ed996ffc5f7e8f44..8f009903936d5218f0d12fa8fa71794b531efb04 100644 (file)
@@ -57,3 +57,21 @@ define KernelPackage/spi-bcm2708/description
 endef
 
 $(eval $(call KernelPackage,spi-bcm2708))
+
+
+I2C_BCM2708_MODULES:=\
+  CONFIG_I2C_BCM2708:drivers/i2c/busses/i2c-bcm2708
+
+define KernelPackage/i2c-bcm2708
+  $(call i2c_defaults,$(I2C_BCM2708_MODULES),59)
+  KCONFIG+= \
+          CONFIG_I2C_BCM2708_BAUDRATE=100000
+  TITLE:=Broadcom BCM2708 I2C master controller driver
+  DEPENDS:=@TARGET_brcm2708 +kmod-i2c-core
+endef
+
+define KernelPackage/i2c-bcm2708/description
+  This package contains the Broadcom 2708 I2C master controller driver
+endef
+
+$(eval $(call KernelPackage,i2c-bcm2708))