summaryrefslogtreecommitdiff
path: root/include/media/v4l2-of.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-03-26 01:57:37 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-02 22:46:42 +0300
commitb6eec1c4939962838ff51b10a8feb7a49bccc0d2 (patch)
tree9b4c792f2c4a1b7b4b57ee3a8b209f81bb681e5d /include/media/v4l2-of.h
parent9e1ee1b7307e384716a8c2cefca9036a2cf170e5 (diff)
downloadlinux-b6eec1c4939962838ff51b10a8feb7a49bccc0d2.tar.xz
[media] v4l: of: Read lane-polarities endpoint property
Add lane_polarities field to struct v4l2_of_bus_mipi_csi2 and write the contents of the lane-polarities property to it. The field tells the polarity of the physical lanes starting from the first one. Any unused lanes are ignored, i.e. only the polarity of the used lanes is specified. Also rework reading the "data-lanes" property a little. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/v4l2-of.h')
-rw-r--r--include/media/v4l2-of.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/v4l2-of.h b/include/media/v4l2-of.h
index 70fa7b7b0487..2de42c584eb2 100644
--- a/include/media/v4l2-of.h
+++ b/include/media/v4l2-of.h
@@ -29,12 +29,15 @@ struct device_node;
* @data_lanes: an array of physical data lane indexes
* @clock_lane: physical lane index of the clock lane
* @num_data_lanes: number of data lanes
+ * @lane_polarities: polarity of the lanes. The order is the same of
+ * the physical lanes.
*/
struct v4l2_of_bus_mipi_csi2 {
unsigned int flags;
unsigned char data_lanes[4];
unsigned char clock_lane;
unsigned short num_data_lanes;
+ bool lane_polarities[5];
};
/**