/* SPDX-License-Identifier: GPL-2.0-only */1/*2* s3c24xx/s3c64xx SoC series Camera Interface (CAMIF) driver3*4* Copyright (C) 2012 Sylwester Nawrocki <[email protected]>5*/67#ifndef MEDIA_S3C_CAMIF_8#define MEDIA_S3C_CAMIF_910#include <linux/i2c.h>11#include <media/v4l2-mediabus.h>1213/**14* struct s3c_camif_sensor_info - an image sensor description15* @i2c_board_info: pointer to an I2C sensor subdevice board info16* @clock_frequency: frequency of the clock the host provides to a sensor17* @mbus_type: media bus type18* @i2c_bus_num: i2c control bus id the sensor is attached to19* @flags: the parallel bus flags defining signals polarity (V4L2_MBUS_*)20* @use_field: 1 if parallel bus FIELD signal is used (only s3c64xx)21*/22struct s3c_camif_sensor_info {23struct i2c_board_info i2c_board_info;24unsigned long clock_frequency;25enum v4l2_mbus_type mbus_type;26u16 i2c_bus_num;27u16 flags;28u8 use_field;29};3031struct s3c_camif_plat_data {32struct s3c_camif_sensor_info sensor;33int (*gpio_get)(void);34int (*gpio_put)(void);35};3637#endif /* MEDIA_S3C_CAMIF_ */383940