]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: camera: Add CSI configuration parameters
authorJacopo Mondi <jacopo.mondi@linaro.org>
Tue, 23 Feb 2016 10:22:48 +0000 (11:22 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 24 Feb 2016 06:39:20 +0000 (22:39 -0800)
commit446091c999388f9365e8d206f70b0c1a860212a0
tree1fb7658bd79f9b70c52ba456514937cee2545c97
parent7f29aded453e0392391b831c196583c274ec2cfd
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>
drivers/staging/greybus/camera.c
drivers/staging/greybus/greybus_protocols.h