blob: 3e8f020abf48b79550dded8d01c44100c7442428 [file] [log] [blame]
Magnus Damm073afdd2008-10-16 19:51:47 -03001/*
2 * Generic Platform Camera Driver Header
3 *
4 * Copyright (C) 2008 Magnus Damm
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
Magnus Damm326c9862008-07-16 23:02:08 -030011#ifndef __SOC_CAMERA_H__
12#define __SOC_CAMERA_H__
13
14#include <linux/videodev2.h>
Guennadi Liakhovetskic41deba2009-08-25 11:06:21 -030015#include <media/soc_camera.h>
Magnus Damm326c9862008-07-16 23:02:08 -030016
Guennadi Liakhovetskibc1937b2009-08-25 11:06:22 -030017struct device;
18
Magnus Damm326c9862008-07-16 23:02:08 -030019struct soc_camera_platform_info {
20 int iface;
21 char *format_name;
22 unsigned long format_depth;
23 struct v4l2_pix_format format;
24 unsigned long bus_param;
Guennadi Liakhovetski50c616f2008-10-16 19:49:27 -030025 void (*power)(int);
Guennadi Liakhovetskibc1937b2009-08-25 11:06:22 -030026 struct device *dev;
Magnus Damm326c9862008-07-16 23:02:08 -030027 int (*set_capture)(struct soc_camera_platform_info *info, int enable);
Guennadi Liakhovetskic41deba2009-08-25 11:06:21 -030028 struct soc_camera_link link;
Magnus Damm326c9862008-07-16 23:02:08 -030029};
30
31#endif /* __SOC_CAMERA_H__ */