X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/5dceefad48811fa6313f7f01eb55508570d612de..07d9a1e199821121687b0b0a113fb70cfbc10704:/package/kernel/modules/i2c.mk?ds=inline diff --git a/package/kernel/modules/i2c.mk b/package/kernel/modules/i2c.mk index 8ca381927..a88bfa951 100644 --- a/package/kernel/modules/i2c.mk +++ b/package/kernel/modules/i2c.mk @@ -184,13 +184,14 @@ endef $(eval $(call KernelPackage,i2c-mv64xxx)) + +I2C_AT91_MODULES:=\ + CONFIG_I2C_AT91:drivers/i2c/busses/i2c-at91 + define KernelPackage/at91-i2c - SUBMENU:=$(I2C_MENU) + $(call i2c_defaults,$(I2C_AT91_MODULES),55) TITLE:=I2C (TWI) master driver for Atmel AT91 - DEPENDS:=@TARGET_at91 kmod-i2c-core - KCONFIG:=CONFIG_I2C_AT91 - FILES:=$(LINUX_DIR)/drivers/i2c/busses/i2c-at91.ko - AUTOLOAD:=$(call AutoLoad,55,i2c-at91) + DEPENDS:=@TARGET_at91 +kmod-i2c-core endef define KernelPackage/at91-i2c/description @@ -198,3 +199,18 @@ define KernelPackage/at91-i2c/description endef $(eval $(call KernelPackage,at91-i2c)) + +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))