diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2015-03-25 18:57:37 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 15:46:42 -0400 |
commit | b6eec1c4939962838ff51b10a8feb7a49bccc0d2 (patch) | |
tree | 9b4c792f2c4a1b7b4b57ee3a8b209f81bb681e5d /include/media | |
parent | 9e1ee1b7307e384716a8c2cefca9036a2cf170e5 (diff) |
[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')
-rw-r--r-- | include/media/v4l2-of.h | 3 |
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; | |||
29 | * @data_lanes: an array of physical data lane indexes | 29 | * @data_lanes: an array of physical data lane indexes |
30 | * @clock_lane: physical lane index of the clock lane | 30 | * @clock_lane: physical lane index of the clock lane |
31 | * @num_data_lanes: number of data lanes | 31 | * @num_data_lanes: number of data lanes |
32 | * @lane_polarities: polarity of the lanes. The order is the same of | ||
33 | * the physical lanes. | ||
32 | */ | 34 | */ |
33 | struct v4l2_of_bus_mipi_csi2 { | 35 | struct v4l2_of_bus_mipi_csi2 { |
34 | unsigned int flags; | 36 | unsigned int flags; |
35 | unsigned char data_lanes[4]; | 37 | unsigned char data_lanes[4]; |
36 | unsigned char clock_lane; | 38 | unsigned char clock_lane; |
37 | unsigned short num_data_lanes; | 39 | unsigned short num_data_lanes; |
40 | bool lane_polarities[5]; | ||
38 | }; | 41 | }; |
39 | 42 | ||
40 | /** | 43 | /** |