diff options
Diffstat (limited to 'include/media/omap3isp.h')
-rw-r--r-- | include/media/omap3isp.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/media/omap3isp.h b/include/media/omap3isp.h index 042849a34640..4d94be5226af 100644 --- a/include/media/omap3isp.h +++ b/include/media/omap3isp.h | |||
@@ -29,6 +29,10 @@ | |||
29 | struct i2c_board_info; | 29 | struct i2c_board_info; |
30 | struct isp_device; | 30 | struct isp_device; |
31 | 31 | ||
32 | #define ISP_XCLK_NONE 0 | ||
33 | #define ISP_XCLK_A 1 | ||
34 | #define ISP_XCLK_B 2 | ||
35 | |||
32 | enum isp_interface_type { | 36 | enum isp_interface_type { |
33 | ISP_INTERFACE_PARALLEL, | 37 | ISP_INTERFACE_PARALLEL, |
34 | ISP_INTERFACE_CSI2A_PHY2, | 38 | ISP_INTERFACE_CSI2A_PHY2, |
@@ -87,6 +91,29 @@ enum { | |||
87 | }; | 91 | }; |
88 | 92 | ||
89 | /** | 93 | /** |
94 | * struct isp_csiphy_lane: CCP2/CSI2 lane position and polarity | ||
95 | * @pos: position of the lane | ||
96 | * @pol: polarity of the lane | ||
97 | */ | ||
98 | struct isp_csiphy_lane { | ||
99 | u8 pos; | ||
100 | u8 pol; | ||
101 | }; | ||
102 | |||
103 | #define ISP_CSIPHY1_NUM_DATA_LANES 1 | ||
104 | #define ISP_CSIPHY2_NUM_DATA_LANES 2 | ||
105 | |||
106 | /** | ||
107 | * struct isp_csiphy_lanes_cfg - CCP2/CSI2 lane configuration | ||
108 | * @data: Configuration of one or two data lanes | ||
109 | * @clk: Clock lane configuration | ||
110 | */ | ||
111 | struct isp_csiphy_lanes_cfg { | ||
112 | struct isp_csiphy_lane data[ISP_CSIPHY2_NUM_DATA_LANES]; | ||
113 | struct isp_csiphy_lane clk; | ||
114 | }; | ||
115 | |||
116 | /** | ||
90 | * struct isp_ccp2_platform_data - CCP2 interface platform data | 117 | * struct isp_ccp2_platform_data - CCP2 interface platform data |
91 | * @strobe_clk_pol: Strobe/clock polarity | 118 | * @strobe_clk_pol: Strobe/clock polarity |
92 | * 0 - Non Inverted, 1 - Inverted | 119 | * 0 - Non Inverted, 1 - Inverted |
@@ -105,6 +132,7 @@ struct isp_ccp2_platform_data { | |||
105 | unsigned int ccp2_mode:1; | 132 | unsigned int ccp2_mode:1; |
106 | unsigned int phy_layer:1; | 133 | unsigned int phy_layer:1; |
107 | unsigned int vpclk_div:2; | 134 | unsigned int vpclk_div:2; |
135 | struct isp_csiphy_lanes_cfg lanecfg; | ||
108 | }; | 136 | }; |
109 | 137 | ||
110 | /** | 138 | /** |
@@ -115,6 +143,7 @@ struct isp_ccp2_platform_data { | |||
115 | struct isp_csi2_platform_data { | 143 | struct isp_csi2_platform_data { |
116 | unsigned crc:1; | 144 | unsigned crc:1; |
117 | unsigned vpclk_div:2; | 145 | unsigned vpclk_div:2; |
146 | struct isp_csiphy_lanes_cfg lanecfg; | ||
118 | }; | 147 | }; |
119 | 148 | ||
120 | struct isp_subdev_i2c_board_info { | 149 | struct isp_subdev_i2c_board_info { |