1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/pci/intel/ipu3
Hans de Goede 68b9bcc8a5 media: ipu3-cio2: Add support for instantiating i2c-clients for VCMs
Some sensors come with a variable-focus lens where the lens focus is
controller by a VCM (Voice Coil Motor). If there is a VCM for the
lens-focus, and if so which one, is described on the vcm_type field
of the ACPI SSDB table.

These VCMs are a second I2C device listed as an extra I2cSerialBusV2
resource in the same ACPI device as the sensor. The i2c-core-acpi.c
code only instantiates an i2c-client for the first I2cSerialBusV2
resource.

Add support for instantiating an i2c-client for the VCM with
the type of the i2c-client set based on the SSDB vcm_type field.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2021-12-16 20:58:56 +01:00
..
cio2-bridge.c media: ipu3-cio2: Add support for instantiating i2c-clients for VCMs 2021-12-16 20:58:56 +01:00
cio2-bridge.h media: ipu3-cio2: Add support for instantiating i2c-clients for VCMs 2021-12-16 20:58:56 +01:00
ipu3-cio2-main.c media: ipu3-cio2: Call cio2_bridge_init() before anything else 2021-12-16 20:57:58 +01:00
ipu3-cio2.h media: ipu3-cio2: Introduce to_cio2_device() helper macro 2021-09-30 10:07:45 +02:00
Kconfig media: ipu3-cio2: Build bridge only if ACPI is enabled 2021-02-06 09:40:04 +01:00
Makefile media: ipu3-cio2: Add cio2-bridge to ipu3-cio2 driver 2021-01-26 19:37:50 +01:00