diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-07-17 01:02:08 +0200 |
---|---|---|
committer | Magnus Damm <magnus.damm@gmail.com> | 2008-07-17 01:02:08 +0200 |
commit | ebc2f26b53f9e9bb733b5845734f8a58d7be5b88 (patch) | |
tree | d7f1d2be6380086386815991260d510aa29083a5 /linux/include/media | |
parent | 22a4b32d43ab24e459a3d454f2bd89ec0193056d (diff) | |
download | mediapointer-dvb-s2-ebc2f26b53f9e9bb733b5845734f8a58d7be5b88.tar.gz mediapointer-dvb-s2-ebc2f26b53f9e9bb733b5845734f8a58d7be5b88.tar.bz2 |
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>
---
drivers/media/video/Kconfig | 6
drivers/media/video/Makefile | 1
drivers/media/video/soc_camera_platform.c | 198 +++++++++++++++++++++++++++++
include/media/soc_camera_platform.h | 15 ++
4 files changed, 220 insertions(+)
Diffstat (limited to 'linux/include/media')
-rw-r--r-- | linux/include/media/soc_camera_platform.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/include/media/soc_camera_platform.h b/linux/include/media/soc_camera_platform.h new file mode 100644 index 000000000..851f18220 --- /dev/null +++ b/linux/include/media/soc_camera_platform.h @@ -0,0 +1,15 @@ +#ifndef __SOC_CAMERA_H__ +#define __SOC_CAMERA_H__ + +#include <linux/videodev2.h> + +struct soc_camera_platform_info { + int iface; + char *format_name; + unsigned long format_depth; + struct v4l2_pix_format format; + unsigned long bus_param; + int (*set_capture)(struct soc_camera_platform_info *info, int enable); +}; + +#endif /* __SOC_CAMERA_H__ */ |