All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Adding i2c-cp2615 to Kbuild
@ 2021-02-10 21:07 Bence Csókás
  0 siblings, 0 replies; only message in thread
From: Bence Csókás @ 2021-02-10 21:07 UTC (permalink / raw)
  To: linux-i2c

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 --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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-10 21:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-10 21:07 [PATCH 1/2] Adding i2c-cp2615 to Kbuild Bence Csókás

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.