diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-07-16 22:02:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:25:49 -0400 |
commit | 326c986207cb2065b9819107caa31efd2bbc48db (patch) | |
tree | c6cdd453904da5e0184d3c19e6967f8043e46426 /include/media/soc_camera_platform.h | |
parent | 0d3244d6439c8c31d2a29efd587c7aca9042c8aa (diff) |
V4L/DVB (8343): soc_camera_platform: Add SoC Camera Platform driver
This patch adds a simple platform camera device. Useful for testing
cameras with SoC camera host drivers. Only one single pixel format
and resolution combination is supported.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media/soc_camera_platform.h')
-rw-r--r-- | include/media/soc_camera_platform.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/media/soc_camera_platform.h b/include/media/soc_camera_platform.h new file mode 100644 index 000000000000..851f18220984 --- /dev/null +++ b/include/media/soc_camera_platform.h | |||
@@ -0,0 +1,15 @@ | |||
1 | #ifndef __SOC_CAMERA_H__ | ||
2 | #define __SOC_CAMERA_H__ | ||
3 | |||
4 | #include <linux/videodev2.h> | ||
5 | |||
6 | struct soc_camera_platform_info { | ||
7 | int iface; | ||
8 | char *format_name; | ||
9 | unsigned long format_depth; | ||
10 | struct v4l2_pix_format format; | ||
11 | unsigned long bus_param; | ||
12 | int (*set_capture)(struct soc_camera_platform_info *info, int enable); | ||
13 | }; | ||
14 | |||
15 | #endif /* __SOC_CAMERA_H__ */ | ||