greybus: camera: Raise the CSI-2 bandwidth
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 31 Dec 2015 02:20:56 +0000 (04:20 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 7 Jan 2016 01:43:09 +0000 (17:43 -0800)
Use 4 lanes at 960MHz to support camera modules requiring higher
bandwidths until we implement support for dynamic bandwidth calculation.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c

index b181ac49e783cdc1aae9d4d0a5faf7fb4bd89f9b..7be7cfca49bfddff83714b9d23c575c5068655eb 100644 (file)
@@ -152,8 +152,8 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
        if (nstreams && !(resp->flags & GB_CAMERA_CONFIGURE_STREAMS_ADJUSTED)) {
                csi_cfg.csi_id = 1;
                csi_cfg.clock_mode = 0;
-               csi_cfg.num_lanes = 2;
-               csi_cfg.bus_freq = 250000000;
+               csi_cfg.num_lanes = 4;
+               csi_cfg.bus_freq = 960000000;
 
                ret = es2_ap_csi_setup(gcam->connection->hd, true, &csi_cfg);
        } else if (nstreams == 0) {