mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
media: v4l: Add support for CSI-1 and CCP2 busses
CCP2 and CSI-1, are older single data lane serial busses. [mchehab@s-opensource.com: don't use spaces for identation] Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
e07a41f985
commit
97bbdf02d9
@@ -55,6 +55,24 @@ struct v4l2_fwnode_bus_parallel {
|
||||
unsigned char data_shift;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct v4l2_fwnode_bus_mipi_csi1 - CSI-1/CCP2 data bus structure
|
||||
* @clock_inv: polarity of clock/strobe signal
|
||||
* false - not inverted, true - inverted
|
||||
* @strobe: false - data/clock, true - data/strobe
|
||||
* @lane_polarity: the polarities of the clock (index 0) and data lanes
|
||||
index (1)
|
||||
* @data_lane: the number of the data lane
|
||||
* @clock_lane: the number of the clock lane
|
||||
*/
|
||||
struct v4l2_fwnode_bus_mipi_csi1 {
|
||||
bool clock_inv;
|
||||
bool strobe;
|
||||
bool lane_polarity[2];
|
||||
unsigned char data_lane;
|
||||
unsigned char clock_lane;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct v4l2_fwnode_endpoint - the endpoint data structure
|
||||
* @base: fwnode endpoint of the v4l2_fwnode
|
||||
@@ -72,6 +90,7 @@ struct v4l2_fwnode_endpoint {
|
||||
enum v4l2_mbus_type bus_type;
|
||||
union {
|
||||
struct v4l2_fwnode_bus_parallel parallel;
|
||||
struct v4l2_fwnode_bus_mipi_csi1 mipi_csi1;
|
||||
struct v4l2_fwnode_bus_mipi_csi2 mipi_csi2;
|
||||
} bus;
|
||||
u64 *link_frequencies;
|
||||
|
||||
Reference in New Issue
Block a user