2008-10-17 06:51:47 +08:00
|
|
|
/*
|
|
|
|
* Generic Platform Camera Driver Header
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Magnus Damm
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
2008-07-17 10:02:08 +08:00
|
|
|
#ifndef __SOC_CAMERA_H__
|
|
|
|
#define __SOC_CAMERA_H__
|
|
|
|
|
|
|
|
#include <linux/videodev2.h>
|
2009-08-25 22:06:21 +08:00
|
|
|
#include <media/soc_camera.h>
|
2008-07-17 10:02:08 +08:00
|
|
|
|
2009-08-25 22:06:22 +08:00
|
|
|
struct device;
|
|
|
|
|
2008-07-17 10:02:08 +08:00
|
|
|
struct soc_camera_platform_info {
|
|
|
|
int iface;
|
|
|
|
char *format_name;
|
|
|
|
unsigned long format_depth;
|
|
|
|
struct v4l2_pix_format format;
|
|
|
|
unsigned long bus_param;
|
2008-10-17 06:49:27 +08:00
|
|
|
void (*power)(int);
|
2009-08-25 22:06:22 +08:00
|
|
|
struct device *dev;
|
2008-07-17 10:02:08 +08:00
|
|
|
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
|
2009-08-25 22:06:21 +08:00
|
|
|
struct soc_camera_link link;
|
2008-07-17 10:02:08 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __SOC_CAMERA_H__ */
|