Skip to content

Commit e517526

Browse files
Loic PoulainWolfram Sang
authored andcommitted
i2c: Add Qualcomm CCI I2C driver
This commit adds I2C bus support for the Camera Control Interface (CCI) I2C controller found on the Qualcomm SoC processors. This I2C controller supports two masters and they are registered to the core. CCI versions supported in the driver are msm8916, msm8996 and sdm845. This is a rework of the patch posted by Vinod: https://patchwork.kernel.org/patch/10569961/ With additional fixes + most of the comments addressed. Signed-off-by: Todor Tomov <[email protected]> Signed-off-by: Vinod Koul <[email protected]> Signed-off-by: Loic Poulain <[email protected]> Tested-by: Robert Foss <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> [wsa: removed err msg after platform_get_irq] Signed-off-by: Wolfram Sang <[email protected]>
1 parent b7ed049 commit e517526

File tree

3 files changed

+802
-0
lines changed

3 files changed

+802
-0
lines changed

drivers/i2c/busses/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,16 @@ config I2C_PXA_SLAVE
885885
is necessary for systems where the PXA may be a target on the
886886
I2C bus.
887887

888+
config I2C_QCOM_CCI
889+
tristate "Qualcomm Camera Control Interface"
890+
depends on ARCH_QCOM || COMPILE_TEST
891+
help
892+
If you say yes to this option, support will be included for the
893+
built-in camera control interface on the Qualcomm SoCs.
894+
895+
This driver can also be built as a module. If so, the module
896+
will be called i2c-qcom-cci.
897+
888898
config I2C_QCOM_GENI
889899
tristate "Qualcomm Technologies Inc.'s GENI based I2C controller"
890900
depends on ARCH_QCOM || COMPILE_TEST

drivers/i2c/busses/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ obj-$(CONFIG_I2C_PNX) += i2c-pnx.o
9191
obj-$(CONFIG_I2C_PUV3) += i2c-puv3.o
9292
obj-$(CONFIG_I2C_PXA) += i2c-pxa.o
9393
obj-$(CONFIG_I2C_PXA_PCI) += i2c-pxa-pci.o
94+
obj-$(CONFIG_I2C_QCOM_CCI) += i2c-qcom-cci.o
9495
obj-$(CONFIG_I2C_QCOM_GENI) += i2c-qcom-geni.o
9596
obj-$(CONFIG_I2C_QUP) += i2c-qup.o
9697
obj-$(CONFIG_I2C_RIIC) += i2c-riic.o

0 commit comments

Comments
 (0)