aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2017-10-16 22:11:24 -0600
committerHauke Mehrtens <hauke@hauke-m.de>2017-12-26 20:13:43 +0100
commit60c4f9ce564a2dba3587cfe75b4c8d44dd87ee3f (patch)
treeae7aa4627ef6d9011498add9f84ad71b68f76672 /package
parent1064e76e4e12efe893cf0076f94ec2156295a9d6 (diff)
downloadupstream-60c4f9ce564a2dba3587cfe75b4c8d44dd87ee3f.tar.gz
upstream-60c4f9ce564a2dba3587cfe75b4c8d44dd87ee3f.tar.bz2
upstream-60c4f9ce564a2dba3587cfe75b4c8d44dd87ee3f.zip
kernel: add i2c-smbus module package
Intel motherboards (as well as the Cavium ThunderX SoC) use a superset of the I2C protocol called SMBus. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/i2c.mk21
1 files changed, 18 insertions, 3 deletions
diff --git a/package/kernel/linux/modules/i2c.mk b/package/kernel/linux/modules/i2c.mk
index 5141766a96..14c5b6448e 100644
--- a/package/kernel/linux/modules/i2c.mk
+++ b/package/kernel/linux/modules/i2c.mk
@@ -143,13 +143,12 @@ $(eval $(call KernelPackage,i2c-piix4))
I2C_I801_MODULES:= \
- CONFIG_I2C_I801:drivers/i2c/busses/i2c-i801 \
- CONFIG_I2C_SMBUS:drivers/i2c/i2c-smbus
+ CONFIG_I2C_I801:drivers/i2c/busses/i2c-i801
define KernelPackage/i2c-i801
$(call i2c_defaults,$(I2C_I801_MODULES),59)
TITLE:=Intel I801 and compatible I2C interfaces
- DEPENDS:=@PCI_SUPPORT @TARGET_x86 kmod-i2c-core
+ DEPENDS:=@PCI_SUPPORT @TARGET_x86 kmod-i2c-core +kmod-i2c-smbus
endef
define KernelPackage/i2c-i801/description
@@ -168,6 +167,22 @@ endef
$(eval $(call KernelPackage,i2c-i801))
+I2C_SMBUS_MODULES:= \
+ CONFIG_I2C_SMBUS:drivers/i2c/i2c-smbus
+
+define KernelPackage/i2c-smbus
+ $(call i2c_defaults,$(I2C_SMBUS_MODULES),58)
+ TITLE:=SMBus-specific protocols helper
+ DEPENDS:=kmod-i2c-core
+endef
+
+define KernelPackage/i2c-smbus/description
+ Support for the SMBus extensions to the I2C specification.
+endef
+
+$(eval $(call KernelPackage,i2c-smbus))
+
+
I2C_MUX_MODULES:= \
CONFIG_I2C_MUX:drivers/i2c/i2c-mux