Blame view
include/media/s5p_fimc.h
1.99 KB
5f3cc4474 [media] s5p-fimc:... |
1 2 3 4 5 6 7 8 9 10 |
/* * Samsung S5P SoC camera interface driver header * * Copyright (c) 2010 Samsung Electronics Co., Ltd * Author: Sylwester Nawrocki, <s.nawrocki@samsung.com> * * 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. */ |
df7e09a35 [media] s5p-fimc:... |
11 12 |
#ifndef S5P_FIMC_H_ #define S5P_FIMC_H_ |
5f3cc4474 [media] s5p-fimc:... |
13 14 15 16 17 18 19 |
enum cam_bus_type { FIMC_ITU_601 = 1, FIMC_ITU_656, FIMC_MIPI_CSI2, FIMC_LCD_WB, /* FIFO link from LCD mixer */ }; |
5f3cc4474 [media] s5p-fimc:... |
20 21 22 |
struct i2c_board_info; /** |
df7e09a35 [media] s5p-fimc:... |
23 |
* struct s5p_fimc_isp_info - image sensor information required for host |
5f3cc4474 [media] s5p-fimc:... |
24 25 26 |
* interace configuration. * * @board_info: pointer to I2C subdevice's board info |
a25be18df [media] s5p-fimc:... |
27 |
* @clk_frequency: frequency of the clock the host interface provides to sensor |
5f3cc4474 [media] s5p-fimc:... |
28 |
* @bus_type: determines bus type, MIPI, ITU-R BT.601 etc. |
e0eec9af8 [media] s5p-fimc:... |
29 |
* @csi_data_align: MIPI-CSI interface data alignment in bits |
5f3cc4474 [media] s5p-fimc:... |
30 31 |
* @i2c_bus_num: i2c control bus id the sensor is attached to * @mux_id: FIMC camera interface multiplexer index (separate for MIPI and ITU) |
d3953223b [media] s5p-fimc:... |
32 |
* @clk_id: index of the SoC peripheral clock for sensors |
12ecf56d1 [media] s5p-fimc:... |
33 |
* @flags: the parallel bus flags defining signals polarity (V4L2_MBUS_*) |
5f3cc4474 [media] s5p-fimc:... |
34 |
*/ |
df7e09a35 [media] s5p-fimc:... |
35 |
struct s5p_fimc_isp_info { |
5f3cc4474 [media] s5p-fimc:... |
36 |
struct i2c_board_info *board_info; |
a25be18df [media] s5p-fimc:... |
37 |
unsigned long clk_frequency; |
5f3cc4474 [media] s5p-fimc:... |
38 |
enum cam_bus_type bus_type; |
e0eec9af8 [media] s5p-fimc:... |
39 |
u16 csi_data_align; |
5f3cc4474 [media] s5p-fimc:... |
40 41 |
u16 i2c_bus_num; u16 mux_id; |
5f3cc4474 [media] s5p-fimc:... |
42 |
u16 flags; |
d3953223b [media] s5p-fimc:... |
43 |
u8 clk_id; |
5f3cc4474 [media] s5p-fimc:... |
44 |
}; |
5f3cc4474 [media] s5p-fimc:... |
45 |
/** |
df7e09a35 [media] s5p-fimc:... |
46 |
* struct s5p_platform_fimc - camera host interface platform data |
5f3cc4474 [media] s5p-fimc:... |
47 48 |
* * @isp_info: properties of camera sensor required for host interface setup |
117182d18 [media] s5p-fimc:... |
49 |
* @num_clients: the number of attached image sensors |
5f3cc4474 [media] s5p-fimc:... |
50 |
*/ |
df7e09a35 [media] s5p-fimc:... |
51 |
struct s5p_platform_fimc { |
117182d18 [media] s5p-fimc:... |
52 53 |
struct s5p_fimc_isp_info *isp_info; int num_clients; |
5f3cc4474 [media] s5p-fimc:... |
54 |
}; |
e1d72f4d5 [media] s5p-fimc:... |
55 56 57 58 59 60 61 62 |
/* * v4l2_device notification id. This is only for internal use in the kernel. * Sensor subdevs should issue S5P_FIMC_TX_END_NOTIFY notification in single * frame capture mode when there is only one VSYNC pulse issued by the sensor * at begining of the frame transmission. */ #define S5P_FIMC_TX_END_NOTIFY _IO('e', 0) |
df7e09a35 [media] s5p-fimc:... |
63 |
#endif /* S5P_FIMC_H_ */ |