History

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.

Sakari Ailus committed 6 years ago

Commit 7ea4d231 parent bd189aa1 file · +4 −0Browse files

Unified · Split

drivers/media/i2c/ccs/ccs-core.c+4−0
@@ -2925,6 +2925,10 @@ static int ccs_get_hwconfig(struct ccs_sensor *sensor, struct device *dev) · 2924 unmodified lines
29252925 hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_DPHY;
29262926 hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes;
29272927 break;
2928+ case V4L2_MBUS_CSI2_CPHY:
2929+ hwcfg->csi_signalling_mode = CCS_CSI_SIGNALING_MODE_CSI_2_CPHY;
2930+ hwcfg->lanes = bus_cfg.bus.mipi_csi2.num_data_lanes;
2931+ break;
29282932 case V4L2_MBUS_CSI1:
29292933 case V4L2_MBUS_CCP2:
29302934 hwcfg->csi_signalling_mode = (bus_cfg.bus.mipi_csi1.strobe) ?

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t