diff mbox series

[1/2] Adding i2c-cp2615 to Kbuild

Message ID CACCVKEGC5paBTzFW5vZGPcKHgxS4v6B8Hk=tjxiGVuCfExUrkQ@mail.gmail.com
State New
Headers show
Series [1/2] Adding i2c-cp2615 to Kbuild | expand

Commit Message

Bence Csókás Feb. 10, 2021, 9:07 p.m. UTC
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@sch.bme.hu>
---
 drivers/i2c/busses/Kconfig  | 10 ++++++++++
 drivers/i2c/busses/Makefile |  2 ++
 2 files changed, 12 insertions(+)
diff mbox series

Patch

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