[PATCH 1/2] Adding i2c-cp2615 to Kbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For a hardware project, I need the I2C master of SiLabs' CP2615 chip
to be visible from under Linux. This patchset adds i2c-cp2615, a
driver which sets up an i2c_adapter for said chip.

This is my first contribution, so forgive me (but do let me know) if
I've broken habit.

Signed-off-by: Bence Csókás <bence98@xxxxxxxxxx>
---
 drivers/i2c/busses/Kconfig  | 10 ++++++++++
 drivers/i2c/busses/Makefile |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index a49e0ed4a599..7a0dd18140d3 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -1227,6 +1227,16 @@ config I2C_DLN2
      This driver can also be built as a module.  If so, the module
      will be called i2c-dln2.

+config I2C_CP2615
+    tristate "Silicon Labs CP2615 USB sound card and I2C adapter"
+    depends on USB
+    help
+      If you say yes to this option, support will be included for Silicon
+      Labs CP2615's I2C interface.
+
+      This driver can also be built as a module.  If so, the module
+      will be called i2c-cp2615.
+
 config I2C_PARPORT
     tristate "Parallel port adapter"
     depends on PARPORT
diff --git a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile
index 683c49faca05..63179a148aab 100644
--- a/drivers/i2c/busses/Makefile
+++ b/drivers/i2c/busses/Makefile
@@ -127,6 +127,8 @@ obj-$(CONFIG_I2C_ZX2967)    += i2c-zx2967.o
 # External I2C/SMBus adapter drivers
 obj-$(CONFIG_I2C_DIOLAN_U2C)    += i2c-diolan-u2c.o
 obj-$(CONFIG_I2C_DLN2)        += i2c-dln2.o
+obj-$(CONFIG_I2C_CP2615) += i2c-cp2615.o
+i2c-cp2615-objs := cp2615_drv.o cp2615_iop.o
 obj-$(CONFIG_I2C_PARPORT)    += i2c-parport.o
 obj-$(CONFIG_I2C_ROBOTFUZZ_OSIF)    += i2c-robotfuzz-osif.o
 obj-$(CONFIG_I2C_TAOS_EVM)    += i2c-taos-evm.o
-- 
2.30.0




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux