Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
omap3isp.h
Go to the documentation of this file.
1 /*
2  * omap3isp.h
3  *
4  * TI OMAP3 ISP - Platform data
5  *
6  * Copyright (C) 2011 Nokia Corporation
7  *
8  * Contacts: Laurent Pinchart <[email protected]>
9  * Sakari Ailus <[email protected]>
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2 as
13  * published by the Free Software Foundation.
14  *
15  * This program is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23  * 02110-1301 USA
24  */
25 
26 #ifndef __MEDIA_OMAP3ISP_H__
27 #define __MEDIA_OMAP3ISP_H__
28 
29 struct i2c_board_info;
30 struct isp_device;
31 
32 #define ISP_XCLK_NONE 0
33 #define ISP_XCLK_A 1
34 #define ISP_XCLK_B 2
35 
42 };
43 
44 enum {
49 };
50 
68  unsigned int data_lane_shift:2;
69  unsigned int clk_pol:1;
70  unsigned int hs_pol:1;
71  unsigned int vs_pol:1;
72  unsigned int data_pol:1;
73 };
74 
75 enum {
78 };
79 
80 enum {
83 };
84 
93 };
94 
95 #define ISP_CSIPHY1_NUM_DATA_LANES 1
96 #define ISP_CSIPHY2_NUM_DATA_LANES 2
97 
106 };
107 
122  unsigned int strobe_clk_pol:1;
123  unsigned int crc:1;
124  unsigned int ccp2_mode:1;
125  unsigned int phy_layer:1;
126  unsigned int vpclk_div:2;
128 };
129 
136  unsigned crc:1;
137  unsigned vpclk_div:2;
139 };
140 
144 };
145 
149  union {
153  } bus; /* gcc < 4.6.0 chokes on anonymous union initializers */
154 };
155 
158  void (*set_constraints)(struct isp_device *isp, bool enable);
159 };
160 
161 #endif /* __MEDIA_OMAP3ISP_H__ */