/*1* Samsung S5P SoC camera interface driver header2*3* Copyright (c) 2010 Samsung Electronics Co., Ltd4* Author: Sylwester Nawrocki, <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License version 2 as8* published by the Free Software Foundation.9*/1011#ifndef S5P_FIMC_H_12#define S5P_FIMC_H_1314enum cam_bus_type {15FIMC_ITU_601 = 1,16FIMC_ITU_656,17FIMC_MIPI_CSI2,18FIMC_LCD_WB, /* FIFO link from LCD mixer */19};2021#define FIMC_CLK_INV_PCLK (1 << 0)22#define FIMC_CLK_INV_VSYNC (1 << 1)23#define FIMC_CLK_INV_HREF (1 << 2)24#define FIMC_CLK_INV_HSYNC (1 << 3)2526struct i2c_board_info;2728/**29* struct s5p_fimc_isp_info - image sensor information required for host30* interace configuration.31*32* @board_info: pointer to I2C subdevice's board info33* @clk_frequency: frequency of the clock the host interface provides to sensor34* @bus_type: determines bus type, MIPI, ITU-R BT.601 etc.35* @csi_data_align: MIPI-CSI interface data alignment in bits36* @i2c_bus_num: i2c control bus id the sensor is attached to37* @mux_id: FIMC camera interface multiplexer index (separate for MIPI and ITU)38* @flags: flags defining bus signals polarity inversion (High by default)39*/40struct s5p_fimc_isp_info {41struct i2c_board_info *board_info;42unsigned long clk_frequency;43enum cam_bus_type bus_type;44u16 csi_data_align;45u16 i2c_bus_num;46u16 mux_id;47u16 flags;48};4950/**51* struct s5p_platform_fimc - camera host interface platform data52*53* @isp_info: properties of camera sensor required for host interface setup54* @num_clients: the number of attached image sensors55*/56struct s5p_platform_fimc {57struct s5p_fimc_isp_info *isp_info;58int num_clients;59};60#endif /* S5P_FIMC_H_ */616263