blob: bc7fbe229a4025a3913c0da15969f945b0b61546 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* linux/include/media/s5k4ea_platform.h
*
* Copyright (c) 2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com/
*
* Driver for S5K4EA from Samsung Electronics
* CMOS Image Sensor SoC with an Embedded Image Processor
* supporting MIPI CSI-2
*
* 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.
*/
#include <linux/device.h>
#include <media/v4l2-mediabus.h>
struct s5k4ea_platform_data {
unsigned int default_width;
unsigned int default_height;
unsigned int pixelformat;
int freq; /* MCLK in KHz */
/* This SoC supports Parallel & CSI-2 */
int is_mipi;
};
struct s5k4ea_mbus_platform_data {
int id;
struct v4l2_mbus_framefmt fmt;
unsigned int bus_width;
unsigned long clk_rate; /* master clock frequency in Hz */
int (*set_power)(int on);
int (*set_clock)(struct device *dev, int on);
};
|