#ifndef LINK_H #define LINK_H #include #include #include #include #ifndef SPEED_UNKNOWN #define SPEED_UNKNOWN -1 #endif #include "built_in.h" extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats); extern int wireless_rangemax_sigqual(const char *ifname); extern u32 wireless_bitrate(const char *ifname); extern u32 ethtool_bitrate(const char *ifname); extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf); extern int ethtool_link(const char *ifname); #endif /* LINK_H */ t Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@linaro.org>2016-07-15 11:03:44 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-17 10:31:21 +0900
commitd165a618a14c8871f8e14090791298e1b2ef8231 (patch)
tree829005f2d6143a7ec9c913e35e93748dee5402b2
parent24f9a6e4942d7a8b15a1bac9a96a605a433b9478 (diff)
greybus: camera: Update Configure Streams Response
As camera specification gets updated, and Configure Stream Response payload modified, define here the new response structure. In order to not break non up-to-date camera modules, keep the existing structure and add the _deprecated suffix to it. Add the size of both new and old structure in order to discriminate dynamically which version of Camera Specification the camera module implements and translate deprecated version of configure_streams response in the new one. In order not to break camera functionalities, for testing purposes, hard-code values the APB-A CSI Tx driver still requires for proper interface configuration (lines_per_second and num_lanes) Testing Done: Preview, capture and video recording with white camera module and APB-A with legacy firmware implementations Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r--drivers/staging/greybus/camera.c186
-rw-r--r--drivers/staging/greybus/greybus_protocols.h17
2 files changed, 176 insertions, 27 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c