Commit 698bdcbf authored by Evgeniy Borisov's avatar Evgeniy Borisov Committed by Greg Kroah-Hartman

greybus: camera-gb: Remove hardcode for CSI TX number of lanes

The number of CSI TX lanes is hardcoded to 4. Removing
this and start using value from configure stream response.

NOTE: The patch depends on the CSI init change:
"Use GB CSI params to init camera sub-devs"
Signed-off-by: default avatarEvgeniy Borisov <eborisov@mm-sol.com>
Reviewed-by: default avatarGjorgji Rosikopulos <grosikopulos@mm-sol.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 9504677c
......@@ -304,7 +304,7 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
if (nstreams) {
csi_cfg.csi_id = 1;
csi_cfg.flags = 0;
csi_cfg.num_lanes = 4;
csi_cfg.num_lanes = resp->num_lanes;
csi_cfg.bus_freq = cpu_to_le32(960000000);
csi_cfg.lines_per_second = resp->lines_per_second;
ret = gb_hd_output(gcam->connection->hd, &csi_cfg,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment