2008-10-17 00:51:47 +02: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 04:02:08 +02:00
|
|
|
#ifndef __SOC_CAMERA_H__
|
|
|
|
#define __SOC_CAMERA_H__
|
|
|
|
|
|
|
|
#include <linux/videodev2.h>
|
2009-08-25 16:06:21 +02:00
|
|
|
#include <media/soc_camera.h>
|
2008-07-17 04:02:08 +02:00
|
|
|
|
2009-08-25 16:06:22 +02:00
|
|
|
struct device;
|
|
|
|
|
2008-07-17 04:02:08 +02:00
|
|
|
struct soc_camera_platform_info {
|
2009-08-25 16:28:22 +02:00
|
|
|
const char *format_name;
|
2008-07-17 04:02:08 +02:00
|
|
|
unsigned long format_depth;
|
2009-12-11 15:46:49 +01:00
|
|
|
struct v4l2_mbus_framefmt format;
|
2008-07-17 04:02:08 +02:00
|
|
|
unsigned long bus_param;
|
2009-08-25 16:06:22 +02:00
|
|
|
struct device *dev;
|
2008-07-17 04:02:08 +02:00
|
|
|
int (*set_capture)(struct soc_camera_platform_info *info, int enable);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __SOC_CAMERA_H__ */
|