summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@linaro.org>2016-02-23 11:22:48 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-23 22:39:20 -0800
commit446091c999388f9365e8d206f70b0c1a860212a0 (patch)
tree1fb7658bd79f9b70c52ba456514937cee2545c97 /drivers/staging/greybus/greybus_protocols.h
parent7f29aded453e0392391b831c196583c274ec2cfd (diff)
greybus: camera: Add CSI configuration parameters
Add CSI configuration parameters to the configure_stream operation response. Currently, only the total number of lines in a second is used to configure the the AP-Bridge CSI transmitter, all other parameters (number of CSI data lanes, and CSI bus clock frequency) are kept hard-coded for two reasons: 1) We need to configure the CSI receiver on AP side accordingly to these settings, before sending them to APB1 CSI transmitter. 2) We cannot use the camera module provided parameters as-is, but use those information to compute the required bandwidth on the CSI bus, and configure the # of CSI data lanes, and the CSI bus clock speed in a way that satisfies that bandwidth requirement. Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org> Acked-by: Laurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index 6b192924a566..1a90dc2d9c3a 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -1276,7 +1276,10 @@ struct gb_camera_configure_streams_response {
__u8 num_streams;
__u8 flags;
#define GB_CAMERA_CONFIGURE_STREAMS_ADJUSTED 0x01
- __le16 padding;
+ __u8 num_lanes;
+ __u8 padding;
+ __le32 bus_freq;
+ __le32 lines_per_second;
struct gb_camera_stream_config_response config[0];
} __packed;