[LEDE-DEV] [PATCH] Add i2c_801 i2c driver module support

michael at michaelmarley.com michael at michaelmarley.com
Sat Mar 11 14:48:58 PST 2017


From: Michael Marley <michael at michaelmarley.com>

This driver supports the i2c controller on many Intel chipsets.
The patch also adds the i2c_smbus driver upon which i2c_i801
depends.

Signed-off-by: Michael Marley <michael at michaelmarley.com>
---
 package/kernel/linux/modules/i2c.mk | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index 7e85ef3d9d..6fe163ceeb 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -87,6 +87,21 @@ endef
 
 $(eval $(call KernelPackage,i2c-algo-pcf))
 
+I2C_SMBUS_MODULES:= \
+  CONFIG_I2C_SMBUS:drivers/i2c/i2c-smbus
+
+define KernelPackage/i2c-smbus
+  $(call i2c_defaults,$(I2C_SMBUS_MODULES),55)
+  TITLE:=I2C SMBUS extensions
+  DEPENDS:=kmod-i2c-core
+endef
+
+define KernelPackage/i2c-smbus/description
+ Kernel modules for I2C SMBUS extensions
+endef
+
+$(eval $(call KernelPackage,i2c-smbus))
+
 
 I2C_GPIO_MODULES:= \
   CONFIG_I2C_GPIO:drivers/i2c/busses/i2c-gpio
@@ -202,3 +217,18 @@ define KernelPackage/i2c-mux-pca9541/description
 endef
 
 $(eval $(call KernelPackage,i2c-mux-pca9541))
+
+I2C_I801_MODULES:= \
+  CONFIG_I2C_I801:drivers/i2c/busses/i2c-i801
+
+define KernelPackage/i2c-i801
+  $(call i2c_defaults,$(I2C_I801_MODULES),59)
+  TITLE:=Intel 801 and compatible I2C interfaces
+  DEPENDS:=@PCI_SUPPORT @(x86||x86_64) kmod-i2c-core +kmod-i2c-smbus
+endef
+
+define KernelPackage/i2c-i801/description
+ Kernel module for Intel ICH and PCH i2c controllers
+endef
+
+$(eval $(call KernelPackage,i2c-i801))
-- 
2.11.0




More information about the Lede-dev mailing list