media: ccs: Add support for obtaining C-PHY configuration from firmware
Try parsing the firmware also as C-PHY. Do this only after D-PHY as older firmware may not explicitly specify bus-type in which case D-PHY is the default. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
bd189aac5a
commit
7ea4d23293
|
@ -2925,6 +2925,10 @@ static int ccs_get_hwconfig(struct ccs_sensor *sensor, struct device *dev)
|
|||
hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_DPHY;
|
||||
hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes;
|
||||
break;
|
||||
case V4L2_MBUS_CSI2_CPHY:
|
||||
hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_CPHY;
|
||||
hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes;
|
||||
break;
|
||||
case V4L2_MBUS_CSI1:
|
||||
case V4L2_MBUS_CCP2:
|
||||
hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ?
|
||||
|
|
Loading…
Reference in New Issue