GNU Linux-libre 4.14.332-gnu1
[releases.git] / drivers / staging / media / atomisp / include / linux / atomisp_gmin_platform.h
1 /*
2  * Support for Intel MID SoC Camera Imaging ISP subsystem.
3  *
4  * Copyright (c) 2014 Intel Corporation. All Rights Reserved.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License version
8  * 2 as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  */
15 #ifndef ATOMISP_GMIN_PLATFORM_H_
16 #define ATOMISP_GMIN_PLATFORM_H_
17
18 #include "atomisp_platform.h"
19
20 const struct atomisp_camera_caps *atomisp_get_default_camera_caps(void);
21 const struct atomisp_platform_data *atomisp_get_platform_data(void);
22 const struct camera_af_platform_data *camera_get_af_platform_data(void);
23 int atomisp_register_i2c_module(struct v4l2_subdev *subdev,
24                                 struct camera_sensor_platform_data *plat_data,
25                                 enum intel_v4l2_subdev_type type);
26 struct v4l2_subdev *atomisp_gmin_find_subdev(struct i2c_adapter *adapter,
27                                              struct i2c_board_info *board_info);
28 int atomisp_gmin_remove_subdev(struct v4l2_subdev *sd);
29 int gmin_get_config_var(struct device *dev, const char *var, char *out, size_t *out_len);
30 int gmin_get_var_int(struct device *dev, const char *var, int def);
31 int camera_sensor_csi(struct v4l2_subdev *sd, u32 port,
32                       u32 lanes, u32 format, u32 bayer_order, int flag);
33 struct camera_sensor_platform_data *gmin_camera_platform_data(
34                 struct v4l2_subdev *subdev,
35                 enum atomisp_input_format csi_format,
36                 enum atomisp_bayer_order csi_bayer);
37
38 int atomisp_gmin_register_vcm_control(struct camera_vcm_control *);
39
40 #endif