diff options
author | Guennadi Liakhovetski <lg@denx.de> | 2008-12-19 08:07:49 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:40:27 -0500 |
commit | 042d87900217228f865654fa70fade8139bd42cf (patch) | |
tree | c62e85f7b1db1105138124c85684404ef7e47468 | |
parent | b6c6173ee8af9e8723b76e12bd92e484dc39353f (diff) |
V4L/DVB (10093): soc-camera: add new bus width and signal polarity flags
In preparation for i.MX31 camera host driver add flags for 4 and 15 bit bus
widths and for data lines polarity inversion.
Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | include/media/soc_camera.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 50f4447566d..425b6a98c95 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -221,15 +221,20 @@ static inline struct v4l2_queryctrl const *soc_camera_find_qctrl( | |||
221 | #define SOCAM_HSYNC_ACTIVE_LOW (1 << 3) | 221 | #define SOCAM_HSYNC_ACTIVE_LOW (1 << 3) |
222 | #define SOCAM_VSYNC_ACTIVE_HIGH (1 << 4) | 222 | #define SOCAM_VSYNC_ACTIVE_HIGH (1 << 4) |
223 | #define SOCAM_VSYNC_ACTIVE_LOW (1 << 5) | 223 | #define SOCAM_VSYNC_ACTIVE_LOW (1 << 5) |
224 | #define SOCAM_DATAWIDTH_8 (1 << 6) | 224 | #define SOCAM_DATAWIDTH_4 (1 << 6) |
225 | #define SOCAM_DATAWIDTH_9 (1 << 7) | 225 | #define SOCAM_DATAWIDTH_8 (1 << 7) |
226 | #define SOCAM_DATAWIDTH_10 (1 << 8) | 226 | #define SOCAM_DATAWIDTH_9 (1 << 8) |
227 | #define SOCAM_DATAWIDTH_16 (1 << 9) | 227 | #define SOCAM_DATAWIDTH_10 (1 << 9) |
228 | #define SOCAM_PCLK_SAMPLE_RISING (1 << 10) | 228 | #define SOCAM_DATAWIDTH_15 (1 << 10) |
229 | #define SOCAM_PCLK_SAMPLE_FALLING (1 << 11) | 229 | #define SOCAM_DATAWIDTH_16 (1 << 11) |
230 | 230 | #define SOCAM_PCLK_SAMPLE_RISING (1 << 12) | |
231 | #define SOCAM_DATAWIDTH_MASK (SOCAM_DATAWIDTH_8 | SOCAM_DATAWIDTH_9 | \ | 231 | #define SOCAM_PCLK_SAMPLE_FALLING (1 << 13) |
232 | SOCAM_DATAWIDTH_10 | SOCAM_DATAWIDTH_16) | 232 | #define SOCAM_DATA_ACTIVE_HIGH (1 << 14) |
233 | #define SOCAM_DATA_ACTIVE_LOW (1 << 15) | ||
234 | |||
235 | #define SOCAM_DATAWIDTH_MASK (SOCAM_DATAWIDTH_4 | SOCAM_DATAWIDTH_8 | \ | ||
236 | SOCAM_DATAWIDTH_9 | SOCAM_DATAWIDTH_10 | \ | ||
237 | SOCAM_DATAWIDTH_15 | SOCAM_DATAWIDTH_16) | ||
233 | 238 | ||
234 | static inline unsigned long soc_camera_bus_param_compatible( | 239 | static inline unsigned long soc_camera_bus_param_compatible( |
235 | unsigned long camera_flags, unsigned long bus_flags) | 240 | unsigned long camera_flags, unsigned long bus_flags) |