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>
This commit is contained in:
Magnus Damm
2008-07-16 23:02:08 -03:00
committed by Mauro Carvalho Chehab
parent 0d3244d643
commit 326c986207
4 changed files with 220 additions and 0 deletions

View File

@@ -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__ */